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

Can't unlock file

I can unlock the padlock but can't change the permissions to read and write.

The file is an alias of another which isn't locked.

thanks in advance.

Macbook Pro 13"/Mac Mini Core Duo, Mac OS X (10.5.7), 2.26GHz -2Gb RAM

Posted on Mar 18, 2011 11:32 AM

Reply
Question marked as Best reply

Posted on Mar 20, 2011 4:26 AM

I would try the following:

Open Terminal (in /Applications/Utilities) , and copy-paste the following line into the Terminal window, *followed by typing a single space. Do not type <Return> yet.*

sudo chflags nouchg


After typing the single space, drag the icon of the locked alias into the Terminal window, click inside the Terminal window, and type <Return>.

Enter your admin password at the prompt (it will not echo on the screen), and again type <Return>.

Now again Get Info on the file, and see if the Locked checkbox in the General section is now unchecked. If it is, you should now be able to either trash the file or change its permissions, as you wish.
20 replies
Question marked as Best reply

Mar 20, 2011 4:26 AM in response to James Harries

I would try the following:

Open Terminal (in /Applications/Utilities) , and copy-paste the following line into the Terminal window, *followed by typing a single space. Do not type <Return> yet.*

sudo chflags nouchg


After typing the single space, drag the icon of the locked alias into the Terminal window, click inside the Terminal window, and type <Return>.

Enter your admin password at the prompt (it will not echo on the screen), and again type <Return>.

Now again Get Info on the file, and see if the Locked checkbox in the General section is now unchecked. If it is, you should now be able to either trash the file or change its permissions, as you wish.

Nov 1, 2015 5:18 PM in response to jsd2

Hello jsd2, thank you for sharing this post.


I just wanted to say I am having the same desire

to delete unlocked files I cannot unlock,

and get the same bottom message.


the Problem is I have followed the instructions

for terminal you provided and get this message:


-bash: Return: No such file or directory


This is almost any file I'm having the issue on...

and it's Right after I type <Return>. after typing

your quote and dragging in a file.


and It's done one-at-a-time.


Do you happen to have any further

ideas or suggestions? or any other Questions?


Again, thank you for sharing, it was worth a try!

Nov 2, 2015 11:16 AM in response to BDAqua

Hi BDAqua, thank you for taking the time

to read what I wrote.


the Command I am copying and pasting into terminal

(well actually typing in now, got it memorized...) is this:

sudo chflags nouchg


After the single space, a file is dragged

and dropped-in, and then the next command

I type in terminal is:

<Return>.


Immediately after, I do not see an authentication

login or anything of the sort; the immediate

response is:

-bash: Return: No such file or directory


I am actually this is noticing with almost any file

I drop into terminal, not just the alias files.


-------------------------------------------------------------------------------- ]


Macbook: MacBook Pro Silver / had for 2½ years

Currently on Version 10.8.5


About the files, there are a few alias files

I have on my computer (no external drive,

the computer drive).


These are all files that were transferred from

another macbook (my older one) to this one

via Time Machine.


These are all copies that are all locked,

thus I also have read-only permissions

and cannot revise, delete, or unlock

the files on their own.


So, the result I get for trying to delete

without any terminal business is:

The operation can't be completed because the item

"xxxxfilename.docx" is locked.


-------------------------------------------------------------------------------- ]


Again, thank you for taking the time to read what I wrote!

If I don't hear from you again today, enjoy your day!

Nov 2, 2015 2:38 PM in response to BDAqua

Yes, these files are all in one location.


I would rather not partake in downloading another

program/app/etc. onto my computer.


But I'm wondering now if it's something

with terminal... After all, with all the

steps I've shared, it's not just this set

of alias files; Almost any file I put into

terminal gives me the same message

that there's no such file or directory

with the Same "sudo chflags

nouchg" command.

Can't unlock file

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