Thursday, November 08, 2007

MHOD change of UID/GID

Mac hint of the day (MHOD):

I wanted to change my UID and GID on the MacBook to have the same as in the institute. I managed to find on the web (if it's not in GOOGLE, it doesn't exist). Don't mean to teach that to anyone, is just to remember later :-)

http://www.eecs.umich.edu/dco/help/NFSMac.htm

To change your UID/GID on your mac:

1. Go to the NetInfo Manager (Applications -> Utilities)
2. Authenticate as an administrator by clicking the lock in the lower left corner
3. Click on Users in the list, and find your username.
4. When you click on it, you should see info about it at the bottom of the screen… scroll down until you see UID and GID and change those appropriately. Make sure you keep track of your old UID so that you can change permissions on your files.
5. Use a command like the following to change file permissions over to you again.

find / -xdev -user -print -exec chown {} \;

0 Comments:

Post a Comment

<< Home