1

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.

2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.