On Thursday 25 October 2007, Albert Hopkins wrote:

> Oh do they do that now?  That was that nasty Red Hat extension.

While one might agree or disagree about that, IMHO the problem now is 
that the options in /etc/default/useradd are ignored. If I run 
useradd -D it shows GROUP=100, but running useradd <username> still 
creates a new group named after the user and puts the user into it.

After a little search, it seems that the USERGROUPS_ENAB directive 
in /etc/login.defs, although not explicitly mentioning this issue, is 
the culprit. Setting it to "no" restores the old behavior (putting the 
new users into group "users").

Alternatively, looking at the various patches, it seems that a new option 
exists (-n), which seems to be the default when -g is not given, that is 
not documented in the man page (to see it, "useradd --help" must be 
used). This is another case where man pages are not in sync with changes 
introduced by patches. Should a bug be opened for this?
-- 
[EMAIL PROTECTED] mailing list

Reply via email to