{"id":119,"date":"2013-03-03T20:13:18","date_gmt":"2013-03-03T20:13:18","guid":{"rendered":"http:\/\/toolbox.pingvinfeszek.hu\/?p=119"},"modified":"2013-03-03T20:13:18","modified_gmt":"2013-03-03T20:13:18","slug":"remove-file-protection-from-copied-files-under-mac-os-x","status":"publish","type":"post","link":"https:\/\/wp.gaborhargitai.hu\/remove-file-protection-from-copied-files-under-mac-os-x\/","title":{"rendered":"Remove file protection from copied files under Mac OS X"},"content":{"rendered":"

Copying files from read-only media or an external drive (or even a network share) can cause them to become “protected” upon being written to disk under OS X. Problem is, when the urge to modify\/rename the rises, You’ll end up getting an error message stating that it sure is protected and it should be left untouched! It is possible, however, to manually select the file(s), click on Info and un-tick the Protected box at the top of the info box. Doing this with 2-3 files is easy. Doing it to 30-40 is a real PITA! But fret not, as the solution to bulk-remove this permission setting is here:<\/p>\n

Open your\u00a0favorite\u00a0Terminal<\/strong> app, navigate to the directory and issue the following command to remove this flag from all of the files within<\/strong> this directory:<\/p>\n

 <\/p>\n

chflags -R nouchg *<\/p><\/blockquote>\n

 <\/p>\n

Now you are free to modify said files \ud83d\ude42<\/p>\n

Source of this solution is here<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"

Copying files from read-only media or an external drive (or even a network share) can cause them to become “protected” upon being written to disk under OS X. Problem is, when the urge to modify\/rename the rises, You’ll end up getting an error message stating that it sure is protected and it should be left […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/119"}],"collection":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":1,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":120,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/posts\/119\/revisions\/120"}],"wp:attachment":[{"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.gaborhargitai.hu\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}