I have a strange problem on an debian lenny server. The server is a NIS client to share users/groups with another server and in the sudoers file the following is placed:
%groupX ALL=(ALL) ALL
So that members of groupX have sudo rights. Furthermore I have a user that is part of the group:
uid=1234(user.name) gid=1234(user.name) groups=1234(user.name),1001(groupX),<snip>
But still when the user tries to sudo he gets an error. The other group users can sudo perfectly fine.
This has happened once before, but then it was enough to remove, synchronise and re-add the user to the group. This didn't work this time.
In /var/log/auth.log the following default error is noted:
Jul 6 11:08:35 servername sudo: user.name : user NOT in sudoers ; TTY=pts/1 ; PWD=/home/u/user.name ; USER=root ; COMMAND=/bin/bash
Does anyone know how to fix this?