Debian Lenny: sudo seems to ignore changes to sudoers
Hi All,
I (a normal user, not root) wrote a shell script but want to grant another user (guest) permission to run it.
As a su, I've edited the /etc/sudoers file and added at its bottom:
guest ALL= (xxx) NOPASSWD: /home/xxx/script_name
where xxx is my login name.
I edited sudoers with visudo, where the environment variable EDITOR=pico.
Doing:
/etc/init.d/sudo restart
sudo -l
shows:
User root may run the following commands on this host:
(ALL) ALL
so nothing is updated. I also confirmed this: I login as guest and try to run the script as
sudo -u xxx ./script_name
but the system requests a password.
Any suggestions will be appreciated.
Cheers,
Mike.
|