Search

Top Posts

Comments

  • mayank: i am having a problem with my macbook airport. it cannot open most of the sites, the reason always shown is...
  • Anon A Moose!: Working in Apple tech support, this tool is freaking invaluable. Do you know how many people call...
  • kyle: hi im mac and im a pc!!!!
  • TheWalrus: Great, thanks for this. Having just started using a Mac as well as my Ubuntu machine, it’s good to...
  • Imre: ….2048*1152

Categories

Recent Posts


Mac OS X: Change your User ID

Recently I connected my Mac to my linux based NFS server at home. I use NFS to access files from two other Linux boxes and on each server my UID (unique id) is set to 1000. In order for me to easily have full access to my NFS shares from OS X I changed my UID to match:
dscl . -change /Users/will UniqueID 501 1000
chown -R 1000 /Users/will

Remember to run the chown command afterwards, or you will not be able to access your home directory. Finally, log out and log in.

Posted by: William Pearson

Share

Save big on Mac Deals from Amazon.com

Comments:

Comments: 4

Comment from http://bactroban-cream.com
Time: May 5, 2009, 7:50 am

I use NFS to access files from two other Linux boxes and on each server my UID (unique id) is set to 1000. In order for me to easily have full access to my NFS shares from OS X I changed my UID to match

Comment from kumar
Time: May 13, 2009, 8:44 am

Remember to run the chown command afterwards, or you will not be able to access your home directory. Finally, log out and log in.

Comment from cj_
Time: December 5, 2009, 11:21 am

chown -R /Users/username is not sufficient: 1. It misses symlinks, and 2. If your main account is admin, your filesystem will be full of stuff owned by you. This should cover everything:

find / \! \( -fstype hfs -or -fstype ufs \) -prune -or -user 501 -exec chown -h 1000 {} \; -print

(replace 501 and 1000 with appropriate ID’s, and don’t forget the backslashes, they are important)

Comment from Dirk Beckers
Time: March 8, 2010, 1:05 am

Thank you for this informations! Many of my NFS-problems are solved now. But I still miss the “Linux/Ubuntu-way-of-configuring” if I’m using snowleopard…

Write a comment






February 19th, 2009