Skip to main content
1 of 2
Shyam Verma
  • 1.3k
  • 8
  • 18
  • In linux, you can find out the name of the user running Apache with a command :

ps aux | grep apache # shows username in the first column

  • Retrieve the groups this user is part of with the groups(1) command:

groups [USERNAME]

  • Here is a screenshot to find out apache [user-name] and [user-group] in Ubuntu 12.04

Sample run on Ubuntu 12.04

Shyam Verma
  • 1.3k
  • 8
  • 18