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

Bastian Blank Bastian Blank <waldi@debian.org>, 316219@bugs.debian.org
Thu, 30 Jun 2005 09:49:32 +0200


--St7VIuEGZ6dlpu13
Content-Type: multipart/mixed; boundary="cNdxnHkX5QqsyA0e"
Content-Disposition: inline


--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

tags 316219 patch
thanks

I attached a patch to do that.

Bastian

--=20
You can't evaluate a man by logic alone.
		-- McCoy, "I, Mudd", stardate 4513.3

--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename=diff
Content-Transfer-Encoding: quoted-printable

diff -ur shadow-4.0.3.orig/config.h.in shadow-4.0.3/config.h.in
diff -ur shadow-4.0.3.orig/debian/changelog shadow-4.0.3/debian/changelog
--- shadow-4.0.3.orig/debian/changelog	2005-06-30 09:46:29.897999185 +0200
+++ shadow-4.0.3/debian/changelog	2005-06-30 09:29:46.603806355 +0200
@@ -1,3 +1,9 @@
+shadow (1:4.0.3-35.0.0waldi.1) UNRELEASED; urgency=3Dlow
+
+  * Enable shadow on firsttime installation.
+
+ -- Bastian Blank <waldi@debian.org>  Thu, 30 Jun 2005 09:29:33 +0200
+
 shadow (1:4.0.3-35) unstable; urgency=3Dlow
=20
   * Re-apply the debian/patches/036_CAN-2004-1001_passwd_check patch
diff -ur shadow-4.0.3.orig/debian/passwd.preinst shadow-4.0.3/debian/passwd=
=2Epreinst
--- 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
 	   =20
     ;;
=20
diff -ur shadow-4.0.3.orig/debian/rules shadow-4.0.3/debian/rules
--- shadow-4.0.3.orig/debian/rules	2005-06-30 09:46:29.883001260 +0200
+++ shadow-4.0.3/debian/rules	2005-06-30 09:36:34.132424195 +0200
@@ -2,7 +2,7 @@
=20
 config_options :=3D --disable-shared --without-libcrack --mandir=3D/usr/sh=
are/man --with-libpam
=20
-DEB_HOST_GNU_SYSTEM :=3D $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
+DEB_HOST_ARCH_OS :=3D $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 DEB_BUILD_GNU_TYPE =3D $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_GNU_TYPE =3D $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
@@ -104,7 +104,7 @@
 	install -c -m 444 debian/pam.d/chsh debian/passwd/etc/pam.d/chsh
 	install -c -m 444 debian/pam.d/passwd debian/passwd/etc/pam.d/passwd
 	install -c -m 444 debian/login.defs debian/login/etc/login.defs
-	install -c -m 444 debian/securetty.$(DEB_HOST_GNU_SYSTEM) debian/login/et=
c/securetty
+	install -c -m 444 debian/securetty.$(DEB_HOST_ARCH_OS) debian/login/etc/s=
ecuretty
 	install -d debian/passwd/usr/share/passwd
 	install -c -m 444 debian/shells debian/passwd/usr/share/passwd/shells
 	install -d debian/passwd/sbin

--cNdxnHkX5QqsyA0e--

--St7VIuEGZ6dlpu13
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iEYEARECAAYFAkLDpAsACgkQnw66O/MvCNEu2QCcD2pWoyHmPLwndFMXSPWf02lg
FzwAnjuZ0qHTlgKONSoadQ0EOQnTRntS
=72xe
-----END PGP SIGNATURE-----

--St7VIuEGZ6dlpu13--