Skip to content

Instantly share code, notes, and snippets.

@germs12
Last active December 17, 2015 09:08
Show Gist options
  • Select an option

  • Save germs12/5584907 to your computer and use it in GitHub Desktop.

Select an option

Save germs12/5584907 to your computer and use it in GitHub Desktop.
new user linux
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