Rebuilding user account

Is this a good article to follow?


http://reviews.cnet.com/8301-13727_7-57437548-263/how-to-rebuild-a-user-account- in-os-x/


Anyways I notice then when I boot-up into my account its about twice as slow as logging into my admin account for the first time. Granted the admin account has nothing loaded into it so this may be a reason. But other symptoms are that iMessages no longer works nor syncs with my iPhone and Apple tech support has hinted at my user account being the culprit, especially since it works just fine in the admin account. If I were to create a new user account I want all my data, settings, and apps intact. How would I do this?

MacBook, OS X Mountain Lion (10.8.3)

Posted on Jun 1, 2013 11:00 AM

Reply
18 replies

Jun 1, 2013 3:02 PM in response to jwolf6589

Problems such as yours are sometimes caused by files that should belong to you but are locked or have wrong permissions. This procedure will check for such files. It makes no changes and therefore will not, in itself, solve your problem.

First, empty the Trash.

Triple-click the line below to select it, then copy the selected text to the Clipboard (command-C):

find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 -o -acl \) 2> /dev/null | wc -l

Launch the Terminal application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

Paste into the Terminal window (command-V). The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.

The output of this command, on a line directly below what you entered, will be a number such as "41." Please post it in a reply.

Jun 2, 2013 2:54 PM in response to jwolf6589

Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.

This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.


Step 1

If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.

Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):

{ sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null

This time you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.


The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.

Step 2 (optional)


Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.

Boot into Recovery. When the OS X Utilities screen appears, select

Utilities Terminal

from the menu bar. A Terminal window will open.

In the Terminal window, type this:

res


Press the tab key. The partial command you typed will automatically be completed to this:

resetpassword


Press return. A Reset Password window will open. You’re not going to reset a password.

Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.

Select your username from the menu labeled Select the user account if not already selected.

Under Reset Home Directory Permissions and ACLs, click the Reset button.

Select

Restart

from the menu bar.

Jun 4, 2013 12:46 PM in response to Linc Davis

I have been talking with several apple reps and I have met with the Genius bar none of which have suggested I run this command. This is not saying they are right and you are wrong as I am not sure.


Sorry to offend you but I wont just blindly run a command and so I will ask questions. If you can provide substantial evidence that it will fix the problem then I will do it. I know this has offended you, but I am not that nieve.

Jun 4, 2013 1:02 PM in response to jwolf6589

The evidence is that you can search this site for at least a few dozen other threads in which I've suggested the same command, or a similar one, with no reports of harm done. I've answered tens of thousands of questions on this site. My answers aren't always right, but I don't recall that anyone ever claimed to have been harmed by one.


The key phrase is back up all data. If you have good backups, you have nothing to worry about worse than a nuisance. If you don't have good backups, you're in constant danger of losing all your data, whether you take my advice or not.


But I agree with you: you should not run the command if you don't trust it. You shouldn't take any advice you don't trust. A lot of really bad advice is handed out here all the time.


I merely made a suggestion. I'm not trying to sell you on it.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Rebuilding user account

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