Gray’s Tech Blog
Here is how you run a command as apache in centos without giving apache a valid shell.
su -s /bin/sh apache -c “whoami”
Name (required)
Mail (will not be published) (required)
Website
No Responses to “Run command as apache in centos”
Please Wait
Leave a Reply