2 Replies Latest reply: Dec 1, 2012 7:19 PM by John Galt
Kalcipher Level 1 Level 1 (0 points)

I am trying to change the home folder of my computer...  However I dont have an edit area in OS X Lion direction step to press edit and enamble root user. WHY??!


MacBook Pro, Other OS
  • 1. Re: HELP I tried this OS X Lion but no Edit area for enable the root user!!
    BobHarris Level 6 Level 6 (13,120 points)

    Applications -> Utilities -> Terminal

     

    sudo su -

    Password: your admin password

     

    passwd

     

    Although I don't know why you need to have 'root' enabled.  Most operations can be performed via the admin account, and/or sudo from a Terminal session

  • 2. Re: HELP I tried this OS X Lion but no Edit area for enable the root user!!
    John Galt Level 8 Level 8 (36,390 points)

    Are you attempting to change the "short name" of your user account? Yes, you must enable Root to do that.

     

    Follow these instructions with great care:

     

    OS X: How to change user account name or home directory name

     

    Be sure to disable Root when you are finished.

     

    About the account name

    Each user in Mac OS X has a "Full Name" (referred to as "Name" in Mac OS X v10.5.8 or earlier) and an "Account name" (referred to as "Short Name" in Mac OS X v10.5.8 or earlier) as defined in the Users & Groups pane of System Preferences (referred to as Accounts pane or Users pane in Mac OS X v10.6.8 or earlier). The account name can contain up to 255 lowercase characters with no spaces. This is the name used to create a user's home directory (also known as the user's Home or Home folder) in the Users folder. Once the user has been created, the account name (or short name) cannot be changed in the Users & Groups pane of System Preferences.

     

    Changing the account name

     

    Though there are other methods by which an advanced user may change the short name and related information, the easier and safer workaround is described below.

     

    Before following these steps, you may wish to back up your important data.

    For Mac OS X v10.5 or later

      1. Enable the root user.
      2. Log in as root.
      3. Navigate to the /Users folder.
      4. Select the Home folder with the short name you want to change, and rename it just like you would rename any folder. Keep in mind that the shortname must be all lowercase, with no spaces, and only contain letters.
      5. Use the Users & Groups pane (Accounts pane in Mac OS X v10.6.8 or earlier) in System Preferences to create a new user with the Account name or Short Name that you used in the previous step.
      6. Click OK when "A folder in the Users folder already has the name 'account name'. Would you like to use that folder as the Home folder for this user account?" appears. Note: This will correct the ownership of all files in the Home folder, and avoid permissions issues with the contents.
      7. Choose Log Out from the Apple menu.
      8. Log in as the newly created user. You should be able to access all of your original files (on the desktop, in Documents, and in the other folders of this Home).
      9. After verifying that your data is as expected, you can delete the original user account via the Users & Groups pane (Accounts pane in Mac OS X v10.6.8 or earlier).
      10. Disable the root user.