Resolved Changing the username

Discussion in 'Mac OS X Lion (10.7)' started by CodeBreaker, Sep 27, 2011.

  1. CodeBreaker, Sep 27, 2011
    Last edited: Sep 27, 2011

    CodeBreaker macrumors 6502

    Joined:
    Nov 5, 2010
    Location:
    Sea of Tranquility
    #1
    Hi,

    I have a MacBook 5,1 running Lion which was gifted to me in 2009. They had already set up the user account for me, but accidentally misspelt my name. I have been using it like that till now. So is there a way to change it without losing my settings/preferences/keychain items/iPhoto Library/emails?

    I have enabled File Vault and it is the only account on my system. And I am talking about the user name (not the computer name), i.e. the name of my home directory and the output of "whoami".

    There are also some files in my home directory that have read/write permissions for only this account/user.
     
  2. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #2
  3. CodeBreaker thread starter macrumors 6502

    Joined:
    Nov 5, 2010
    Location:
    Sea of Tranquility
    #3
    I had come across another article from Apple (lost the link). It said it's possible by:

    1-log-in as root
    2-change the name of the home directory to desired username
    3-Apparently some dialog shows up asking you to modify permissions
    4-create new user in system preferences (it asks if you want to use the existing directory as the home directory)

    Has anyone tried it? The problem is there are many passwords in my keychain and priceless photos in my iPhoto library which I cannot afford to lose. Plus, some of the discs for the software on my Mac are not with me at the moment.

    So I wanted a failsafe method

    Can I restore all my old items to the new account?
     
  4. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #4
    That doesn't apply to Lion:

    Mac OS X v10.6 and earlier: How to change user account name or home directory name

    Did you read the first link I posted?
     
  5. CodeBreaker thread starter macrumors 6502

    Joined:
    Nov 5, 2010
    Location:
    Sea of Tranquility
    #5
    Yea that's the article I was talking about.

    Regarding your previous link, if I save the home directory, can I just copy the existing files (almost everything) to the new user directory without losing passwords/photos/mail and software registration? I also have FileVault enabled. Will it affect anything?
     
  6. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #6
    I haven't tried FileVault, so I'm not sure how that would affect things. Without it, yes, you should be able to copy everything to the new user with no problems.
     
  7. CodeBreaker thread starter macrumors 6502

    Joined:
    Nov 5, 2010
    Location:
    Sea of Tranquility
    #7
    Thanks a lot. I waited 2 years for this :)
     
  8. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #8
    As always, backups are critical. I'd do a Carbon Copy Cloner bootable backup before you do anything, just in case.
     
  9. CodeBreaker thread starter macrumors 6502

    Joined:
    Nov 5, 2010
    Location:
    Sea of Tranquility
    #9
    Yea, of course, I'll be backing up first :)
     

Share This Page