Changed user account name, files inaccessible now

Discussion in 'macOS Sierra (10.12)' started by Curase, Nov 19, 2016.

  1. Curase macrumors newbie

    Curase

    Joined:
    Nov 19, 2016
    #1
    I just renamed the main user account, as well as the name of the user folder. I didn't this from within the same account. I did not know you're supposed to use a separate admin account to do this. Now the renamed account can't access its own files. I can't adjust the read/write privileges preferences in "Get Info". Just says the account doesn't have access.

    The account is an admin account.

    Can I fix it, or do I just need to do a clean install?
     
  2. Nermal Moderator

    Nermal

    Staff Member

    Joined:
    Dec 7, 2002
    Location:
    New Zealand
    #2
    Log into an admin account and run this in Terminal (make sure that you get the trailing dot).

    cd /Users/newaccountname
    sudo chown -R newaccountname .

    I have not tested this myself.
     
  3. KALLT macrumors 601

    Joined:
    Sep 23, 2008
    #3
    That makes no sense, actually. The username or home-directory name has nothing to do with your permissions (these are tied to a user ID, which should not have been changed). If you just renamed both, then the permissions should not have been touched.

    Have you logged out? Have you changed the name of the user directory in the account information as well?
     
  4. Howard Ellacott macrumors member

    Howard Ellacott

    Joined:
    Jun 10, 2012
    Location:
    United Kingdom
    #4
    The account will be trying to use the previous folder name.
    Go into user accounts in system preferences, find the account that doesn't work, cmd click on the user and select advanced options, make sure the home directory field matches your renamed directory. Restart and it should work!
     
  5. Fishrrman macrumors G4

    Joined:
    Feb 20, 2009
    #5
    MacConfucious say:

    DO NOT change the name of your user accounts unless you know what you are doing.

    Otherwise, you could become forgotten man!
     

Share This Page