Red Hat Bugzilla – Bug 26353
useradd/adduser doesn't read group id from /etc/default/useradd properly
Last modified: 2007-04-18 12:31:14 EDT
I have modified my /etc/default/useradd file to change the shell, and gid when adding users. The shell is changed in /etc/passwd when adding a
user, but the gid always stays the same as the uid. I have changed GROUP=700 in /etc/default/useradd, and it always takes the uid when
adding a user. Am I missing something else here, or is this a bug?
This bug is back for the shadow-utils distributed with redhat 7.2.
what are the odds of actually FIXING this bug? It shows up in 7.3.
the uid = gid behavior isn't even mentioned in theman page, suggesting that this
is a redhat addition to the code. I suppose this is a nice feature to have but
i don't want to be forced down this road...
This is present in 9.0 also, is this ever going to get fixed?
GROUP=xxx in /etc/default/useradd:
- useradd creates user with xxx as initial group
- group xxx must exist before u invoke useradd
- use useradd with -n option, otherwise it will create new group for user(Red
Hat Linux specific behavior). Looking for new gid starts at GID_MIN specified