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 unfortunately requires you to enter a password. The menu entry could be something like: =================================================== [exec] (eth0 up) {xterm -e su -c '/etc/init.d/net.eth0 start'} =================================================== This will launch an xterm which will ask you for a password (root) before you can login and execute the init.d script. b)You have already defined the command in sudo in which case you can run it directly as a plain user. The menu entry could look like this: =================================================== [exec] (eth0 down) {xterm -e sudo /etc/init.d/net.eth0 stop} =================================================== The sudoers entry to allow the particular init.d script to run looks like so: =================================================== # Host alias specification Host_Alias BOX1 = lappy # User alias specification User_Alias ME = michael # Shutting down the Internet ME BOX1 = NOPASSWD: /etc/init.d/net.eth0 stop =================================================== c)You set the root password to remain in memory for a set period of time after you enter it once, so that you do not have to enter it *every* time you su to root. I can't remember where you set this . . . probably because I have never used it (for security purposes). Someone else please fill in this? d)You can set the executable script as suid. Then it will run with the owners permissions (root) as opposed to the person who's running it (plain 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 also terminal based clients (but haven't used any). -- Regards, Mick