Skip to content

Instantly share code, notes, and snippets.

@Yogendra0Sharma
Created January 12, 2017 10:53
Show Gist options
  • Select an option

  • Save Yogendra0Sharma/5e8d51bf0a24195ca6b2c8f5018fd9b8 to your computer and use it in GitHub Desktop.

Select an option

Save Yogendra0Sharma/5e8d51bf0a24195ca6b2c8f5018fd9b8 to your computer and use it in GitHub Desktop.
Adding, Editng and Deleting Users in Linux

#Create Sudo User in Ubuntu Howto

##Add an User

$ useradd name_of_sudo_user -m # the extra options ensure the home directory is included
$ passwd name_of_sudo_user

##If you get a funny shell as User - No Tab completion etc...

  • User was created with sh shell. Change to bash
$ sudo chsh -s /bin/bash name_of_sudo_user
  • Log out and in again...

##Delete an User

$ userdel name_of_sudo_user

##Change User Permissions & Groups

  • Add user to user group sudo
$ sudo adduser name_of_sudo_user sudo

##References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment