Skip to content

Instantly share code, notes, and snippets.

@sandheepg
Last active July 28, 2017 12:49
Show Gist options
  • Save sandheepg/5dac7af1b1c82f781e61a12e94c493eb to your computer and use it in GitHub Desktop.
Save sandheepg/5dac7af1b1c82f781e61a12e94c493eb to your computer and use it in GitHub Desktop.
Linux local user management

To get all local users

local-user-management

To add a new user

sudo adduser new_username

To remove a user

sudo userdel username
sudo rm -r /home/username

sudo deluser --remove-home username

To change password for a user

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