How To Enable Sudo On Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Open a terminal and type the command:
sudo visudo
2. This command will open the sudo configuration file.
3. Now, look for the line that reads:
root ALL=(ALL) ALL
4. After the line, add the following line:
<username> ALL=(ALL) ALL
Replace <username> with your username.
5. Save and exit the file.
6. Now, you can use the sudo command with your username to gain root access.