Danushka "silvermace" Abeysuriya

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 :)

1 Comment to Finding UID’s in MacOS X 10.5/10.6

  1. August 10, 2010 at 9:27 am | Permalink

    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 Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>