Comment 6 for bug 483170

Revision history for this message
Wladimir Mutel (mwg) wrote :

I confirm that this is still true for 10.04 upgrade. The upgrade replaces courier-authdaemon startup script , and in the new official version of the script, the permissions on created directory are left unchanged. They should be changed to be readable for at least daemon:daemon user&group, like this :

--- /etc/init.d/courier-authdaemon 2009-12-06 01:05:50.000000000 +0200
+++ /backup/tag/etc/init.d/courier-authdaemon 2009-10-27 13:36:58.000000000 +0200
@@ -28,7 +28,12 @@
        cd /
        log_daemon_msg "Starting Courier authentication services" "authdaemond"
        if [ ! -d "$rundir" ]; then
+ if [ ! -d $(dirname "$rundir") ]; then
+ mkdir -p -m 0750 $(dirname $rundir)
+ chown daemon.daemon $(dirname $rundir)
+ fi
                mkdir -p -m 0750 $rundir
+ chown daemon.daemon $rundir
        fi
        $daemonscript start
        log_end_msg 0