Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-4240: Changing ownership of a user's local home folder after a machine has been removed from AD and Centrify has been uninstalled

Mac & PC Management Service ,  

12 April,16 at 11:17 AM

Applies to: All versions of Centrify DirectControl for Mac


What do you do if you need to take ownership of a home folder that used to be owned by an AD Network Account after unbinding a Mac from AD?


Note: Make sure there is a local home folder in:

1. Open the Terminal application.

2. Type the command ls /Users/
User-added image
Note: If the user has a Mobile account, then that account will need to be deleted first. T
he following command could be used to delete the mobile user record (without affecting the local home folder):

sudo dscl . -delete /Users/username

-Now, a new local user account must be created and assigned ownership to the existing home folder. In order to do this, do the following:

1. Login with a local admin account. 

2. Open System Preferences > Users and Groups

3. Create a new User by pressing the plus sign on the bottom left hand side. 

4. Select the account type in the New Account drop down. 

5. Enter the Full Name of the user. 

6. Enter the Account Name to exactly match the AD username

7. Create a Password and Verify the password. 

8. Click Create User
User-added image
9. You should be prompted with a window that explains that there is a folder in the Users folder with the same name. 
User-added image
10. Click the Use Existing Folder 

11. Log out. 

12. Log in with the new local account. 

                 User-added image
13. Choose to Update Keychain Password
User-added image

14. Enter the password for the AD account (the keychain password will be changed to the new local user's password after this). 
User-added image

15. Test if the local account can access the home folder and open files. 

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.