Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Allow a user to restart net.wlan0?
Date: Mon, 02 Oct 2006 20:38:25
In Reply to: Re: [gentoo-user] Allow a user to restart net.wlan0? by Devon Miller
1 On Mon, 2 Oct 2006 15:38:39 -0400, Devon Miller wrote:
3 > emerge app-admin/sudo
4 >
5 > Edit /etc/sudoers and add:
6 >
7 > username ALL= NOPASSWD: /etc/init.d/ner.wlan0
8 >
9 > Where username is his login. To run it:
10 > sudo /etc/init.d/net.wlan0 restart
12 A slightly more secure approach is to create a script to do what you want
13 the user to be able to do and add that to /etc/sudoers. Then you control
14 how the commands are executed as well as which commands.
16 You could put "/etc/init.d/net.wlan0 restart" in a script and give it a
17 desktop icon or toolbar button, so he can restart the network with a
18 mouse click.
21 --
22 Neil Bothwick
24 That's not a bug, it's a Free Enhanced Feature!


File name MIME type
signature.asc application/pgp-signature


Subject Author
Re: [gentoo-user] Allow a user to restart net.wlan0? Iain Buchanan <iaindb@××××××××××××.au>