Advertise here: Contact FM.


Mac to Mac with AD?
April 23, 2008 7:46 AM   RSS feed for this thread Subscribe

How do I transfer a normal Mac account to an Active Directory Mac account on my new Mac?

I want to transfer all data, settings, preferences bookmarks and applications from a normal user account to a new Machine which is set up with Active Directory. I've lots of experience using Migration assistant to move users from Mac to Mac, but AD throws a new twist into it. You cannot have a normal user and an AD user with the same username, so transferring with Migration Assistant will only transfer applications and documents that are on the top level of the hard drive. No user data is transferred because the username already exists on the AD Mac.
posted by Gungho to computers & internet (2 comments total) 1 user marked this as a favorite
This is actually pretty simple, though it involves a few steps. Basically, all you need to do is copy the entire home folder (/Users/username) from the old computer to the new computer, rename it to match the AD user's username, and then change the folder's ownership to match the AD user. All of this can be done from the Terminal.

Breaking it down...
  1. Boot old computer in target disk mode and attach it to new computer with a firewire cable.
  2. On new computer, open the Terminal and type the following to copy the home folder to the new computer and rename it in one step:
    sudo ditto /Volumes/old-hd-name/Users/username /Users/AD-username
    (It will ask you to supply your admin password)
  3. Now that the home folder has been migrated and renamed, you need to determine the user's AD group so you can assign the correct privileges to the folder. Use the following command to accomplish it:
    dscl /Search -read /Users/AD-username | grep PrimaryGroupID
    Copy the PrimaryGroupID number (just the digits). We'll use it in the next step.
  4. Now you need to recursively change the home folder's ownership:
    sudo chown -R AD-username:PrimaryGroupID /Users/AD-username
That should do it. This all assumes the new computer is bound to AD and you have the Create mobile account at login option enabled in the Directory Utility's AD plug-in settings.
posted by pmbuko at 8:36 AM on April 23


Cool. Thanks.
posted by Gungho at 9:48 AM on April 23


« Older YANAL filter: Quick question a...   |   What's a good way for a photog... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
Returning Department from Active Directory Users August 6, 2008
How can I get my server to authenticate with my... September 19, 2007
Active Directory name game June 8, 2007
Is there any way to update the same field in... October 3, 2006
Exporting a list of details from Active Directory April 7, 2005