1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Hi |
5 |
|
6 |
jak gentoo wrote: |
7 |
> Hi all, |
8 |
> |
9 |
> I'm trying to allow users in the wheel group to run /etc/init.d/cupsd |
10 |
> restart |
11 |
> I edited /etc/sudoers with visudo to the following but it doesn't work, any |
12 |
> ideas? |
13 |
> |
14 |
> %wheel ALL=(ALL) NOPASSWD: /sbin/runscript.sh |
15 |
You won't need the line above, it would be a risk if wheel group is |
16 |
allowed to to run any script wiht runscript.sh as root. |
17 |
|
18 |
> %wheel ALL=(ALL) NOPASSWD: /etc/init.d/cupsd restart |
19 |
> |
20 |
> when I try with my normal acount I get |
21 |
> jak@ns3 ~ $ /etc/init.d/cupsd restart |
22 |
> * /sbin/runscript.sh: must be root to run init scripts |
23 |
But you have to start the cupsd script with sudo: |
24 |
$ sudo /etc/init.d/cupsd restart |
25 |
|
26 |
At least this is how I know sudo. |
27 |
- -- |
28 |
wabu |
29 |
|
30 |
|
31 |
-----BEGIN PGP SIGNATURE----- |
32 |
Version: GnuPG v1.4.5-ecc0.1.6 (GNU/Linux) |
33 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
34 |
|
35 |
iD8DBQFFdCgfBbWbHb9PeLsRAn2eAKCDoJ0WS0Ji29u8bfWMfkXPLBIWVwCeO11w |
36 |
E9tcCK5q+LcwE4vVX9JteWg= |
37 |
=K6aG |
38 |
-----END PGP SIGNATURE----- |
39 |
-- |
40 |
gentoo-user@g.o mailing list |