-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

jak gentoo wrote:
> Hi all,
> 
> 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
You won't need the line above, it would be a risk if wheel group is
allowed to to run any script wiht runscript.sh as root.

> %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 you have to start the cupsd script with sudo:
$ sudo /etc/init.d/cupsd restart

At least this is how I know sudo.
- --
wabu


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5-ecc0.1.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFdCgfBbWbHb9PeLsRAn2eAKCDoJ0WS0Ji29u8bfWMfkXPLBIWVwCeO11w
E9tcCK5q+LcwE4vVX9JteWg=
=K6aG
-----END PGP SIGNATURE-----
-- 
gentoo-user@gentoo.org mailing list

Reply via email to