Detaching from Active Directory and keeping mobile accounts I have a MacBook Pro which is attached to an AD domain.  The user has a domain account which is Administrator, Managed and Mobile - the home directory is on the local machine.

The company is closing and the user is keeping the Mac, so I want to change the account to be a local account, or recreate a local account with the same name and change ownership.

When I remove the machine from the domain, I don't seem to be able to delete the user from the Accounts panel.

I presume I can remove them from the machine if I rejoin the domain, and then change ownership of the home directory with find; is there a cleaner way?
There's a simpler way:


Log in as a different, admin, user.
Delete the account in question; select the option "Don't change the home folder"
Go to /Users and rename the home folder from username+deleted to the original, desired, short name.
Add a new local user with the same short name; you will be asked would you like to use the existing folder. Agree to this and it 'adopts' the previous folder, and fixes permissions. Nothing else to do.


Just tested this successfully on OS X 10.9