mod_dav_fs_diskquota 20060315 review
Downloadmod_dav_fs_diskquota module is a derived work of mod_dav_fs in Apache 2.0. When it stores files or directories, it changes their o
|
|
mod_dav_fs_diskquota module is a derived work of mod_dav_fs in Apache 2.0.
When it stores files or directories, it changes their owner to the OS user account that has same name as the Web-authorized user, so OS disk quota can continue to work for WebDAV contents.
mod_dav_fs_diskquota makes new files/directories:
owner: OS user account (= same name of Web authorized account)
group: Apache group account
mode: user=readable/writable, group=readable/writable
The owner of them is an user account, so amount of them is limited by OS disk quota. Apache can treat them with group permission. To change files/directories owner, we need to:
1.Give CAP_NET_BIND_SERVICE and CAP_CHOWN capability to Apache.
2.Run Apache as non-root account from beginning. (otherwise, Apache process changes its UID as apache user and it drops above capabilities.)
mod_dav_fs_diskquota 20060315 search tags