View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#3
If you have openssh-server installed, you can do 'ssh root@127.0.0.1' to get a root shell.

If you have rootsh installed, you can do 'rootsh /bin/sh'. This will allow you to get access to your sudoers (as 'user' can't even read it) and fix it.

BTW: Use visudo in future to edit sudoers. If you don't like vi, run it like this: "EDITOR=<favourite editor> visudo'
 

The Following User Says Thank You to qwerty12 For This Useful Post: