How to Add and Delete Users on Ubuntu 16.04
How to Add and Delete Users on Ubuntu 16.04
Managing users on Ubuntu is an important task for any system administrator. This tutorial will guide you through the process of adding and deleting users on Ubuntu 16.04.
Adding a User
To add a new user on Ubuntu, follow these steps:
- Open a terminal window.
- Enter the command
sudo adduser newusername, replacingnewusernamewith the username you want to create. - Enter a password for the new user when prompted.
- Enter any additional user information, such as full name, room number, etc. (optional).
- Press
Yto confirm the information you entered.
Deleting a User
To delete a user on Ubuntu, follow these steps:
- Open a terminal window.
- Enter the command
sudo deluser oldusername, replacingoldusernamewith the username you want to delete. - Enter
Yto confirm that you want to delete the user. - If you want to delete the user's home directory and all its contents, add the
--remove-homeoption to the command. For example:sudo deluser --remove-home oldusername.
Conclusion
Managing users on Ubuntu is a crucial task for system administrators. By following the steps in this tutorial, you should now be able to add and delete users on Ubuntu 16.04.
Keywords: ubuntu, user management, add users, delete users, system administrator, terminal window, adduser, deluser, password, home directory.
Комментарии
Отправить комментарий