From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-52301-garchives=archives.gentoo.org@gentoo.org>) id 1GUThy-0006qL-5S for garchives@archives.gentoo.org; Mon, 02 Oct 2006 19:44:10 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k92Jh3wF026356; Mon, 2 Oct 2006 19:43:03 GMT Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k92Jcd3n000796 for <gentoo-user@lists.gentoo.org>; Mon, 2 Oct 2006 19:38:40 GMT Received: by wx-out-0506.google.com with SMTP id r21so2287368wxc for <gentoo-user@lists.gentoo.org>; Mon, 02 Oct 2006 12:38:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=m5V2UW2lkxxLQ608yQKueejTDl44+j/cdYbPiJZ67kHUyRJVepBKKAst5Aiu4huuM8pgIJctf9XKqobLoDYMWLvB5OyG8vdIRsZbal39Sn4kxxGWpoAMEHbVecRXHHdHe0RAvEo6YHWhb9OBIp+vvqAFO+AFXcUAq9QW9sP9Nng= Received: by 10.70.23.1 with SMTP id 1mr7308314wxw; Mon, 02 Oct 2006 12:38:39 -0700 (PDT) Received: by 10.70.110.19 with HTTP; Mon, 2 Oct 2006 12:38:39 -0700 (PDT) Message-ID: <c52221f0610021238l59ef0c76pce275cb230650de0@mail.gmail.com> Date: Mon, 2 Oct 2006 15:38:39 -0400 From: "Devon Miller" <devon.c.miller@gmail.com> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Allow a user to restart net.wlan0? In-Reply-To: <5bdc1c8b0610021153q3865ff1ap28c83f8acead9a0a@mail.gmail.com> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_48211_4163450.1159817919147" References: <5bdc1c8b0610021153q3865ff1ap28c83f8acead9a0a@mail.gmail.com> X-Archives-Salt: aab73351-cb5e-44a3-ae1f-251d536697ed X-Archives-Hash: 9232d4eace9d93e90d9fa15af56a4be3 ------=_Part_48211_4163450.1159817919147 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline emerge app-admin/sudo Edit /etc/sudoers and add: username ALL= NOPASSWD: /etc/init.d/ner.wlan0 Where username is his login. To run it: sudo /etc/init.d/net.wlan0 restart dcm On 10/2/06, Mark Knecht <markknecht@gmail.com> wrote: > > Hi, > We have a machine here, my son's, which runs Gentoo and uses (I > think) a D-Link 802.11abg NIC: > > 03:0a.0 Ethernet controller: Atheros Communications, Inc. AR5005G > 802.11abg NIC (rev 01) > > The setup uses ndiswrapper to load the Windows driver. For some > reason this NIC seems to go off line quite a bit - maybe once a day. > I'm assuming that this is caused by the Windows driver & ndiswrapper > having some sort of problem that is probably light years beyond my > ability to debug. However running /etc/init.d/net.wlan0 restart always > seems to get it going again. > > How can I set up the system to allow my son to run this command > himself as a user? It appears that the script itself is runnable by a > user, but when we try it I get a message that only root can run init > scripts. > > Sector9 ~ # ls -al /etc/init.d/net.* > lrwxrwxrwx 1 root root 6 Sep 16 10:14 /etc/init.d/net.eth0 -> net.lo > -rwxr-xr-x 1 root root 30341 Sep 16 10:27 /etc/init.d/net.lo > lrwxrwxrwx 1 root root 6 Jul 29 11:31 /etc/init.d/net.wlan0 -> net.lo > Sector9 ~ # > > Is there an easy way to make this one script runnable by my son so > that when I'm not around he can get things going again? > > On the other hand if there is an Open Source Linux driver for this > card I'd love to install that but I don't know of one. > > Thanks, > Mark > -- > gentoo-user@gentoo.org mailing list > > ------=_Part_48211_4163450.1159817919147 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline emerge app-admin/sudo<br> <br> Edit /etc/sudoers and add:<br> <br> username ALL= NOPASSWD: /etc/init.d/ner.wlan0<br> <br> Where username is his login. To run it:<br> sudo /etc/init.d/net.wlan0 restart<br> <br> dcm<br><br><br><div><span class="gmail_quote">On 10/2/06, <b class="gmail_sendername">Mark Knecht</b> <<a href="mailto:markknecht@gmail.com">markknecht@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<br> We have a machine here, my son's, which runs Gentoo and uses (I<br>think) a D-Link 802.11abg NIC:<br><br>03:0a.0 Ethernet controller: Atheros Communications, Inc. AR5005G<br>802.11abg NIC (rev 01)<br><br> The setup uses ndiswrapper to load the Windows driver. For some <br>reason this NIC seems to go off line quite a bit - maybe once a day.<br>I'm assuming that this is caused by the Windows driver & ndiswrapper<br>having some sort of problem that is probably light years beyond my<br> ability to debug. However running /etc/init.d/net.wlan0 restart always<br>seems to get it going again.<br><br> How can I set up the system to allow my son to run this command<br>himself as a user? It appears that the script itself is runnable by a <br>user, but when we try it I get a message that only root can run init<br>scripts.<br><br>Sector9 ~ # ls -al /etc/init.d/net.*<br>lrwxrwxrwx 1 root root 6 Sep 16 10:14 /etc/init.d/net.eth0 -> net.lo<br>-rwxr-xr-x 1 root root 30341 Sep 16 10:27 /etc/init.d/net.lo <br>lrwxrwxrwx 1 root root 6 Jul 29 11:31 /etc/init.d/net.wlan0 -> net.lo<br>Sector9 ~ #<br><br> Is there an easy way to make this one script runnable by my son so<br>that when I'm not around he can get things going again? <br><br> On the other hand if there is an Open Source Linux driver for this<br>card I'd love to install that but I don't know of one.<br><br>Thanks,<br>Mark<br>--<br><a href="mailto:gentoo-user@gentoo.org">gentoo-user@gentoo.org </a> mailing list<br><br></blockquote></div><br> ------=_Part_48211_4163450.1159817919147-- -- gentoo-user@gentoo.org mailing list