Created
March 7, 2015 17:26
-
-
Save drola/13ea1ae4397fce7e40f7 to your computer and use it in GitHub Desktop.
Identify apache user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APACHE_USER=$(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {if ($1) print $1}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment