Last active
December 17, 2015 09:08
-
-
Save germs12/5584907 to your computer and use it in GitHub Desktop.
new user linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| y@seacrest:~$ sudo useradd -m rmillikan | |
| y@seacrest:~$ id rmillikan | |
| uid=1001(rmillikan) gid=1001(rmillikan) groups=1001(rmillikan) | |
| y@seacrest:~$ sudo passwd rmillikan | |
| Enter new UNIX password: | |
| Retype new UNIX password: | |
| passwd: password updated successfully | |
| # Add User to Group (secondary group) | |
| sudo usermod -a -G <group> <user> | |
| # Sudoers | |
| sudo /usr/sbin/visudo | |
| # Members of the admin group may gain root privileges | |
| %admin ALL=(ALL) NOPASSWD: ALL | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment