|Dec 12, 2010, 11:04 PM||#1|
sudo chmod: operation not permitted
Dear mac users,
I want to change permission on a file using this command below, but it doesn't work. it seems there is a permission problem or the file is locked in some way.
what i get as a result is:
sudo chmod g+rwx "Copy of index.php" chmod: Unable to change file mode on Copy of index.php: Operation not permitted
|Dec 13, 2010, 03:59 AM||#2|
You can try to unlock the file using Finder:
1) In the Finder Go menu, choose Go to Folder.
2) Type in the path to the folder that contains the file, and then click Go.
3) In the window that opens, select the file and then select Get Info from the Finder File menu.
4) In the panel that opens, uncheck the Locked box in the General section of the panel.
(This can also be accomplished from Terminal using the SetFile command, but unless you've installed the Developer Tools, I don't think you have this command on your system.)
|Dec 13, 2010, 10:17 AM||#3|
chflags nouchg /path/to/item
will do that trick as well (and chflags comes on all OSX Macs).
Probably the most important command for users to learn is ls
ls -lOe /path/to/item
will show what's preventing the mode change.
Could be a lock (flag) or could be an ACL too.
|Dec 13, 2010, 10:48 AM||#4|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Error 1 operation not permitted, terminal not working||SuperHero87||OS X||4||May 20, 2014 02:04 AM|
|Automator chmod permissions help||drjustice||Mac Basics and Help||0||Dec 17, 2013 06:54 AM|
|Resolved: NSFileManager copyItemAtPath Operation not permitted||Tex-Twil||iPhone/iPad Programming||14||Sep 25, 2013 08:41 AM|
|Are animated GIFs permitted in ads?||FloatingBones||Site and Forum Feedback||6||May 21, 2013 06:04 PM|
|Networking Issue -- Outbound Connections Not Permitted||NightStorm||Mac OS X 10.7 Lion||1||Jul 2, 2012 09:40 AM|
All times are GMT -5. The time now is 07:20 AM.