Skip to content
Mar 11 / Danushka

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 -list /Users UniqueID

I’m sure altering the last “UniqueID” value (as it’s referred to as a ‘key’) will yeild more interesting info, this is left as an excercise to the reader :)

One Comment

leave a comment
  1. Guy Sherman / Aug 10 2010

    I think I’ve done that before, to get my laptop to work with AFS at uni, I had to change my uid on my laptop to be the same as my uid on the linux system at uni.

Leave a Comment