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.

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

1 Answer 1

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

 
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.