You are not logged in.

#1 2008-12-24 14:32:34

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Need to create a group, what ID to use?

If I create a group in an .install file, does it matter if I set a specific group ID?  If so, how can I make sure that other packages that specify group IDs won't conflict with mine?

Offline

#2 2008-12-24 14:45:15

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Need to create a group, what ID to use?

Maybe I'm not the best person to answer but first I would check if the group is created already (which you may be doing already) then if the group doesn't exist just create a new one like you would do in the command line and let it sort it out the id for you smile. I guess it really doesn't matter which id you use it only matter how you setup things afterwards but I may be wrong.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#3 2008-12-30 21:27:50

miah
Member
From: US
Registered: 2008-12-30
Posts: 4

Re: Need to create a group, what ID to use?

Synthead,

I personally would use the -r option to both useradd and groupadd, it will create a 'system' user/group based on the setting in /etc/login.defs.  If there is no setting in /etc/login.defs, I believe the default uid/gid starts at 100.  Look for SYS_UID_MIN/SYS_UID_MAX and SYS_GID_MIN/SYS_GID_MAX in login.defs(5).  But I would love to see a actual defined standard for this.  And possibly to see these variables defined in the default login.defs.  It would be nice to see the same uid for a specific daemon acrossed installs regardless of other packages installed, and without the use of a networked nss.

Offline

Board footer

Powered by FluxBB