/var/lock/apache2 created with root:root ownership (apache2 can't create lock files in it)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apache2
/etc/init.d/apache2 does:
case $1 in
start)
[ -f /etc/apache2/
[ -d /var/run/apache2 ] || mkdir -p /var/run/apache2
[ -d /var/lock/apache2 ] || mkdir -p /var/lock/apache2
[ -f /var/run/
if $APACHE2CTL start; then
fi
;;
Since /etc/init.d/apache2 is start by root, mkdir -p will end up creating a directory that is owned by root. The file /etc/apache2/
DAVLockDB /var/lock/
Since the directory /var/lock/apache2/ is owned by root, the module is unable create the lock file, and webdav does not work correctly (only allows reading).
Hm.. maybe the ownership of the directory is not the main problem. DAV lock file is still not being created after fixing the lock directory :(