Pages

Tuesday, August 10, 2010

Changing user and group ID

Hi!

If you need to change the user and the group id of an account under Mac OS X, you have to follow theses steps. We suppose that the actual id for the user and the group is 666 and we want to change them to 999.
  1. Logged as MY_USER type the command id
  2. The uid = User ID and gid is the Group ID. Note thems...
  3. Log with another account 
  4. sudo dscl . -change /Users/MY_USER UniqueID 666 999
  5. sudo dscl . -change /Users/MY_USER PrimaryGroupID 666 999
  6. sudo chown -R 999:999 /Users/MY_USER
  7. Open a session with MY_USER
Nota, if you want to connect to a NFS server, you need the same ids to be able to access the shared folders...

No comments:

Post a Comment