I copied a lot of read-only files from a Windows system to my Mac. When viewing the Info for each file using "Get Info", I can see they are Locked. I'm writing a bash script to copy over some files and I'm getting an error that says "Operation not permitted" So, first I need to unlock the files. Since I'll be pulling files from the Windows system often, I want my script to unlock these files.
What is the terminal command to unlock "Locked" files on OSX?
chflags nochg *
and to change just one file
chflags nouchg onefile.txt See: http://www.mehtanirav.com/2009/04/16/recursively-unlock-files-on-mac-os-x – Michael Prescott Sep 14 '09 at 02:37