<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="">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.<div class=""><br class=""></div><div class="">I’d rather not create my own macports port, it is complex enough as it is.<br class=""><div class=""><br class=""><div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 10px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">Gerben Wierda<br class=""><a href="https://ea.rna.nl/the-book/" class="">Chess and the Art of Enterprise Architecture</a><br class=""><a href="https://ea.rna.nl/the-book-edition-iii/" class="">Mastering ArchiMate</a><br class=""><a href="https://www.infoworld.com/blog/architecture-for-real-enterprises/" class="">Architecture for Real Enterprises</a> at InfoWorld<br class=""><a href="https://eapj.org/on-slippery-ice/" class="">On Slippery Ice</a> at EAPJ</div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 14 Aug 2019, at 23:55, 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 16:36, Gerben Wierda wrote:<br class=""><br class=""><blockquote type="cite" class="">If you create local userson macOS, it starts with uid 501 and then goes up. (for network users it always (still?) started with 1025 and then goes up.<br class=""><br class="">MacPorts, when it creates users, starts with 500 and then goes up.<br class=""></blockquote><br class="">I noticed that too... I think this is a bug. I think we meant to start user IDs at 501, just like Apple. In ./src/pextlib1.0/Pextlib.c the comment describing the function NextuidCmd says it will "Find the first unused UID > 500" but it actually starts at the value of MIN_USABLE_UID which the configure script hardcodes as 500.<br class=""><br class=""><br class=""><blockquote type="cite" class="">So, depending on the order of creation, the same user has different uid (same for groups). It is not generally a problem, but I don’t like it. Depending on the order of actions on a system you get different uids for different MacPorts-generated users, intermingled with created local users.<br class=""><br class="">I’d like to tell macports to start at another number, to lessen the chance of this.<br class=""></blockquote><br class="">There isn't a setting for the user to change this. If you want to change it, you'll have to edit the number in the MacPorts base configure script, reconfigure, and recompile.<br class=""><br class="">Just make sure you don't use UIDs less than 500, which are reserved.<br class=""><br class=""></div></div></blockquote></div><br class=""></div></div></body></html>