sudo suddenly stopped working on debian

Posted by chovy on Server Fault See other posts from Server Fault or by chovy
Published on 2012-11-29T23:02:25Z Indexed on 2012/11/29 23:07 UTC
Read the original article Hit count: 203

Filed under:
|

I've been using 'sudo ' since I setup my server about a week ago.

It suddently stopped working with no explanation.

I am in 'sudo' group. So there should be no config change required to /etc/sudoers

$ sudo apt-get install tsocks
[sudo] password for me: 
me is not in the sudoers file.


root@host:/etc# groups me
me : me sudo

The only thing it could possibly be related to was I added the following line to sshd_config:

PermitRootLogin without-password

But I have since changed that back to

PermitRootLogin yes

Permission on file is 400:

ls -l /etc/sudoers
-r--r----- 1 root root 491 Sep 28 21:52 /etc/sudoers

No idea why it stopped working, or how to fix it.

© Server Fault or respective owner

Related posts about debian

Related posts about sudo