<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 16 Aug 2019, at 01:13, Ryan Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><br class="">On Aug 14, 2019, at 17:49, Gerben Wierda wrote:<br class=""><br class=""><blockquote type="cite" class="">If this is a bug, I suggest using 600, not 500 for the fix.100 local users on a mac seems adequate (like 640kB…) and server starts at 1025, so ample room for services.<br class=""></blockquote><br class="">As I said, I believe our intention was to use the same range of UIDs and GIDs that Apple used to create normal user accounts. If Apple starts at 501, it was a bug for us to start at 500, and the fix for the bug would be to start at 501.<br class=""><br class="">Note that we also create a "macports" user and group at MacPorts installation time. The code for that is separate from the code that creates users and groups for ports. There are two copies of the "macports" user/group creation code: one in Makefile.in for users who build from source, and one in the Installer package, the source for which is in portmgr/dmg/postflight.in. Both of these search for an empty UID starting at 501, not 500. And they don't specify what range to use for group IDs; they just ask the system for the next free GID.<br class=""><br class="">If you want our range not to overlap Apple's range, that's a separate feature request that we could certainly consider. Off the top of my head I can't think of any problems with that but I don't know why it was originally chosen to overlap Apple's range.<br class=""><br class="">Note that our user handling originates from an old version of Mac OS X in which Apple created both a UID and a GID for each user. (Tiger and earlier maybe?) Current versions of macOS no longer do that; for example my main user is not a member of its own group, but rather of the group "staff". I don't know if it still makes sense for us to create a separate group for each user that we create, but I suppose that's another separate issue.<br class=""></div></div></blockquote><br class=""></div><div>I know that latter. For services and daemons, Apple still creates user/groups with identical separate names. And these are what the MacPorts generally need. For actual users, even in the NeXT days if I recall correctly, it was multiple users in a group like staff/admin/wheel (very early, the latter two for admin users), but I might be wrong here.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">luna:~ gerben$ dscl . -list /Users</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_amavisd</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_analyticsd</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_appleevents</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_applepay</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_appowner</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_appserver</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_appstore</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">etc</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">luna:~ gerben$ dscl . -list /Groups</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_amavisd</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_analyticsd</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_analyticsusers</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_appleevents</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_applepay</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_appowner</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_appserveradm</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_appserverusr</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">_appstore</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">etc</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><div class="">If you have multiple Macs and you want to have the same uid for users on them, you create them in the same order. Now, normally you do that at the start before you get to do things like MacPorts, but in this case I did not.</div><div class=""><br class=""></div><div class="">So, what I need is build macports from source if I want to change this behaviour? </div><div class=""><br class=""></div><div class="">G</div><div class=""><br class=""></div></span></div></span></div></body></html>