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
Message-Id: 20061002213138.1de2f106@hactar.digimed.co.uk
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:
2
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
11
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.
15
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.
19
20
21 --
22 Neil Bothwick
23
24 That's not a bug, it's a Free Enhanced Feature!

Attachments

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

Replies

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