Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you view Mac OSX user id without having to boot into OSX? I can mount the drive, but I can't find the UID for my user, which would hopefully enable me to access files without being root.

share|improve this question

You can just check who owns your home directory, using stat /mnt/Users/weberc2 for example. This is the UID that actually matters, anyway.

share|improve this answer
That's helpful, but I would like to know the UID of my account as well, in case they are different. I already figured that out and posted the corresponding answer. Thanks for your assistance! – weberc2 Feb 24 '12 at 9:40
They are almost never different; files that you create are owned by you. – grawity Feb 24 '12 at 11:20
Yep. Long story, but my circumstances required me to check both. I voted up your answer because it was helpful. – weberc2 Feb 24 '12 at 17:43
up vote 1 down vote accepted

I found my answer here. This is the UID that's tied to the user account.

According to this article, the user information can be found in this file


I verified and the UID was at the bottom of the file, in my case. There's also some business about a generateduid, but that's not what you want, so ignore that.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.