[SunHELP] starting a process as user JoeDoe

Fernando Machado fmachadoj at inf.ufrgs.br
Wed Sep 24 14:24:03 CDT 2003


1.000 Thanks for everyone!!!

helped a lot!

[ ]4s!


Saily Cedre wrote:

>Hi!
>
>The script  may be like this...
>
>
>case $1 in
>'start')
>        su - tomcat4 -c /disk1/tomcat/bin/startup.sh
>        ;;
>'stop')
>        su - tomcat4 -c /disk1/tomcat/bin/shutdown.sh
>        ;;
>esac
>
>
>Saily.
>
>----- Original Message -----
>From: "Phil Stracchino" <alaric at caerllewys.net>
>To: "The SunHELP List" <sunhelp at sunhelp.org>
>Sent: Wednesday, September 24, 2003 2:15 PM
>Subject: Re: [SunHELP] starting a process as user JoeDoe
>
>
>  
>
>>On Wed, Sep 24, 2003 at 03:03:37PM -0300, Fernando Machado wrote:
>>    
>>
>>>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!!!!!!
>>>      
>>>
>>su - <user> <command>
>>
>>
>>--
>> .*********  Fight Back!  It may not be just YOUR life at risk.
>>    
>>
>*********.
>  
>
>> : phil stracchino : unix ronin : renaissance man : mystic zen biker geek
>>    
>>
>:
>  
>
>> :  alaric at caerllewys.net : alaric-ruthven at earthlink.net : phil at latt.net
>>    
>>
>:
>  
>
>> :   2000 CBR929RR, 1991 VFR750F3 (foully murdered), 1986 VF500F (sold)
>>    
>>
>:
>  
>
>> :    Linux Now!   ...Because friends don't let friends use Microsoft.
>>    
>>
>:
>  
>
>>_______________________________________________
>>SunHELP maillist  -  SunHELP at sunhelp.org
>>http://www.sunhelp.org/mailman/listinfo/sunhelp
>>    
>>
>_______________________________________________
>SunHELP maillist  -  SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list