Gentoo Archives: gentoo-user

From: jak gentoo <jak.gentoo@××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] SUDO: running /etc/init.d/cupsd restart
Date: Mon, 04 Dec 2006 12:59:08
Message-Id: a23345650612040454y63b4f040t628565b76f94443b@mail.gmail.com
1 Hi all,
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, any
6 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 jak@ns3 ~ $ id
16 uid=1000(jak) gid=100(users) groups=10(wheel),100(users)
17
18 Regards
19
20 jakommo

Replies

Subject Author
Re: [gentoo-user] SUDO: running /etc/init.d/cupsd restart Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] SUDO: running /etc/init.d/cupsd restart Daniel Waeber <_wabu@×××.de>