tags 493988 patch thanks Hi,
attached you find a simple patch which will modify rancid-core.postinst to call adduser only when the rancid user does not exist (that won't change the UID/GID to a system-one, but should still work fine). regards Evgeni
diff -u rancid-2.3.2~a8/debian/changelog rancid-2.3.2~a8/debian/changelog --- rancid-2.3.2~a8/debian/changelog +++ rancid-2.3.2~a8/debian/changelog @@ -1,3 +1,12 @@ +rancid (2.3.2~a8-3.1) unstable; urgency=low + + * Non-maintainer upload. + * debian/rancid-core.postinst: + + Only try to add the rancid user when he does not exist. + Closes: #493988 + + -- Evgeni Golov <[EMAIL PROTECTED]> Wed, 12 Nov 2008 20:25:02 +0100 + rancid (2.3.2~a8-3) unstable; urgency=low * 06_tmp_security.dpatch: remove temporary directory recursively. This diff -u rancid-2.3.2~a8/debian/rancid-core.postinst rancid-2.3.2~a8/debian/rancid-core.postinst --- rancid-2.3.2~a8/debian/rancid-core.postinst +++ rancid-2.3.2~a8/debian/rancid-core.postinst @@ -33,7 +33,9 @@ db_get "rancid/warning" || true db_get "rancid/go_on" && true [ "$RET" = "false" ] && exit 0 - adduser --system --group --home /var/lib/rancid --quiet rancid + if ! `getent passwd rancid >/dev/null`; then + adduser --system --group --home /var/lib/rancid --quiet rancid + fi if [ -d /var/log/rancid ]; then chown rancid:rancid /var/log/rancid fi
pgpsQCUxdYHiJ.pgp
Description: PGP signature