[CentOS] How to run command as apache?

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

> 
> 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