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:
But I have since changed that back to
Permission on file is 400:
ls -l /etc/sudoers -r--r----- 1 root root 491 Sep 28 21:52 /etc/sudoers
Here is visudo output:
Defaults env_reset root ALL=(ALL) ALL %sudo ALL=(ALL) ALL
I'm in the sudo group in /etc/group, i used $ usermod -G sudo me
No idea why it stopped working, or how to fix it.