[CentOS] How to run command as apache?

RobertH roberth at abbacomm.net
Mon May 11 04:00:03 UTC 2009


> 
> I don't want to change its shell to a valid shell.  It should 
> be a locked account.
> 
> 	Neil

neil,

[root at sa1 ~]# su -s /bin/sh apache -c "whoami"

apache

 - rh




More information about the CentOS mailing list