Change User ID and Group ID in Snow Leopard

  • find source and traget UID / GID using the id command on unix and dscl localhost read /Local/Default/Users/lup in MacOsX

Warning

This post is certainly obsolete...

  • from http://macosx.com/tech-support/change-user-idgroup-id-in-leopard/336380.html :

    dscl . -change $HOME UniqueID 41167 545
    dscl . -change $HOME PrimaryGroupID 41167 1007
    chown -R 545:1007 $HOME
  • Remember to run the chown command afterwards, or you will not be able to access your home directory. Finally, log out and log in.

  • you may have to propagate changes on other drives (backup disks and such)