I'd like to allow people to update a website either through their shell 
account or WebDAV. My problem is permissions. I can make a group 
"somewebsite" including users apache, bob, and charlie. Then I can make 
all the directories setgid. When bob and charlie make new files or 
directories, everything works out. When Apache does, there's a problem: 
the group write permission is disabled. bob and charlie can't modify the 
file.

I grepped through the source for umask and found this:

     ./modules/dav/fs/dbm.c:    /* ### do we need to deal with the umask? */
     ./modules/dav/fs/dbm.c:    /* ### do we need to deal with the umask? */
     ./modules/dav/fs/repos.c:    /* ### do we need to deal with the 
umask? */
     ./modules/dav/fs/repos.c:    /* ### do we need to deal with the 
umask? */

I think the answer is yes. In my situation, just setting the umask 
globally would work. Are there situations where it'd need to be set on a 
per-directory basis? I.e., is there need for a "DavUmask" directive that 
can be set in <directory> containers?

--
Scott Lamb

Reply via email to