I changed settings in sudoers file using
and messed it up. Now when I try to do it again or open any file using sudo, I cant open it anymore and I get this error message,
>>> sudoers file: syntax error, line 7 What now?
is there any way to get out of this problem (to revert the settings), or do I need to install fresh copy of linux ?
The reason I got all this is I pressed "Q" while it was telling me there was some error, which was very stupid of me.
my sudoers file is no differnt than normal sudoers file. I just added timestamp_timeout = 0 line in that file and all this problem arised. I did what James suggested and even removed that line (timestamp_timeout = 0). I changed file permission to 0440 which it requested, and then boot normally. Then, I get the same error message
sudoers file: syntax error, line 7 sudo: parse error in /etc/sudoers near line 7
What should I do now ??
EDIT 2 Solved
This is what I did
- Boot using livecd
- Remove the old sudoers file
- made new sudoers file and copied everything to that file i.e. minimum configuration settings, which I luckily had saved in another file
- changed file permission to 0440
- Reboot again normally from harddrive