[CentOS] How to run command as apache?

Mon May 11 03:33:01 UTC 2009
Les Mikesell <lesmikesell at gmail.com>

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

Run your command as
su -s /bin/sh apache -c "command".

-- 
   Les Mikesell
    lesmikesell at gmail.com