Re: How to run command as apache?

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



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

neil,

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

apache

 - rh

_______________________________________________
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