sudo corrupted
Binary package hint: sudo
my assintant when modifing the sudo for a lan program inserted two lines in the sudo file, but he inserted it wrong, now i can't login sudo by using "sudo su" or "sudo su root", it says:
>>> sudoers file: syntax error, line 25 <<<
>>> sudoers file: syntax error, line 26 <<<
sudo: parse error in /etc/sudoers near line 25
and there is the problem, how to modify the sudo file the way it was?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu sudo Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2009-09-21
- Last reply:
- 2009-09-21
This question was originally filed as bug #434216.
Lars Ljung (larslj) said : | #1 |
Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https:/
Lars Ljung (larslj) said : | #2 |
You have to boot into recovery mode to edit the file again. Use the command "visudo" to edit the file.
Sounds like you have been messing with the /etc/sudoers
here is my untouched one (why do people mess with this thing): http://
Boot to recovery root console (ESC when grub loads, select recovery mode then select root). You can now run:
nano /etc/sudoers
Make your file look like mine (make sure you press enter no the end of the line). Press CTRL+X, press Y, press enter to exit and save the file.
Then reboot.
Can you help with this problem?
Provide an answer of your own, or ask klebold for more information if necessary.