• Create a new group
    sudo addgroup groupname
  • Create a user into this group
    sudo adduser username groupname

you want to add the user to the root group, 2 ways

1.

adduser userA
adduser userA root

2.

adduser userA
usermod -aG sudo userA
Logo

更多推荐