I’m able to connect to http://mydomain.tld/dav by entering user name and password. But I don’t have any write privileges - read-only. This is happening for all virtual servers. How do I change to write access?
Also, is it possible for VM to automatically enable DAV for users it creates when creating a new virtual server? And also set the AuthType to Digest as default?
I just looked at my web error logs and get the following errors from webdav:
(13)Permission denied: Unable to create collection. [[403, #0]] - this is when i try and create a directory
(13)Permission denied: An error occurred while opening a resource. [[500, #0]] - this is when I try and upload a file
<p>Ok - when I[b><code>chown apache public_html/</code></b> WebDAV can read/write. But by default, Virtualmin creates public_html/ with[b><code>Access: (0750/drwxr-x—) Uid: ( 501/user) Gid: ( 501/user)</code></b>. Even though apache is part of GID 501/user DAV doesn’t have r/w. How can I give DAV r/w without having to chown apache to everything?</p>
<p>I’m just using default VM config.[/p>
Anyone have a fix for this? I’m encountering the same problem.
I also have the same issue. No rw perms and cannot figure it out.
You need to change permission of WebDAV folder from 755 to 775. That means that the group (apache, in this case) has permission to write.
If your WebDAV allowed folder is ‘/home/$USER/public_html/site1’, then the folder ‘site1’ should have 0775 permission.
That will solve your permission problem.
I had this issue, and just found this which is great. But my question is why could Virtualmin not set this when installing Webdav? Thanks
I have also this problem and I solve according to your method but this is not the correct way. Could you have an idea what the correct way is …