Package: distributed-net Version: 2.9107.516-1 Severity: grave Tags: patch User: base-pas...@packages.debian.org 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: Setting up distributed-net (2.9107.516-1) ... Configuring the distributed.net client... Note that when it is run as a daemon (via /etc/init.d/distributed-net), the output will be redirected to /var/log/distributed-net.log. You do not need to set up a log file. [Hit return] This account is currently not available. dpkg: error processing distributed-net (--configure): subprocess installed post-installation script returned error exit status 1 My apologies for this. It's fortunately easily fixable: * Pass "-s /bin/sh" to "su daemon" to cope with the change of daemon's shell in base-passwd 3.5.30. diff -Nru distributed-net-2.9107.516/debian/distributed-net-config distributed-net-2.9107.516/debian/distributed-net-config --- distributed-net-2.9107.516/debian/distributed-net-config 2008-11-15 05:30:55.000000000 +0000 +++ distributed-net-2.9107.516/debian/distributed-net-config 2014-01-09 11:57:29.000000000 +0000 @@ -9,7 +9,7 @@ echo "[Hit return]" read foo cd /var/lib/distributed-net -su daemon -c "/usr/bin/dnetc -ini /etc/distributed-net.conf \ +su daemon -s /bin/sh -c "/usr/bin/dnetc -ini /etc/distributed-net.conf \ -inbase /var/lib/distributed-net/buff-in \ -outbase /var/lib/distributed-net/buff-out \ -config" diff -Nru distributed-net-2.9107.516/debian/distributed-net.init distributed-net-2.9107.516/debian/distributed-net.init --- distributed-net-2.9107.516/debian/distributed-net.init 2010-04-09 04:56:41.000000000 +0100 +++ distributed-net-2.9107.516/debian/distributed-net.init 2014-01-09 11:57:49.000000000 +0000 @@ -51,7 +51,7 @@ if start-stop-daemon --quiet --stop --signal 0 --user daemon --name dnetc 2>/dev/null; then echo " already running." else - su daemon -c "chrt -b 0 $DAEMON $OPTIONS" + su daemon -s /bin/sh -c "chrt -b 0 $DAEMON $OPTIONS" echo "." fi ;; @@ -63,7 +63,7 @@ # dnetc wants to use its own shutdown command, so start-stop-deamon # is only used to ckeck for the running process. if start-stop-daemon --quiet --stop --signal 0 --user daemon --name dnetc 2>/dev/null; then - su daemon -c "$DAEMON $OPTIONS -shutdown" > /dev/null 2>&1 + su daemon -s /bin/sh -c "$DAEMON $OPTIONS -shutdown" > /dev/null 2>&1 # wait for upto 10s for dnetc to stop. WAIT=0 @@ -90,13 +90,13 @@ reload) # if dnetc is running have it HUP itself, otherwise do nothing. if start-stop-daemon --quiet --stop --signal 0 --user daemon --name dnetc 2>/dev/null; then - su daemon -c "$DAEMON $OPTIONS -restart" 2> /dev/null + su daemon -s /bin/sh -c "$DAEMON $OPTIONS -restart" 2> /dev/null fi ;; force-reload) # if dnetc is running have it HUP itself, otherwise start it. if start-stop-daemon --quiet --stop --signal 0 --user daemon --name dnetc 2>/dev/null; then - su daemon -c "$DAEMON $OPTIONS -restart" 2> /dev/null + su daemon -s /bin/sh -c "$DAEMON $OPTIONS -restart" 2> /dev/null else $0 start fi @@ -104,17 +104,17 @@ fetch) echo -n "distributed.net: Fetching blocks" cd /var/lib/distributed-net || exit 1 - su daemon -c "$DAEMON $OPTIONS -fetch" + su daemon -s /bin/sh -c "$DAEMON $OPTIONS -fetch" ;; flush) echo -n "distributed.net: Flushing blocks" cd /var/lib/distributed-net || exit 1 - su daemon -c "$DAEMON $OPTIONS -flush" + su daemon -s /bin/sh -c "$DAEMON $OPTIONS -flush" ;; update) echo -n "distributed.net: Updating blocks" cd /var/lib/distributed-net || exit 1 - su daemon -c "$DAEMON $OPTIONS -update" + su daemon -s /bin/sh -c "$DAEMON $OPTIONS -update" ;; *) echo "Usage: /etc/init.d/distributed-net {start|stop|restart|force-reload|fetch|flush|update}" Sorry, -- Colin Watson [cjwat...@debian.org] -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org