Package: lurker
Version: 2.3-4
Severity: important
Tags: patch
User: [email protected]
Usertags: shell-fallout
In base-passwd 3.5.30, I changed www-data'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: the cache pruning in
lurker's postinst and prerm will fail because it tries to use "su
www-data" without overriding the shell. Here's a fix:
* Pass "-s /bin/sh" to "su www-data" to cope with the change of www-data's
shell in base-passwd 3.5.30.
diff -Nru lurker-2.3/debian/postinst lurker-2.3/debian/postinst
--- lurker-2.3/debian/postinst 2013-12-13 14:57:45.000000000 +0000
+++ lurker-2.3/debian/postinst 2014-01-09 12:39:47.000000000 +0000
@@ -79,7 +79,7 @@
# clean web cache
if [ -x /usr/bin/lurker-prune ] && [ -f /etc/lurker/lurker.conf ] && [ -f
/var/lib/lurker/db ]; then
echo "Pruning the lurker webserver cache."
- su - www-data -c "/usr/bin/lurker-prune -p"
+ su - www-data -s /bin/sh -c "/usr/bin/lurker-prune -p"
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff -Nru lurker-2.3/debian/prerm lurker-2.3/debian/prerm
--- lurker-2.3/debian/prerm 2011-09-19 11:51:07.000000000 +0100
+++ lurker-2.3/debian/prerm 2014-01-09 12:39:16.000000000 +0000
@@ -12,7 +12,7 @@
remove)
if [ -x /usr/bin/lurker-prune ] && [ -f /etc/lurker/lurker.conf ] && [ -f
/var/lib/lurker/db ]; then
echo "Pruning the lurker webserver cache."
- su - www-data -c "/usr/bin/lurker-prune -p"
+ su - www-data -s /bin/sh -c "/usr/bin/lurker-prune -p"
fi
;;
Sorry,
--
Colin Watson [[email protected]]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]