[CentOS] How to run command as apache?

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


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




More information about the CentOS mailing list