How to Check in Shell What User Apache Is Running As?

In a *nix shell, you can see the owner of the Apache process (i.e. the user the process is run as), by using the following command:

ps aux | egrep '(apache|httpd)'

The ps aux command lists all running processes (including the user/owner of the process), while egrep '(apache|httpd)' filters the results by Apache process names (i.e. "apache" or "httpd").


Hope you found this post useful. It was published . Please show your love and support by sharing this post.