[Pkg-shadow-devel] Bug#471667: Bug#471667: Bug#471667: [D-I] Configuration of passwd during debootstrap fails when run in non-clean target

Justin Pryzby justinpryzby at users.sourceforge.net
Wed Mar 19 14:57:59 UTC 2008


clone 471667 -1
reassign -1 base-passwd
retitle -1 base-passwd: update-passwd leaves account files in inconsistent state according to pwck (should remove user with low UID from shadow, too)
found -1 3.5.17
thanks

On Wed, Mar 19, 2008 at 03:18:57PM +0100, Frans Pop wrote:
> On Wednesday 19 March 2008, Justin Pryzby wrote:
> > That seems to be passwd.postinst calling "shadowconfig on" calling
> > pwck -q, which fails.  Presumably the failure is due to a real
> > inconsistency with system account datafiles.
> >
> > I note that pwck -q doesn't seem to have the intended effect
> > (-q shouldn't prompt).
> 
> Even if it does prompt, I don't think it actually asks for input as that 
> would likely have resulted in a hang. I'm not completely sure of that 
> though.
I assumed it was just trying to read from a closed FD (perhaps not due
to dpkg not providing one in general, but IDK what your installation
environment is, and guessed that it didn't provide a stdin).

Do you know what version libuuid was initially installed?  I suspect
one of the problems was fixed in libuuid1 1.40.7-1 (See #466929).  If
you agree, the initial report (#471667) can be closed.

I changed my mind about the passwd pwck -q prompting problem.  On
rereading the manual page, the description isn't that it avoids
prompting, but rather inhibits report of warnings (errors still cause
prompts).

That leaves one remaining problem (plus excessive configuration
attempts by dpkg): base-passwd leaves the account files in a state
where pwck later fails.  base-passwd should also have removed the
relevant line from /etc/shadow.

> After the successful initial debootstrap run:
> /etc/passwd:libuuid:x:42:101::/var/lib/libuuid:/bin/sh
> /etc/shadow:libuuid:!:13957:0:99999:7:::
> /etc/group:libuuid:x:101:
> /etc/gshadow:libuuid:!::
> 
> After the second failed run the line in /etc/passwd has disappeared:
> /etc/shadow:libuuid:!:13957:0:99999:7:::
> /etc/group:libuuid:x:101:
> /etc/gshadow:libuuid:!::





More information about the Pkg-shadow-devel mailing list