Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Mr M5

macrumors regular
Original poster
Apr 24, 2011
222
0
Can somebody tell me how to unlock documents so I can make changes to them and save changes? I'm using pages and it locks almost instantly.
 
Try this in Terminal:

chflags -R nouchg /path/to/the/offendingfile

That should clear the lock. run it as sudo if it gives you attitude. And maybe make a copy of the file first.
 
Last edited:
Try this in Terminal:

chflags -R nouchg /path/to/the/offendingfile

That should clear the lock. run it as sudo if it gives you attitude. And maybe make a copy of the file first.

it states that there is no such file.
 
it states that there is no such file.

I hate to ask a possibly insulting question, but you did replace "/path/to/the/offendingfile" with the actual and correct path and filename of the file you want to unlock, right?
 
I hate to ask a possibly insulting question, but you did replace "/path/to/the/offendingfile" with the actual and correct path and filename of the file you want to unlock, right?

yup

----------

You can just type "chflags -R nouchg " and then drag the file from the finder.
Make sure you have a space after the "nouchg".
The file is there obviously.

it states: permission denied
 
yup

----------



it states: permission denied

try:
sudo chflags -R nouchg

then enter your log in password

You could also open up permissions with chmod 777 /path/to/the/offendingfile. That will let anyone on the computer see, execute and edit the file.
 

Attachments

  • sandwich.png
    sandwich.png
    11.6 KB · Views: 61
try:
sudo chflags -R nouchg

then enter your log in password

You could also open up permissions with chmod 777 /path/to/the/offendingfile. That will let anyone on the computer see, execute and edit the file.

Nice Wallysb.
Just quoting myself:
"run it as sudo if it gives you attitude. And maybe make a copy of the file first."
I had reason to try this on a few files stuck on fibre attached today and it was super cool.
chmod 777 doesn't always clear stubborn locks but worth a try if you need to do other things to the file.

PS- I've seen that graphic on T-shirts. Cracked the IS team up. Everyone else just starred off.
 
Nice Wallysb.
Just quoting myself:
"run it as sudo if it gives you attitude. And maybe make a copy of the file first."
I had reason to try this on a few files stuck on fibre attached today and it was super cool.
chmod 777 doesn't always clear stubborn locks but worth a try if you need to do other things to the file.

PS- I've seen that graphic on T-shirts. Cracked the IS team up. Everyone else just starred off.

Yeah, I love xkcd comics, I have a shirt with a different comic on it.

Anyway, I just thought I'd type out the full command, the OP maybe didn't know where to put sudo?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.