Re: How to run command as apache?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux