[Pkg-shadow-devel] Bug#328090: ssh: Fail to install non-interactively as part of the ltsp install

Nicolas François nicolas.francois at centraliens.net
Sat Oct 1 10:57:56 UTC 2005


tags 328090 - moreinfo unreproducible
reassign 328090 adduser
thanks

Hello,

On Sat, Oct 01, 2005 at 09:33:05AM +0200, Petter Reinholdtsen wrote:
> I just tried 'ltsp-build-client --dist etch --mirror
> http://ftp.skolelinux.no/debian' after disabling this workaround in
> ltsp-build-client:
> 
>   # Workaround for bug #328090 (in shadow or adduser, I suspect)
>   preseed $ROOT passwd passwd/make-user boolean false
>   chroot $ROOT dpkg-reconfigure  -fnoninteractive -pcritical passwd
> 
> This installation failed.  These are the versions of adduser, passwd
> and ssh installed:
> 
> # dpkg -l ssh adduser passwd
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
> ||/ Name           Version        Description
> +++-==============-==============-============================================
> ii  adduser        3.67           Add and remove users and groups
> ii  passwd         4.0.3-35       change and administer password and group dat
> iF  ssh            3.8.1p1-8.sarg Secure rlogin/rsh/rcp replacement (OpenSSH)
> #
> 
> Next, I upgraded the chroot to sid, and discover that the problem
> still exist.
> 
> # dpkg -l ssh adduser passwd
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
> ||/ Name           Version        Description
> +++-==============-==============-============================================
> ii  adduser        3.67.1         Add and remove users and groups
> ii  passwd         4.0.12-5       change and administer password and group dat
> iF  ssh            3.8.1p1-8.sarg Secure rlogin/rsh/rcp replacement (OpenSSH)
> #
> 
> This is the error I see in the chroot:
> 
>   Setting up ssh (3.8.1p1-8.sarge.4) ...
>   chage: the shadow password file is not present
>   adduser: `/usr/bin/chage -M 99999 sshd' returned error code 15.  Aborting.
>   Cleaning up.
>   Removing user `sshd'.
>   dpkg: error processing ssh (--configure):
>    subprocess post-installation script returned error exit status 1
> 
> To reproduce this, I recommend installing ltsp-server, editing
> /usr/sbin/ltsp-build-client to comment away the workaround, and then
> run 'ltsp-build-client --dist etch --mirror http://ftp.skolelinux.no/debian'.

Thanks for your patience Petter.

It seems adduser 3.67.1 forgot to change the chage return value from 3 to
15.

See the attached patch.

Kind Regards,
-- 
Nekral
-------------- next part --------------
--- adduser.orig	2005-10-01 12:20:12.000000000 +0200
+++ adduser	2005-10-01 12:24:17.000000000 +0200
@@ -396,12 +396,12 @@
 		$shell, '-u', $new_uid, $new_name);
     print "/usr/bin/chage -M 99999 $new_name\n" if $debugging;
     if (system('/usr/bin/chage', '-M', '99999', $new_name)) {
-	if( ($?>>8) ne 3 ) {
+	if( ($?>>8) ne 15 ) {
 	    &cleanup("$0: `/usr/bin/chage -M 99999 $new_name' returned error code " . ($?>>8) . ".  Aborting.\n")
 	      if ($?>>8);
 	    &cleanup("$0: `/usr/bin/chage -M 99999 $new_name' exited from signal " . ($?&255) . ".  Aborting.\n");
 	} else {
-	    print _("chage failed with return code 3, shadow not enabled, password aging cannot be set. Continuing.\n");
+	    print _("chage failed with return code 15, shadow not enabled, password aging cannot be set. Continuing.\n");
 	}
     }
     &invalidate_nscd();


More information about the Pkg-shadow-devel mailing list