Bug#249372: [Pkg-shadow-devel] Bug#249372: "Please enable login for GNU/Hurd": Can someone summarize this bug report?

Alexander Gattin xrgtn at yandex.ru
Sun Oct 9 10:56:16 UTC 2005


Hi!

On Sun, Oct 09, 2005 at 08:28:18AM +0200, Christian Perrier wrote:
> > I tried to just touch /etc/login.defs, which made shadowconfig happy,

I see that I need to check with zero length login.defs
too...

> > but adduser still failed for some reason I do not remember now, there
> > seems to be more involved.
> root at mykerinos:/etc# mv login.defs login.defs.save

I did the same, but instead of adduser:

> root at mykerinos:/etc# LC_ALL=C adduser krabs

tried just bare useradd. As you can see, adduser can
definitely provide more info, at least it complains to
stdin/stderr:

> adduser: `/usr/sbin/groupadd -g 1004 krabs' returned error code 1.  Aborting.

And it's not the case with useradd which fails silently
(only exitcode indicates failure).

> Seems that adding the usergroup fails when login.defs, meaning that
> groupadd needs login.defs

useradd/userdel/groupadd/groupdel -- it's more easy to
just grep source code for getdef_(u?num|str)

This means that we can't distribute "passwd" without
/etc/login.defs, latter being provided by "login" pkg.
That's why I propose to split shadow in 3 pieces
instead of 2 (as it currently is), just to move
/etc/login.defs out in its separate package (let's call
it "shadow-common") and have "passwd" depend on it.

-- 
WBR,
xrgtn




More information about the Pkg-shadow-devel mailing list