|Dec 13, 2010, 12:04 AM||#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, 04: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, 11: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, 11:48 AM||#4|
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|NFS - operation not permitted||vishwa||Mac Programming||6||Nov 28, 2011 12:29 AM|
|hdiutil makehybrid - operation not permitted||llorban||Mac Applications and Mac App Store||4||Nov 15, 2011 07:53 PM|
|iDVD help : Menu button not permitted in one video||321estrellas||Digital Video||0||Apr 13, 2008 01:21 PM|
|"Unable to unarchive" Error 1 Op. not permitted||Kiku||OS X||5||Jul 30, 2007 10:43 PM|
|DVD Player FFWD Not Permitted - Bogus!||pubwvj||Mac Applications and Mac App Store||8||Jun 2, 2005 09:29 PM|
All times are GMT -5. The time now is 05:25 AM.