Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.