How to Add and Delete Users on Ubuntu 16.04

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:

  1. Open a terminal window.
  2. Enter the command sudo adduser newusername, replacing newusername with the username you want to create.
  3. Enter a password for the new user when prompted.
  4. Enter any additional user information, such as full name, room number, etc. (optional).
  5. Press Y to confirm the information you entered.

Deleting a User

To delete a user on Ubuntu, follow these steps:

  1. Open a terminal window.
  2. Enter the command sudo deluser oldusername, replacing oldusername with the username you want to delete.
  3. Enter Y to confirm that you want to delete the user.
  4. If you want to delete the user's home directory and all its contents, add the --remove-home option 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.

Комментарии

Популярные сообщения из этого блога

How To Modify CSS Classes in JavaScript

How To Backup MySQL Databases on an Ubuntu VPS

How To Backup PostgreSQL Databases on an Ubuntu VPS