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

Bug#529475: user-setup fails because -m option is no longer valid



tags 529475 patch
thanks

Quoting Christian Perrier (bubulle@debian.org):

> Both this bug and #528610 should probably be reassigned to passwd,
> severity critical (breaks other software).
> 
> #528610 apparently has a workaround (using usermod) but there is
> apparently none for this bug

There's one..:-)

Index: user-setup-apply
===================================================================
--- user-setup-apply    (révision 58623)
+++ user-setup-apply    (copie de travail)
@@ -30,8 +30,6 @@
        PASSWD="$2"
        if [ "$3" = true ]; then
                OPTS=-e
-       else
-               OPTS=-m
        fi
        $chroot $ROOT chpasswd $OPTS <<EOF
 $USER:$PASSWD


As libpam-runtime is configured by the moment user-setup-apply runs,
chpasswd will just use PAM settings and the password will use MD5
anyway...so "-m" is just useless..:-)


Attachment: signature.asc
Description: Digital signature


Reply to: