1 |
On Thursday 25 October 2007, Albert Hopkins wrote: |
2 |
|
3 |
> Oh do they do that now? That was that nasty Red Hat extension. |
4 |
|
5 |
While one might agree or disagree about that, IMHO the problem now is |
6 |
that the options in /etc/default/useradd are ignored. If I run |
7 |
useradd -D it shows GROUP=100, but running useradd <username> still |
8 |
creates a new group named after the user and puts the user into it. |
9 |
|
10 |
After a little search, it seems that the USERGROUPS_ENAB directive |
11 |
in /etc/login.defs, although not explicitly mentioning this issue, is |
12 |
the culprit. Setting it to "no" restores the old behavior (putting the |
13 |
new users into group "users"). |
14 |
|
15 |
Alternatively, looking at the various patches, it seems that a new option |
16 |
exists (-n), which seems to be the default when -g is not given, that is |
17 |
not documented in the man page (to see it, "useradd --help" must be |
18 |
used). This is another case where man pages are not in sync with changes |
19 |
introduced by patches. Should a bug be opened for this? |
20 |
-- |
21 |
gentoo-user@g.o mailing list |