Results 1 to 7 of 7
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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-14-2010 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 14
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 saysCode:sudo visudo
3. and change it toCode:%admin ALL=(ALL) ALL
4. Save and exit the file.Code:%admin ALL=(ALL) NOPASSWD: ALL
After doing it i got the error message:
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.Code:>>> /etc/sudoers: syntax error near line 25 <<< sudo: parse error in /etc/sudoers near line 25 sudo: no valid sudoers sources found, quitting
- 04-14-2010 #2
Weird. The point of using visudo is that it should prevent you from saving with syntax errors.
You should be able to boot into recovery mode and fix the file.
Fix Broken Sudo
- 04-14-2010 #3Linux User
- Join Date
- Dec 2009
- Posts
- 252
Theres also the possibility to log in as root and change the line back.
- 04-14-2010 #4
- 04-14-2010 #5Just Joined!
- Join Date
- Sep 2009
- Posts
- 14
- 04-15-2010 #6
Do you have the live CD or live USB avaiable?
You should be able to boot into the live CD, mount your root partition, find the file, and fix it or copy the default from the live CD.
- 04-15-2010 #7Just Joined!
- Join Date
- Sep 2009
- Posts
- 14


Reply With Quote

