[SunHELP] starting a process as user JoeDoe

sunhelp at sunhelp.org sunhelp at sunhelp.org
Wed Sep 24 13:05:57 CDT 2003


In my S95odbstart file in rc2.d I have the following line:

su - oracle -c $ORACLE_HOME/bin/dbstart

That runs the dbstart script under user oracle.

Hope this helps.

David Werth
Garmin Aviation Technologies
(formerly: UPS Aviation Technologies)
(formerly: II Morrow)
Salem, Oregon
(Note: this is a new e-mail address)
dave.werth at garmin.com

-----Original Message-----
From: Fernando Machado [mailto:fmachadoj at inf.ufrgs.br] 
Sent: Wednesday, September 24, 2003 11:04 AM
To: solaris-users at filibeto.org; The SunHELP List
Subject: [SunHELP] starting a process as user JoeDoe

Friends!!!

Needdanother help! how do i start a process in rc2.d but not as root, as 
a user?
i need to start tomcat as user tomcat, but if i insert anything in 
rc2.d, it will start as root and will not work.

thanx!!!!!!

[ ]4s!
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp




            ------------------------- 
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient.  If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited.  If you have received this e-mail in error, please contact the sender and delete all copies. 
Thank you for your cooperation 



More information about the SunHELP mailing list