-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
To add a user to the SUDOERS group in Debian 13, follow these steps:
Open the terminal on your Debian system by clicking on the “Terminal” icon or by using the shortcut Ctrl+Alt+T.
Switch to the root user using the following command:
su -
You will be prompted to provide the root password. Enter the root password and press enter.
After you log in as the root user, enter the following command. Make sure to change as per your username. For this example, replace “username” with your user name.
/sbin/addgroup _username_ sudo
If the above command says invalid, you can also use the following command:
usermod -aG sudo _username_
Press exit to leave the root prompt. Close Konsole. Now you can perform any administrative action using your username.
### Another method
You can go into the root account using the same command as below. Use root account to log in:
su -
Then open the /etc/sudoers file using nano or visudo or any editor.
nano /etc/sudoers
Add the following lines with the username. Change “luis” as per your user name.
username ALL=(ALL:ALL) ALL
Save and close the file. And then, log out and log in again. And that should give the user name the root privileges.