Package: couriergrey
Version: 0.3.2-4
Severity: normal
Tags: patch
User: [email protected]
Usertags: shell-fallout

In base-passwd 3.5.30, I changed daemon's shell to /usr/sbin/nologin (a
change that I really should have made about ten years ago).  This has
unfortunately had a bit of collateral damage: couriergrey's cron.daily
job will fail because it tries to use "su daemon" without overriding the
shell.  Here's a fix:

  * Pass "-s /bin/sh" to "su daemon" to cope with the change of nobody's
    shell in base-passwd 3.5.30.

diff -Nru couriergrey-0.3.2/debian/couriergrey.cron.daily 
couriergrey-0.3.2/debian/couriergrey.cron.daily
--- couriergrey-0.3.2/debian/couriergrey.cron.daily     2013-10-25 
09:06:55.000000000 +0100
+++ couriergrey-0.3.2/debian/couriergrey.cron.daily     2014-01-09 
11:46:39.000000000 +0000
@@ -4,5 +4,5 @@
 fi
 
 # This is couriergrey's database cleanup cron job.
-su -c "/usr/lib/courier/filters/couriergrey -e 365" daemon \
+su -s /bin/sh -c "/usr/lib/courier/filters/couriergrey -e 365" daemon \
   > /dev/null || exit $?

Sorry,

-- 
Colin Watson                                       [[email protected]]


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to