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.
> [EMAIL PROTECTED]:/etc# mv login.defs login.defs.save

I did the same, but instead of adduser:

> [EMAIL PROTECTED]:/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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to