Created
June 26, 2009 18:15
-
-
Save rynmrtn/136642 to your computer and use it in GitHub Desktop.
User Modification Commands in *nix
This file contains 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
# 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