I've configured apache22 to run with suexec.
Then I added webdav and here is a problem.
ALL files created with webdav, are owned by user under which apache22 server runs initially and is www
This completely ignores suexec user and group for a given virtual host.
How can I make webdav be affected by suexec and create edit files under user who owns virtual host?
But then again..., this IS FreeBSD and someone / something must make this possible!
Then I added webdav and here is a problem.
ALL files created with webdav, are owned by user under which apache22 server runs initially and is www
This completely ignores suexec user and group for a given virtual host.
How can I make webdav be affected by suexec and create edit files under user who owns virtual host?
WebDAV Configuration (mod_dav)
WebDAV provides a useful way to be able to treat web folders as local folders. This is can be great for providing people ways to upload, download and edit their web content directly and without having an actual system account on the server.
There are two big disadvantages to DAV, first that there are no popular browsers or OS's which natively support DAV over SSL, so make sure that any usernames and passwords you configure aren't privledged for anything else. Second, all actions performed through the DAV service are performed as the user which your web server runs as and can't be over-ridden by suexec. This is a security consideration in a virtualhosting enviroment because users can potentially read and/or overwrite each others files, and it's also an major inconvenience if you want to provide users with shell access as well as DAV access to their files (because files uploaded via DAV aren't owned by the shell user). I've talked to the Apache people about this and apparently it's a inherent limitation in the way Apache and the DAV module interact which they have no intention of addressing. Suck.
But then again..., this IS FreeBSD and someone / something must make this possible!