[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#462387: Incompatibility with passwd



Package: user-setup

Version: 1.17

Severity: important

When installing the latest version of the passwd package

1:4.1.0-2 0

990 http://ftp.debian.org testing/main Packages

9 http://ftp.debian.org unstable/main Packages

user-setup-apply fails setting a new password with the message:

chpasswd: options -e and -m are mutually exclusive.

diff -Naur /usr/lib/user-setup/user-setup-apply.bak /usr/lib/user-setup/user-setup-apply > chpasswd.patch

I suggest only use one of the options, as it does after appliyng the included patch.

--- /home/live/testing-personal/chroot/usr/lib/user-setup/user-setup-apply	2007-06-21 20:09:15.000000000 +0000
+++ /usr/lib/user-setup/user-setup-apply	2008-01-24 12:12:29.140111314 +0000
@@ -31,8 +31,10 @@
 	PASSWD="$2"
 	if [ "$3" = true ]; then
 		PRECRYPTED=-e
+	else
+		PRECRYPTED=-m
 	fi
-	$chroot $ROOT chpasswd $PRECRYPTED -m <<EOF
+	$chroot $ROOT chpasswd $PRECRYPTED <<EOF
 $USER:$PASSWD
 EOF
 }

Reply to: