1

I managed to Control+C out of it at a certain point. Is there a way to undo the damage?

1
  • In general, no, there is no way to undo such a command. Mar 6, 2012 at 2:54

3 Answers 3

1

There is no way for BASH to know what the opposite of the command you just ran is. You can try the following:

Create a new Admin user.

Log into the new account.

Delete the original User account, choosing leave the home folder alone.

Add the account again with the exact same short name. Choose to use the existing home folder when asked.

The permissions will be fixed when recreating the user account.

2
  • will this remove any of my files?
    – Alex
    Mar 5, 2012 at 21:42
  • You opt to leave the Home Folder when removing the account. Feel free to test on another account first. Mar 5, 2012 at 21:43
0

OSX's Disk Utility has a repair permissions tool. It will probably get your home directory to a usable state, but it will not repair everything (see Apple Support Issue HT1452).

1
  • 2
    Disk Utility's permissions repair does not check user files. From the KB article: "Files that aren't installed as part of an Apple-originated installer package are not listed in a receipt and therefore are not checked." Mar 6, 2012 at 4:46
0

You can reset the permissions from the OS X Installer disc. This is a more complete fix of permissions than the Disk Utility repair permissions and will put the proper permissions and ACLs in place for your home folder.

2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .