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

Files and folders created through webdav are assigned www-data.www-data and permission 740. I've already added my user to the www-data group, but I'd like to change the permission to 770, so I can modify them after they are created, without using sudo.

share|improve this question

Ok, figured it out:

  1. sudo nano /etc/apache2/envvars
  2. Include the following at the bottom of the file:

    umask 006
  3. After that restart Apache (sudo services apache2 restart)

This will create files with 660 and folders with 770 permission, if uploaded through WebDav.

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.