Bug#316219: [Pkg-shadow-devel] Bug#316219: passwd - please enable shadow by default on firsttime installation

Christian Perrier Christian Perrier <bubulle@debian.org>, 316219@bugs.debian.org
Thu, 30 Jun 2005 12:14:25 +0200


> diff -ur shadow-4.0.3.orig/debian/passwd.preinst shadow-4.0.3/debian/passwd.preinst
> --- shadow-4.0.3.orig/debian/passwd.preinst	2005-06-30 09:46:29.881001537 +0200
> +++ shadow-4.0.3/debian/passwd.preinst	2005-06-30 09:29:17.920774693 +0200
> @@ -29,7 +30,9 @@
>  	    if dpkg --compare-versions $2 lt 1:4.0.3 ; then
>  		remove_md5 /etc/pam.d/passwd 23a5d1465bbc1e39ca6e0c32f22a75c9
>  	    fi
> -	    fi
> +	else
> +	    shadowconfig on
> +	fi


Means that we enforce shadow passwords. We can obviously do this,
however, I think that we should move the conditional config based on
the debconf question to the top of the config script.

That way, we will have a behaviour which remains consistent with what
the user may be prompted for by debconf.