10.5: Boot clean “new” machine, create default admin user(318admin) Login in as 318admin.
Run “id” terminal command on “old” machine to find out the “old” uid is
Run “id” terminal command on “new” machine to find out 318admin uid (prob 501)
Migrate /Library/Keychains/FileVaultMaster.keychain and FileVaultMaster.cer from old to new (same place) . This is for good measure, and migrates the master password (back door ) as well
Create new accnew ount with same shortname and password.(password must match old account for FV image to work ,This will migrate the keychain as well) Check the “Turn on FileVault protection” box when creating the new account
Right click on the new “zack” user in system preferences >accounts and choose “Advanced Options” 10.5+
If old uid is not the same as this current uid change it to that old value , if however that uid conflicts with 318admin(i.e. they are both 501) that you discovered above then just leave it and you will have an extra step below.
We don’t need the fresh FV images so on the NEW machine so we can move it or delete it, and clean it up when done:
“sudo mv /Users/zack/ /Users/fresh.zack”
Copy the old machine’s /Users/zack/zack.sparsebundle to the new machine /Users/zack/zack.sparsebundle (10.5->10.5 only)
Change the ownership on the migrated home directory folder and FV image inside “sudo dscacheutil -flushcache”” “sudo chown -R zack:zack /Users/zack”
Now if earlier you changed the current zack uid to the old one, you are done
however if you had a uid conflict with 318admin above you need to mount the diskimage (with zack password), choose get info and uncheck “ignore permissions on this volume”, then run “chown -R zack:zack /Volumes/zack” to change the uids on within the disk image itself. If you migrated the permissions over from the old machine(i.e cp -Rp) then you won’t be able to just double click on the images to mount it as you don’t have access to the parent folder, so you can run: sudo hdid /Users/zack/zack.sparsebundle to mount it via the c/l (you will be prompted for the password), then run the chown -R zack:zack /Volumes/zack as mentioned above For good measure set the permissions to user=rwx group= other = using: “sudo chmod -R 700 /Users/zack” For good measure you can cleanup the “fresh” home dir “rm -r /Users/fresh.zack” or drag to the trash the UI as “rm -r” can be bad when using /Users/ if you make a mistake.