Skip to content

Instantly share code, notes, and snippets.

@lawrencebrown
Last active February 7, 2017 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lawrencebrown/9124ed711c3a41c739f39092db8463c0 to your computer and use it in GitHub Desktop.
Save lawrencebrown/9124ed711c3a41c739f39092db8463c0 to your computer and use it in GitHub Desktop.
Renaming a mac user
----
sudo scutil --set ComputerName "newname"
sudo scutil --set LocalHostName "newname"
sudo scutil --set HostName "newname"
Then: Flush the DNS cache by typing: dscacheutil -flushcache
Then: Restart your Mac
-
DONE
Fixing Centrify not loading Filevault policy for user
----
Login as macadmin:
sudo adflush
adgpupdate -T computer
Thhen: Login as AD user:
adgpupdate
Then: Log-out
-
DONE
Moving an exitsing user account to AD
----
Login as macadmin not AD user:
sudo su
ls /Users/ (lists the user accounts)
mv /Users/firstname.lastname /Users/firstname.lastname_old (moves the users folder to a new folder)
ls /Users/ (check user has been moved)
System Preferences > Users & Groups > Delete user
Restart machine
Run Centrify bind process, restart machine
Login as macadmin not AD user:
sudo su
ls /Users/ (lists the user accounts)
rm -rf /Users/firstname.lastname
mv /Users/firstname.lastname_old/ /Users/firstname.lastname
ls /Users/ (lists the user accounts)
chown -Rfv firstname.lastname:staff /Users/firstname.lastname
exit
-
DONE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment