You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Repairing permissions when owner is "Fetching..."

Problem: After upgrading to Yosemite I can’t unlock locked files (which were locked before Yosemite upgrade). In Get Info window in Finder the ”Locked” tick mark is grayed out. Sharing & Permissons are as follows:

Fetching… Read & Write

_appleevents Read only

everyone Read only

When I try to change the permissions (i.e. add myself), I get error message:

The operation can’t be completed because you don’t have the necessary permission.

I am the owner of the file and I am also administrator. I enabled root and logged in as root and still I couldn’t unlock the file or change the permissions.


I can duplicate the file and unlock the copy. Sharing & Permissons of the copy are as follows:

Hannu (Me) Read & Write

_appleevents Read only

everyone Read only

So, now the owener is correct and I can do with the file what ever I want.


However, I can’t trash the original locked file, I get error message:

”The operation can’t be completed because the item “<file name>” is locked."

If I duplicate the original locked file and delete the copy without unlocking it, I get error message:

”Item “<file name> copy” is locked. Do you want to move it to the Trash anyway?"

I can trash to copy which is locked but not the original which is unlocked as well.


The problem appeared after I moved to Yosemite (10.10.1). I did it in the following way. I had My MacBook Pro (15”, mid 2012) internal hard drive replaced with 1 TB SSD which had Yosemite installed. The old internal HD was put in a case and from there I moved user accounts and other stuff to the internal SSD with Migration Assistant.


I have repaired disk permissions with Disk Utility to no avail. I have done Reset Home Directory Permissions and ACL's with resetpassword in terminal from Recovery HD to no avail.


The problem seems to be that for some reason OS X can’t get the owner info of the locked file (owner is ”Fetching…”) and because the owner is unknown OS X doesn’t allow anyone (even the root) to change the permissions.


Any I ideas how to solve the problem, i.e. how to correct the permissions of all locked file (in a batch)?

MacBook Pro, OS X Yosemite (10.10.1), null

Posted on Dec 17, 2014 2:27 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 18, 2014 7:43 AM

Back up all data before proceeding.

This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally 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, but you do need to follow the instructions below.

Step 1

If you have more than one user, and the one in question is not an administrator, then go to Step 2.

Triple-click anywhere in the following line on this page to select it:

sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-

Copy the selected text to the Clipboard by pressing the key combination command-C.

Launch the built-in 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 and start typing the name.

Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.

You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. 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 may take several minutes to run, depending on how many files you have. 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, if you prefer not to take it, or if it doesn't solve the problem.

Start up in Recovery mode. When the OS X Utilities screen appears, select

Utilities Terminal

from the menu bar. A Terminal window will open. In that window, type this:

resetp

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 startup 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.

17 replies

Repairing permissions when owner is "Fetching..."

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