How to Add and Remove Users on Ubuntu

How to Add and Remove Users on Ubuntu

User or user account is very important in the use of a computer device. Moreover, a computer device in an office or a computer device that is used by more than one person, for example a device that is used together in the family.

Maybe you don’t want files and folders in your user’s home directory to be opened or tampered with by other people. So other people who also use the computer must also have their own user and home folder.

Therefore, user management also important in the operating system. Users can also set access rights to existing users, such as which users have access rights administrator or root, which user only has access rights as a normal user.

To add a new user on Ubuntu and other Linux distributions is actually very easy. Open Terminal by pressing combination CTRL + ALT + T on the keyboard or through the application menu.

Then type the command “sudo adduser username”. Enter the name of the user you want to add to the username, as follows:

sudo adduser sudoway

Then you will be asked to enter password for the user you created and other data. Enter the password according to what you want. For other data, just provide Full Name data, while others just skip it by pressing enter.

How to Add and Remove Uset in Ubuntu
Adding User in Ubuntu

When the new user has been successfully created, the system will also create a /home folder for that user which is located in the /home/username directory, for example /home/sudoway. So that each user has its own /home folder.

Users can also add users easily to Ubuntu via System Settings. Select System Settings, then select User Accounts, you can easily add users there. Don’t forget that in order to add a new user, the user must have root privileges.

To delete a folder that has been created, the user can use the command “sudo deluser username”, for example, to delete the sudoway user that we created earlier, type the following command.

sudo deluser sudoway

The deleted user’s home folder will not be deleted automatically when the user is deleted. Users need to delete the home folder manually.

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *