Monday, July 20, 2015

[Linux] linux command to add user with root privileges

Command
useradd -ou 0 -g 0 username

Sample Command
useradd -ou 0 -g 0 johnwong



-------

Remarks

If you want set the password of this user, use this command:

Command
passwd username

Sample Command
passwd johnwong


Reference:
http://askubuntu.com/questions/410244/a-command-to-list-all-users-and-how-to-add-delete-modify-users

No comments :

Post a Comment