Bug 153310 - /etc/login.defs GID_MIN is not used by useradd
Summary: /etc/login.defs GID_MIN is not used by useradd
Status: RESOLVED INVALID
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Stable Snapshot 2
Hardware: All SuSE Linux 10.0
: P5 - None : Minor
Target Milestone: ---
Assignee: Thorsten Kukuk
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-24 09:25 UTC by Morten Bjoernsvik
Modified: 2006-02-27 09:11 UTC (History)
0 users

See Also:
Found By: Corporate Interoperability Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Morten Bjoernsvik 2006-02-24 09:25:49 UTC
Why has group users GID=100
It should be atleast 1000 according to GID_MIN in logindefs.
Please fix, I'm porting our app to SUSE from RHEL

scpdev:~ # useradd mbj
scpdev:~ # id mbj
uid=1001(mbj) gid=100(users) groups=100(users),16(dialout),33(video)

The redhat-way is better a separate group for each user:
scpdev:~ # userdel mbj
no crontab for mbj
scpdev:~ # useradd mbj -g mbj
scpdev:~ # id mbj
uid=1001(mbj) gid=1000(mbj) groups=1000(mbj),16(dialout),33(video)


excerp from /etc/login.defs
#
# Min/max values for automatic uid selection in useradd
#
# SYSTEM_UID_MIN to SYSTEM_UID_MAX inclusive is the range for
# UIDs for dynamically allocated administrative and system accounts.
# UID_MIN to UID_MAX inclusive is the range of UIDs of dynamically
# allocated user accounts.
#
SYSTEM_UID_MIN            100
SYSTEM_UID_MAX            499
UID_MIN                  1000
UID_MAX                 60000

#
# Min/max values for automatic gid selection in groupadd
#
# SYSTEM_GID_MIN to SYSTEM_GID_MAX inclusive is the range for
# GIDs for dynamically allocated administrative and system groups.
# GID_MIN to GID_MAX inclusive is the range of GIDs of dynamically
# allocated groups.
#
SYSTEM_GID_MIN            100
SYSTEM_GID_MAX            499
GID_MIN                  1000
GID_MAX                 60000
Comment 1 Michael Gross 2006-02-24 13:11:38 UTC
> The redhat-way is better a separate group for each user

The standard for SUSE always was to have _one_ user-group. IMO creating one group for each user makes no sense, however this is a matter of opionion. We should not change that.

The variables
SYSTEM_GID_MIN            100
UID_MIN                  1000

are used correctly for your example: 
scpdev:~ # id mbj
uid=1001(mbj) gid=100(users) groups=100(users),16(dialout),33(video)

UID is 1001 >= 1000 and GID is 100 >= 100

So I fail to see the problem at the moment.
Comment 2 Morten Bjoernsvik 2006-02-24 14:05:16 UTC
Hi
So it means that users are qualified as a system group.
I failed to see that. I was used to the redhat way.

Sorry for bugging you
Comment 3 Michael Gross 2006-02-27 09:08:46 UTC
Thorsten: Please decide this.
Comment 4 Thorsten Kukuk 2006-02-27 09:11:04 UTC
There is nothing to decide, your comment #1 is correct.