Hey guys and gals,
A bit of background first:
- We need to move a few users from their existing AD user account to a brand new AD user account - the accounts will have different names/UIDs
- We will be on the same domain, so no binding will need to be done
- We will have the users log in with their new account and enable themselves for FV2 before any data gets moved
We want to script a way to provide a Self Service method (when logged in as the local admin account) to move users data from their old account into their new account. This will probably involve the following:
- Deleting the new user accounts user directory (rm -Rf /Users/newuser)
- Changing the name of the old home directory to the new user name (probably using mv)
- Changing the ownership of the renamed home directory to the new user account (chown -R newuser /Users/newuser)
Does anyone have a script designed to do this? I don't need a complete ready-to-go product, just some idea on how to accomplish this with minimal headache. Thanks in advance!
