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! |