I have created an administrator account on a Mac OSX 10.5.8. At first, the user name and account name were called "kaleb". However, I later changed the name (is this account or user?) via System Preferences | Accounts
to "apple2".
I now want this name to be consistent for everything related to this account. To try to do this, I followed the instructions at http://support.apple.com/kb/HT1428. However, this hasn't worked. I still can login as "kaleb" (and as "apple2"), and the name of my home folder is still "kaleb" although the user is called "apple2". On the command line, the username is "kaleb". However, in Systems Preferences there is only evidence of an "apple2" user.
What can I do to get rid of "kaleb" and have all permissions, pointers, names etc. under the name "apple2"?
Best Answer
You will need a third account to do this trick fully.
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.