How To Add and Delete Users on Ubuntu 12.04 and CentOS 6
How To Add and Delete Users on Ubuntu 12.04 and CentOS 6
Adding a User on Ubuntu 12.04
- Open the terminal.
- Type the command:
sudo adduser username. Replace "username" with the name of the user you want to add.
- Follow the prompts to set a password and additional user information.
- Once you have finished entering the information, the user will be added to the system.
Adding a User on CentOS 6
- Open the terminal.
- Type the command:
sudo useradd username. Replace "username" with the name of the user you want to add.
- Type the command:
sudo passwd username. Follow the prompts to set a password for the user.
- The user is now added to the system.
Deleting a User on Ubuntu 12.04
- Open the terminal.
- Type the command:
sudo deluser username. Replace "username" with the name of the user you want to delete.
- Follow the prompts to confirm the deletion.
- The user will be deleted from the system.
Deleting a User on CentOS 6
- Open the terminal.
- Type the command:
sudo userdel username. Replace "username" with the name of the user you want to delete.
- Follow the prompts to confirm the deletion.
- The user will be deleted from the system.
Keywords: add user, delete user, Ubuntu 12.04, CentOS 6, terminal, password, system.
Комментарии
Отправить комментарий