Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

When executing a php script, that creates a directory the resulting file is owned by nobody and nogroup. I know that apache2 is executed as www-data on Ubuntu systems, so, why is my directory owned by nobody?

Thank you!

share|improve this question

Even though nobody and nogroup sounds special, they are more or less a regular system user (nobody) and a regular system group (nogroup), much like www-data

When your created files have these owners, then most likely your php is executed as nobody instead of www-data. Check you webserver configuration. It might be possible, that apache is run as nobody, or, more likely, that you use some kind of cgi/fastcgi setup (like mod_fastcgi or a php5-fpm.

share|improve this answer

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.