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 ) id 1GmFTy-0007bq-V0 for garchives@archives.gentoo.org; Mon, 20 Nov 2006 20:11:11 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kAKK7J9N030541; Mon, 20 Nov 2006 20:07:19 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kAKK0Udg028946 for ; Mon, 20 Nov 2006 20:00:31 GMT Received: by ug-out-1314.google.com with SMTP id z38so1260151ugc for ; Mon, 20 Nov 2006 12:00:30 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:message-id; b=Gw1BcEQq3a0djKSFqWEOouiPCelhafoqIbmAi3hiXDZ61w3PDY2YhK764rg0z0ZlkUrrnnxQ5W3uyVdtR26gz64X3Os/O0dOOJek3Qhmu3mQpNdnIA9DXQ64ortSS84zxIYHooEaSD3s0JMcnI5BNRtztFiDlymWR6SbUOqC1Ew= Received: by 10.67.99.1 with SMTP id b1mr8532405ugm.1164052231152; Mon, 20 Nov 2006 11:50:31 -0800 (PST) Received: from ?192.168.0.5? ( [213.162.120.196]) by mx.google.com with ESMTP id b35sm5131681ugd.2006.11.20.11.50.29; Mon, 20 Nov 2006 11:50:30 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Several questions -- various topics Date: Mon, 20 Nov 2006 19:50:13 +0000 User-Agent: KMail/1.9.5 References: <17CD9CE4C0FA574A8B29EF02D49B385D2A960F@srvexch-01.mcaschool.local> <558b73fb0611200559l1538cb59h64646827b7abab25@mail.gmail.com> In-Reply-To: <558b73fb0611200559l1538cb59h64646827b7abab25@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart14382575.pMHmPYL3B6"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200611201950.15927.michaelkintzios@gmail.com> X-Archives-Salt: fb5af038-dae9-4218-a242-0a91fe333dc0 X-Archives-Hash: 8f6e9fd7922c6b9803882ea36fdc59a7 --nextPart14382575.pMHmPYL3B6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 20 November 2006 13:59, Michael Crute wrote: > On 11/20/06, Timothy A. Holmes wrote: > > I have tried a sudo command for a switch on the modubar > > and it seemed to fight back, but its possible that I didn't get > > it set up right. Any suggestions or pointers would be very helpful. As far as I know there are 3, maybe 4 ways of running a script as root: a)You launch a terminal as a plain user and then su to root; which=20 unfortunately requires you to enter a password. The menu entry could be something like: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D [exec] (eth0 up) {xterm -e su -c '/etc/init.d/net.eth0 start'}=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D This will launch an xterm which will ask you for a password (root) before y= ou=20 can login and execute the init.d script. b)You have already defined the command in sudo in which case you can run = it=20 directly as a plain user. The menu entry could look like this: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D [exec] (eth0 down) {xterm -e sudo /etc/init.d/net.eth0 stop} =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D The sudoers entry to allow the particular init.d script to run looks like s= o: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D # Host alias specification Host_Alias BOX1 =3D lappy # User alias specification User_Alias ME =3D michael # Shutting down the Internet ME BOX1 =3D NOPASSWD: /etc/init.d/net.eth0 stop =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D c)You set the root password to remain in memory for a set period of time= =20 after you enter it once, so that you do not have to enter it *every* time y= ou=20 su to root. I can't remember where you set this . . . probably because I=20 have never used it (for security purposes). Someone else please fill in=20 this? d)You can set the executable script as suid. Then it will run with the=20 owners permissions (root) as opposed to the person who's running it (plain= =20 user) > > I am looking for recommendations on a multi network chat client. I > > have been using gaim for quite some time, however, there are some > > problems in the latest version, and it does not seem that they will be > > resolved for quite some time. I have looked at kopete, but its irc > > support is very lacking, especially compared to kvirc which I love. I > > am interested in hearing what other options might be out there. ksirc? Not as nice as kvirc, but probably lighter on resources. There's a= lso=20 terminal based clients (but haven't used any). =2D-=20 Regards, Mick --nextPart14382575.pMHmPYL3B6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFYgb35Fp0QerLYPcRAg5ZAKDBi1qy5htu9j6diUdPU4MvQhopggCcCHkl PNMTGW3ddJHCu1yzA/WrxWI= =1k/O -----END PGP SIGNATURE----- --nextPart14382575.pMHmPYL3B6-- -- gentoo-user@gentoo.org mailing list