-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tags #537252 + patch
thanks

Hello,

please apply the attached diff. Cheers.

- --
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

E-Mail: [email protected]
        [email protected]

Comment:
Always if we think we are right,
we were maybe wrong.
*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkrTA4QACgkQ2XA5inpabMea0gCfY672dPhIjHKIO2KcYXKEryOk
UvoAoKx36u+igH5SSREoJolthQFiMASJ
=f75D
-----END PGP SIGNATURE-----
diff -Naur scponly-4.8.orig/setup_chroot.sh.in scponly-4.8/setup_chroot.sh.in
--- scponly-4.8.orig/setup_chroot.sh.in	2009-10-12 12:14:33.000000000 +0200
+++ scponly-4.8/setup_chroot.sh.in	2009-10-12 12:21:33.000000000 +0200
@@ -255,7 +255,9 @@
 	#
 	#	ok we dont have pwd_mkdb, lets improvise:
 	#
-		@PROG_GREP@ $targetuser /etc/passwd > $targetdir/etc/passwd
+		# We also need a root user, to fix Debian bug #537252
+		@PROG_GREP@ ^root: /etc/passwd >> $targetdir/etc/passwd
+		@PROG_GREP@ $targetuser /etc/passwd >> $targetdir/etc/passwd
 		# Debian: copy /etc/group into the jail, for /usr/bin/groups to work
 		cp /etc/group $targetdir/etc/group
 

Attachment: add_root_user.diff.sig
Description: Binary data

Reply via email to