1 |
emerge app-admin/sudo |
2 |
|
3 |
Edit /etc/sudoers and add: |
4 |
|
5 |
username ALL= NOPASSWD: /etc/init.d/ner.wlan0 |
6 |
|
7 |
Where username is his login. To run it: |
8 |
sudo /etc/init.d/net.wlan0 restart |
9 |
|
10 |
dcm |
11 |
|
12 |
|
13 |
On 10/2/06, Mark Knecht <markknecht@×××××.com> wrote: |
14 |
> |
15 |
> Hi, |
16 |
> We have a machine here, my son's, which runs Gentoo and uses (I |
17 |
> think) a D-Link 802.11abg NIC: |
18 |
> |
19 |
> 03:0a.0 Ethernet controller: Atheros Communications, Inc. AR5005G |
20 |
> 802.11abg NIC (rev 01) |
21 |
> |
22 |
> The setup uses ndiswrapper to load the Windows driver. For some |
23 |
> reason this NIC seems to go off line quite a bit - maybe once a day. |
24 |
> I'm assuming that this is caused by the Windows driver & ndiswrapper |
25 |
> having some sort of problem that is probably light years beyond my |
26 |
> ability to debug. However running /etc/init.d/net.wlan0 restart always |
27 |
> seems to get it going again. |
28 |
> |
29 |
> How can I set up the system to allow my son to run this command |
30 |
> himself as a user? It appears that the script itself is runnable by a |
31 |
> user, but when we try it I get a message that only root can run init |
32 |
> scripts. |
33 |
> |
34 |
> Sector9 ~ # ls -al /etc/init.d/net.* |
35 |
> lrwxrwxrwx 1 root root 6 Sep 16 10:14 /etc/init.d/net.eth0 -> net.lo |
36 |
> -rwxr-xr-x 1 root root 30341 Sep 16 10:27 /etc/init.d/net.lo |
37 |
> lrwxrwxrwx 1 root root 6 Jul 29 11:31 /etc/init.d/net.wlan0 -> net.lo |
38 |
> Sector9 ~ # |
39 |
> |
40 |
> Is there an easy way to make this one script runnable by my son so |
41 |
> that when I'm not around he can get things going again? |
42 |
> |
43 |
> On the other hand if there is an Open Source Linux driver for this |
44 |
> card I'd love to install that but I don't know of one. |
45 |
> |
46 |
> Thanks, |
47 |
> Mark |
48 |
> -- |
49 |
> gentoo-user@g.o mailing list |
50 |
> |
51 |
> |