Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed LAMP on my debian 6 vps. How can I find out as which user the web user is running? The reason I ask this question is because however I chmod my files I can always browse to it via my browser.

Thanks very much

share|improve this question
up vote 2 down vote accepted
ps waux | egrep "httpd|apache" 

should tell you the user (which will probably be www-data).

share|improve this answer
so there a a few processes running one as root and the others as www-data. Can that be? – sanders Mar 15 '13 at 7:42
Yes. That would be correct and normal. The one owned by "root" is the process that starts the other processes, and presumably increases and decreases the number of simultaneous web requests = processes. The user who is running the web process - for all intents and purposes - is www-data (which is the same I see on my ubuntu webserver, Ubuntu being a variant of Debian.) – davidgo Mar 15 '13 at 7:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.