Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2106  / 2 Years ago, wed, september 28, 2022, 8:29:29

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.


More From » mount

 Answers
6

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



/var/db/dslocal/nodes/Default/users/{user-name}.plist


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.



And to check ownership of the home folder, I used stat /media/OSX/Users/someone.


[#40200] Thursday, September 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
soahan

Total Points: 230
Total Questions: 123
Total Answers: 123

Location: Maldives
Member since Tue, Dec 21, 2021
2 Years ago
;