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

A quick question on user management in Ubuntu 10.04.

I encounter the following practice in some deployment script for web server:

mkdir /home/www-data
cd /home/www-data
chown -R www-data:www-data some_package

It seems to me that no user/group has been explicitly created as 'www-data', unless the chown command does that? If so, does that mean that I can run stuff inside /home/www-data/ as user 'www-data' in some server start-up script? Or do I need to do extra permission configurations?

share|improve this question

On Debian-based systems, the user and group www-data are usually created at installation time, for use by web servers.

If they didn't exist, chown wouldn't create them – it would display an error message instead.

share|improve this answer
thanks for the clarification. one more thing, do I need to use chown to change the ownership of every time I copy a package/folder to /home/www-data/ when I deploy? – MLister Jun 17 '12 at 17:55

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.