I can see 2 ways to resolve the issue from a Fedora development perspective.<br><br>1. Similar to the suggestion you have put forward below - Change UID_MAX to say 40,000 and change GID_MIN to 40,001. That will stop uids and gids from colliding and is a pretty easy solution to implement from a change perspective. Raises a problem tho that what UID will the 39,501th user have? We cant just increase the UID_MAX as there'll be groups using the numbers above 40,000 and we'll run into the same problem as we're having now. Chances are you'll be using NIS or LDAP if you've got this many users but its probably not good practice to be assuming the user management practices of the masses.
<br><br>2. Change the useradd / luseradd code to find the lowest unique uid / gid combination when creating any new user. This is harder to implement because it involves rewriting the underlying code of useradd but it is a more complete and scalable solution because you can change the UID, GID MIN, MAX values to whatever and it'll still work and users will always have their uid equal to their gid. I tend to favaour this solution because of it's completeness and scalability.
<br><br>Robin / Others - what do you think? Depending on the general consensus I'll probably submit a feature enhancement request.<br><br>In response to Tim and Justin - you'd hope that the CLI and GUI tools doing the same thing would be using the same underlying code / library to achieve it so there is consistency across the 2 tools but it looks like theyre not :o(
<br><br>Thanks all for your responses.<br><br>Dave<br><br><div><span class="gmail_quote">On 23/11/05, <b class="gmail_sendername">Robin Laing</b> <<a href="mailto:Robin.Laing@drdc-rddc.gc.ca">Robin.Laing@drdc-rddc.gc.ca
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Craig White wrote:<br>> On Wed, 2005-11-23 at 10:46 -0700, Robin Laing wrote:
<br>><br>>>Dave Brown wrote:<br><br><snip><br><br>><br>> ----<br>> I think that you will a number of these 'defaults' can be adjusted by<br>> editing:<br>><br>> /etc/default/useradd<br>> /etc/login.defs
<br>><br>> Craig<br>><br>><br><br>Hey, I learned something today.<br><br>In /etc/login.defs,<br><br>#<br># Min/max values for automatic uid selection in useradd<br>#<br>UID_MIN                   500<br>UID_MAX                 60000
<br><br>#<br># Min/max values for automatic gid selection in groupadd<br>#<br>GID_MIN                   500<br>GID_MAX                 60000<br><br>may solve the whole mess.<br><br>It may be a nice idea to change these defaults to prevent this
<br>headache in the future.  I will play with this at home and then submit<br>an enhancement request if it works as I would like.<br><br>Thank you for the info.<br><br>Robin<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">
fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br></blockquote></div><br>