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 can't open it anymore and I get this error message:
>>> sudoers file: syntax error, line 7
Is there any way to get out of this problem (to revert the settings), or do I need to install a 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.
EDIT: My sudoers file is no different than normal sudoers file.
I just added timestamp_timeout = 0 line in that file and all these problems 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