Danushka "silvermace" Abeysuriya

Monthly Archives: March, 2010

Finding UID’s in MacOS X 10.5/10.6

Was helping setup a VM/NFS share on a friends OSX machine using all_squash to remap the UID and GID. Unfortunately OSX doesn’t like using the /etc/group file as traditional linux, doesn’t provide uid and gid commands or the Netinfo utility. So to cut to the chase, to list the UIDs of the local users:
dscl /Local/Default [...]