Created
September 24, 2014 09:22
-
-
Save bindiego/068cd67ebeeee3282ac2 to your computer and use it in GitHub Desktop.
shows 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
#!/bin/bash | |
APACHE_USER=$(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {if ($1) print $1}') | |
echo $APACHE_USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment