How to change account name and full name to one, consistent name?
You will need a third account to do this trick fully.
- Make an admin account named differently than the final short name you wish to have in the filesystem for /Users/apple2 (the desired "perfect user" with everything matching).
- Log in to the admin account and make one last backup of your system.
- Delete only the account you wish to keep - being careful to keep the home folders - do not let the system delete this home folder, just delete the account without changing the home folder.
-
Open terminal and use this command exactly (unless you start with something other than kaleb and end with something other than apple2:
sudo mv /Users/kaleb\ \(Deleted\)/ /Users/apple2
This command uses the \
character to escape the space and the parentheses so be careful to paste it exactly or [chat] here or elsewhere with someone that knows how the unix command line works if you have any doubt about how it will rename one folder by moving it.
You can really mess things up in terminal with sudo
if you are not prepared to wipe everything and reinstall the OS and restore from a backup.
Now when you (re)create the apple2 user the OS will fix the ownership of the home folder and the short name will match the directory and the long name by making all three "apple2".
My process differs slightly from Apple's in HT1428: OS X: How to change user account name or home directory name in that they enable / disable the root user where I just make a new admin account. Apple has you rename the folder on the fly while logged in as root and then creates the new account - so your renamed account will get UID 502. I delete the account (but not the files) so that your renamed account gets UID 501. None of this really matters - you just want to have a backup in case either process fails you - both will get your short name and new account back in sync.