Basic User Commands Linux
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
adduser <username> #Adds User with username given. Enter Password when Prompted. Other Details are Optional | |
usermod -g <groupname> <username> #Adds Existing <username> to **<groupname>** and removes all other memberships of <username> | |
usermod -G <groupname> <username> #Adds Existing <username> to **Secondary** Group sales and keeps his existing memberships | |
usermod -G group1,group2 <username> #Add user to group2, but keep his existing membership of group1 when manually entered | |
userdel <username> #deletes user account with <username> | |
passwd <username> #prompts for new password for user account for <username> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment