On 5/12/12 6:39 AM, Dustin Cartwright wrote: > Hi, > > The DirectoryServices daemon turns out to be open source, so I tried > looking at the source for insight into this problem. There's some code > in there which seems to be defaulting the UID to -1, but I couldn't make > sense of why it was getting invoked on 10.7 but not 10.6. I made some > tweaks to my branch, including assigning a UID and creating the user in > one step rather than as separate steps. Alexander, can you check to see > if this works for you now? Also, it would be great if someone could test > it on 10.5. The branch is at > https://github.com/dustinac/fink/tree/add-fink-bld > > Also, I found a comment in a MacPorts bug report: > https://github.com/dustinac/fink/tree/add-fink-bld which says that UIDs > less than 500 are reserved by Apple. So, I decided to change the > auto-assign range to 600-699, which is also separated from regular > users, whose IDs start at 500. > > Dustin >
It doesn't work for me on 10.7. 10.7: Adding user and group fink-bld for building packages unprivileged No packages to install. The core packages have been updated. You should now update the other packages using commands like 'fink update-all'. $ id fink-bld uid=4294967294(fink-bld) gid=4294967294(nobody) groups=4294967294(nobody),402(com.apple.sharepoint.group.1),403(com.apple.sharepoint.group.2),12(everyone),61(localaccounts) $ fink selfupdate <...> $ id fink-bld uid=4294967294(fink-bld) gid=4294967294(nobody) groups=4294967294(nobody),402(com.apple.sharepoint.group.1),403(com.apple.sharepoint.group.2),12(everyone),61(localaccounts) Though dscl gives: $ dscl . -read /Users/fink-bld uid dsAttrTypeNative:uid: 600 $ dscl . -read /Users/fink-bld gid dsAttrTypeNative:gid: 600 ----- 10.6: Adding user and group fink-bld for building packages unprivileged No packages to install. The core packages have been updated. You should now update the other packages using commands like 'fink update-all'. $ id fink-bld uid=600(fink-bld) gid=600(fink-bld) groups=600(fink-bld),101(com.apple.sharepoint.group.1),61(localaccounts),12(everyone),102(com.apple.sharepoint.group.2) ----- 10.5: Adding user and group fink-bld for building packages unprivileged No packages to install. The core packages have been updated. You should now update the other packages using commands like 'fink update-all'. $ id fink-bld uid=600(fink-bld) gid=600(fink-bld) groups=600(fink-bld) -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/2012/02/21/got-job/ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel