On Mon, 4 Dec 2006 13:54:52 +0100, jak gentoo wrote:

> I'm trying to allow users in the wheel group to run /etc/init.d/cupsd
> restart
> I edited /etc/sudoers with visudo to the following but it doesn't work,
> any ideas?
> 
> %wheel ALL=(ALL)        NOPASSWD: /sbin/runscript.sh
> %wheel ALL=(ALL)        NOPASSWD: /etc/init.d/cupsd restart
> 
> when I try with my normal acount I get
> [EMAIL PROTECTED] ~ $ /etc/init.d/cupsd restart
>  * /sbin/runscript.sh: must be root to run init scripts
> but I'm in the wheel group

The settings in /etc/sudoers only apply when running a command with sudo,
try "sudo /etc/init.d/cupsd restart"


-- 
Neil Bothwick

Windows 98, the most installed system in the world, I know, I've done it
5 or 6 times myself.

Attachment: signature.asc
Description: PGP signature

Reply via email to