consequences of changing uid/gid on snow leopard

5,792

Solution 1

well, throughout today I ended up doing exactly what I had outlined on the question. I've been using the mac the whole day today and so far, I've seen no adverse effect and I can finally access my NFS shares without problems. I guess continuous use will be the final test... If I do run into any issues I will update this answer.

Solution 2

today - months after the initial quest - i found an easier way of doing the same thing: using apple's server admin tools on your local mac. they can be found [here][1]. install and go to applications->server->workgroup manager.

in there you will see an option to change the uid of users (as well as a bunch of other options)

[1]: http://support.apple.com/downloads/#server admin tools

Share:
5,792

Related videos on Youtube

Peter Carrero
Author by

Peter Carrero

Updated on September 17, 2022

Comments

  • Peter Carrero
    Peter Carrero over 1 year

    ok, so I introduced a Mac laptop to my home network of Kubuntu hosts and Fedora servers. Currently I don't have NIS or LDAP setup (I got only 2 users) and I just manually setup the UID/GID on the hosts. I would like to run the following command on my Macbook:

    dscl . -change /Users/me UniqueID 501 1000
    dscl . -change /Users/me PrimaryGroupID 20 503
    chown -R 1000:503 /Users/me
    dscl . append /Groups/staff GroupMembership me
    

    Before I go on to hose my new Mac, I would like to know if this is the right thing to do and, if so, what are the adverse consequences I may have.

    Thanks.

    • Arjan
      Arjan about 14 years
      I don't know the answer, but I've always been wondered a bit by the procedure to preserve file ownership in Apple's How to change user short name or home directory name. Hence, without any reason whatsoever, I would also be a bit reluctant to mess with other user attributes... (Nice question!)
    • Peter Carrero
      Peter Carrero about 14 years
      @Arjan, very interesting info on the link you provided! Creating a new user would generate a new uid, so I feel a bit more comfortable changing that. Now Apple's default group is the "staff" with gid 20. I wonder if it is better to just add my 503 group instead of making it primary. Thanks for the insightful comment!
  • Peter Carrero
    Peter Carrero almost 14 years
    Interesting point! I'm the only user of my mac, so this didn't happen to me. Thanks for the update.