How To Add, Delete, and Grant Sudo Privileges to Users on a Debian VPS
How To Add, Delete, and Grant Sudo Privileges to Users on a Debian VPS
If you have a Debian VPS and want to manage user accounts and permissions, you can use the following commands to add, delete, and grant sudo privileges to users.
Adding a User
To add a new user to your Debian VPS, use the following command:
sudo adduser username
Replace "username" with the name of the user you want to add.
Deleting a User
To delete a user from your Debian VPS, use the following command:
sudo deluser username
Replace "username" with the name of the user you want to delete.
Granting Sudo Privileges
To grant sudo privileges to a user on your Debian VPS, use the following command:
sudo usermod -aG sudo username
Replace "username" with the name of the user you want to grant sudo privileges to.
After running this command, the user will be able to use the sudo command to perform administrative tasks on the VPS.
Keywords: Debian, VPS, user management, sudo, privileges, add user, delete user, grant sudo privileges.
Комментарии
Отправить комментарий