View Single Post
Old 11th February 2011, 21:56
nomikos nomikos is offline
Junior Member
Join Date: Feb 2011
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Talking I screwed up sudoers and I haven't root access (remote server).

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:

$ sudo vi /etc/sudoers
and now have:

$ sudo
>>> /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.

Reply With Quote
Sponsored Links