Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

changing a folder name

I need to change my folder name with the home icon.. this can be changed by the user icon..... but when i change it it says i might lose information.... could someone please help

iMac

Posted on Feb 3, 2012 2:34 PM

Reply
4 replies

Feb 5, 2012 11:21 AM in response to Maximillian12

Here it is again but I didn't do anything different, and it works for Rudegar. http://support.apple.com/kb/HT1428



Here's a copy and paste in case you still can get to it:



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

Summary

Learn how to change your user account name and home directory name (which should match) by using the advanced procedure described below.



Products Affected

Mac OS X 10.4, Mac OS X 10.5, Mac OS X 10.6, OS X Lion, Mac OS X 10.0, Mac OS X 10.1, Mac OS X 10.2, Mac OS X 10.3, Mac OS X 10.4



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.
For Mac OS X v10.4.11 and earlier
  1. Optional step: As a precaution, you may disable automatic login prior to performing this procedure. You might want to back up important data, too. In the event that you restart the computer for any reason before completing the procedure, this would prevent complications from having displaced the user selected for automatic login. (For Mac OS X v10.1.5 or earlier, automatic login is found in the Login preference pane. For Mac OS X v10.2 and v10.3, it is found in the Accounts preference pane.)
  2. Mac OS X v10.3 or later: If FileVault is enabled, temporarily turn it off, which will log you out.
  3. Enable the root user and log in as root.
  4. For Mac OS X v10.2 or later: Open the Accounts pane of System Preferences.
    For Mac OS X v10.1.5 or earlier: Open the Users pane of System Preferences.
  5. In the Name list, locate the user account with the short name that you want to replace. This will be referred to as the "original user".
  6. Note whether or not the original user is identified as an administrator, which appears in the Kind column to the right.
  7. Click New User. For Mac OS X v10.3 or later, this is the plus ➕ button.
  8. Complete the Name and Short Name fields as desired. Be sure that the Short Name is exactly as you want it to appear.
  9. For Mac OS X v10.2: Fill in the New Password and Verify fields.
    For Mac OS X v10.1.5. or earlier: Click the password tab, then fill in the Password and Verify fields.
  10. If the user you are replacing is an Admin user, then select the checkbox for "Allow user to administer this computer". For Mac OS X 10.3, click the Security tab to locate this setting.

    Note: This checkbox is dimmed and already selected if there is not another Admin user. Mac OS X requires at least one Admin user.

  11. Click Save. (Skip this step for Mac OS X v10.3.)
  12. Quit System Preferences.
  13. Click the Finder icon in the Dock.
  14. Choose Computer from the Go menu.
  15. Open the Users folder in the Mac OS X disk.
  16. Open the folder with the short name of the new user that you just created.
  17. Drag the contents of this folder to the Trash.

  18. Important: Do not empty the Trash yet. In the event that you accidentally move contents of the wrong folder, you may recover them from the Trash after discovering your mistake.

  19. Choose New Finder Window from the File menu. Be sure to position the new window so that you can see both Finder windows.
  20. In the new window, open the folder of the original user.
  21. Press the Option key as you drag the contents of the original user's folder into the new user's folder (that you emptied in Step 16). This makes a copy of the contents.
  22. Close one of the Finder windows.
  23. Open the Terminal application (located at /Applications/Utilities/).
  24. Type: chown -R <new_name> /Users/<new_name>

    Important: Replace "<new_name>" with the actual short name of the new user you just created. For example, if the new user had the short name "jacques", you would type:
    chown -R jacques /Users/jacques

  25. Press Return
  26. Quit Terminal.
  27. Choose Log Out from the Apple menu.
  28. Log in as the new user. You should be able to access all of your original files on the desktop and in the folders of the Home directory.

    Important: If you do not have access to your original items, log out and log back in as root, then repeat Step 22. Also, be sure that you did not place the wrong files in the Trash in Step 16.

  29. Choose Home from the Go menu.
  30. Open the Library folder, then the Keychains folder inside it.
  31. Select the keychain, which should still have the short name of the original user.
  32. Choose Show Info from the File menu.
  33. In the Info window that appears, choose Name & Extension from the pop-up menu.
  34. Change the name to match the new user's short name.
  35. Close the Info window.
  36. Open the Keychain Access application, located in the Utilities folder.
  37. From the Edit menu, choose "<new_name> Settings". For the user Jacques, this would appear as: "jacques Settings".
  38. Click Change Passphrase.
  39. Enter the desired password, then click OK. You may use the same password again or set it to match the login password of the new user.

    Note: This step prevents you from discovering later that the keychain had retained an older password.

  40. Quit Keychain Access.
  41. Disable the root user.
  42. If everything is working correctly, you do not need to log back in as root to empty the Trash. The folders you put there occupy a negligible amount of disk space.
  43. Depending on what software you have installed, you may wish to rename other files and folders that may have been created under the original user short name to match the new user short name.
  44. Once you are certain that everything is working properly, you may want to delete the Home directory (folder) of the original user, which should be empty. For instructions on how to do this, see this article.

Additional Information

Note: Although you can change your Home name in Mac OS X v10.3 or later, you usually shouldn't.


Rate this article:


User uploaded file


User uploaded file

User uploaded file

  • Last Modified: January 24, 2012
  • Article: HT1428
  • Views:

    2475086

Rating:

  • 3.0/5 Stars

(1039 Responses)


Languages



Still need help?

User uploaded file

Need more help? Express Lane is the fastest way to contact Apple.

Use Express Lane to connect with an expert in Apple Support.
Get started



Home > Support


Shop the Apple Online Store (1-800-MY-APPLE), visit an Apple Retail Store, or find a reseller. Copyright © 2012 Apple Inc. All rights reserved.

changing a folder name

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.