i did something stupid with sudo!!
hi, i was trying to turn off the password needed to log in to my account in ubuntu, and i was looking on the internet for ways to do that. i read an article which was about turning off passwords. It suggested the following:
1. Open the terminal window from Applications --> accessories --> terminal, run the command:
2. Find the line that says
Code:
%admin ALL=(ALL) ALL
3. and change it to
Code:
%admin ALL=(ALL) NOPASSWD: ALL
4. Save and exit the file.
After doing it i got the error message:
Code:
>>> /etc/sudoers: syntax error near line 25 <<<
sudo: parse error in /etc/sudoers near line 25
sudo: no valid sudoers sources found, quitting
my password hasn't been turned off, and now i can't use sudo in the terminal. i can't figure it out at all and i dont know how to access that file again to change it back.