Home VPN WorkPlace Web Sites/Apps Small Business Other Apps Contact Guides

Users On Ubuntu

List all users
cut -d: -f1 /etc/passwd

Add User
sudo adduser [username]

Give user sudo privileges
sudo usermod -aG sudo [username]

To make it so you don't have to re-verify your password when using "sudo"
sudo visudo
Append to end of file
[username] ALL = NOPASSWD: ALL

Change Username
sudo usermod -l [newusername] [oldusername]

Set Password
sudo passwd [username]

Delete User
sudo deluser [username]

Delete user and remove user's home directory
sudo deluser --remove-home [username]