Skip to content

Instantly share code, notes, and snippets.

@rynmrtn
Created June 26, 2009 18:15
Show Gist options
  • Save rynmrtn/136642 to your computer and use it in GitHub Desktop.
Save rynmrtn/136642 to your computer and use it in GitHub Desktop.
User Modification Commands in *nix
# Add a user
$ sudo adduser ${user}
# Remove a user
$ sudo deluser ${user}
# Modify the users group
# ${group} is a comma separated list of groups without spaces, e.g. 'group1,group2,group3'
$ sudo usermod -G ${group} ${user}
# Modify the users password
$ sudo usermod -p ${user}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment