Difference between revisions of "Linux command: adduser"

From RHS Wiki
Jump to navigation Jump to search
(Created page with "Adding users to Linux<br> adding a user to the sistem:<br /> sudo adduser <username> [<group>]<br /> To add a super user to the sistem:<br /> *sudo adduser <username> sudo A...")
 
m (Protected "Linux command: adduser" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(No difference)

Latest revision as of 10:12, 8 April 2015

Adding users to Linux
adding a user to the sistem:
sudo adduser <username> [<group>]

To add a super user to the sistem:

  • sudo adduser <username> sudo

Another option is:
adduser USERNAME
usermod -a -G sudo USERNAME

usermod -a -G adm,cdrom,sudo,dip,plugdev,lpadmin,sambashare,libvirtd USERNAME

To verify the groups that a user is part of:
groups USERNAME