Package: monopd Version: 0.9.3-4 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu karmic ubuntu-patch
Hi, The init script currently uses /bin/su to run the daemon as 'nobody'. This opens a PAM session for the user, which is odd in itself. However, combined with pam-ck-connector and newer GNOME it means that the user cannot shutdown without the root password as it believes more than one user is logged in. start-stop-daemon has a --chuid option to change the user the daemon runs as, which is easier and avoids this issue. The attached patch uses that option, please consider applying it. I have just uploaded this patch to Ubuntu as the above configuration is our default one, so the problem affected most that installed monopd. Thanks, James
diff -u monopd-0.9.3/debian/monopd.init monopd-0.9.3/debian/monopd.init --- monopd-0.9.3/debian/monopd.init +++ monopd-0.9.3/debian/monopd.init @@ -33,8 +33,7 @@ start) echo -n "Starting $DESC: " start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ - --background --make-pidfile --exec \ - /bin/su nobody -- -c $DAEMON + --background --make-pidfile --chuid nobody --exec $DAEMON echo "$NAME." ;; stop) @@ -68,8 +67,7 @@ rm -f /var/run/$NAME.pid sleep 1 start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ - --background --make-pidfile --exec \ - /bin/su nobody -- -c $DAEMON + --background --make-pidfile --chuid nobody --exec $DAEMON echo "$NAME." ;; *)