Actions
How to Add and Delete Users on Ubuntu¶
There are two ways to add and delete users on Ubuntu: using the graphical user interface (GUI) or the command line.
Add a User Using the GUI¶
Open the Settings app.
Click on the Users tab.
Click on the Unlock button and enter your password.
Click on the Add User button.
Delete a User Using the GUI¶
Open the Settings app.
Click on the Users tab.
Click on the Unlock button and enter your password.
Select the user you want to delete.
Click on the Remove User button.
Click on the Remove button to confirm.
Add a User Using the Command Line¶
Replace <username> with the name of the new user.
sudo adduser <username>
Delete a User Using the Command Line¶
sudo deluser <username>
Troubleshooting¶
If you are unable to add or delete users, you may need to change the permissions on the /etc/passwd file. To do this, run the following command:
sudo chmod 644 /etc/passwd
Updated by Gareth Eaton over 1 year ago · 2 revisions