5
2
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.
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!)
– Arjan – 2010-04-25T17:06:58.777@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 – 2010-04-25T17:19:19.887