Here is how you run a command as apache in centos without giving apache a valid shell.

su -s /bin/sh apache -c “whoami”




No Responses to “Run command as apache in centos”  

  1. No Comments

Leave a Reply