This is the hard way to learn when you MUST use visudo, specially in a remote server. That's right. I did something stupid like:
and now have:
>>> /etc/sudoers: syntax error near line 79 <<<
sudo: parse error in /etc/sudoers near line 79
sudo: no valid sudoers sources found, quitting
So what if I have locked the root account (passwd -l root) and now I can't do su
to fix sudoers file???
As i said this is in a remote server (VPS) so I can not use recovering special tools via CD or similar.