Re: Start programs and Wharf Icon exec's

Samuel Hocevar (sammy@nimp.via.ecp.fr)
Thu, 4 Jun 1998 04:55:11 +0200 (CEST)


> > Ok Dumb question time. *sigh*
> > 
> > 1.) Under  /usr/home/david/GNUstep/Library/AfterStep/start/Applications/Network
> > 
> > I have a file called "bx" , In the file contains this:
> > rxvt -bg black -fg white -fn vga -sl 500 -e su - dvo264 &
> > 
> > All it does it open a term window under another username on the box prompting
> > me for a password, After entering the password, I'm at prompt and have to
> > execute BitchX from there. Question: how do I get all this done in one click. 
> > ie.. Have it open the shell,issue the password, start up the irc program with
> > out me me having to do anything. (Ok,I'm lazy, and the only person on the box)
> 
> hmmm, if you are the only user, then why would you need to su?  Okay, so
> you might be using another login name for the Bitch.  I can't hel;p you
> here as putting your passwd in a script would be the only way I could see
> how.  I don't do this, so I can't advise on it's procedure - a security


You might want to use this command line:
rxvt (...) -e su - dvo264 -c "bitchx <nick> <server>" &


But i don't really understand why you need the user 'dvo264'. If it's the
login name appearing whenever a /whois is done on you that worries you, 
then just disable your identd or patch it.


Another solution to get rid of the 'password:' is to use sudo. Just put 

david <machine name>=NOPASSWD:/bin/su - dvo264

in your /etc/sudoers, and use this command line instead:

rxvt (...) -e sudo su - dvo264 -c "bitchx <nick> <server>" &

Well actually there *must* be a much nicer way to do that, but I'm really
too lame and sleepy to rtfm, sorry.


Sam.
-- 
.signature on strike


--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://wormhole.eosys.com/mailing-lists/AfterStep-Info.html
   FAQ:   http://www.cs.purdue.edu/homes/zamboni/afterstep/FAQ.html

   To unsubscribe: echo unsubscribe | mail afterstep-request@eosys.com