sudoers error
Follow these steps:
-
Open a konsole terminal window.
-
This will open the sudoers file in the text editor (usually vi or nano). Be careful while editing this file, as any mistakes can lead to system instability.
-
Save the file and exit the text editor.
Finally, test if sudo is working for your user by running a simple sudo command:bash
Below that section, add the following line to grant sudo privileges to your user:
Navigate to the section that looks like this:
Once you're the root user, you can edit the sudoers file with a command like this (replace "your_username" with your actual username):
(If this command isn't found, install it first
apt-get update && apt-get install sudo once sudo is installed, you can
add your user to the sudoers file as previously described using
visudo.
Switch to the root user if you have access, by running:
You might need to enter the root password.