1 |
On Mon, 4 Dec 2006 13:54:52 +0100, jak gentoo wrote: |
2 |
|
3 |
> I'm trying to allow users in the wheel group to run /etc/init.d/cupsd |
4 |
> restart |
5 |
> I edited /etc/sudoers with visudo to the following but it doesn't work, |
6 |
> any ideas? |
7 |
> |
8 |
> %wheel ALL=(ALL) NOPASSWD: /sbin/runscript.sh |
9 |
> %wheel ALL=(ALL) NOPASSWD: /etc/init.d/cupsd restart |
10 |
> |
11 |
> when I try with my normal acount I get |
12 |
> jak@ns3 ~ $ /etc/init.d/cupsd restart |
13 |
> * /sbin/runscript.sh: must be root to run init scripts |
14 |
> but I'm in the wheel group |
15 |
|
16 |
The settings in /etc/sudoers only apply when running a command with sudo, |
17 |
try "sudo /etc/init.d/cupsd restart" |
18 |
|
19 |
|
20 |
-- |
21 |
Neil Bothwick |
22 |
|
23 |
Windows 98, the most installed system in the world, I know, I've done it |
24 |
5 or 6 times myself. |