{"id":3766,"date":"2019-06-09T17:47:55","date_gmt":"2019-06-09T22:47:55","guid":{"rendered":"https:\/\/dev.iachieved.it\/iachievedit\/?p=3766"},"modified":"2019-12-02T07:43:27","modified_gmt":"2019-12-02T13:43:27","slug":"macos-10-15-catalina-adds-additional-filesystem-restrictions","status":"publish","type":"post","link":"https:\/\/dev.iachieved.it\/iachievedit\/macos-10-15-catalina-adds-additional-filesystem-restrictions\/","title":{"rendered":"macOS 10.15 Catalina Adds Additional Filesystem Restrictions"},"content":{"rendered":"<p>macOS 10.15 (Catalina) has added additional Privacy restrictions that require user intervention before applications can access the certain portions of the filesystem.  Not only that, but taking screenshots for this post required permissions to be explicitly granted to <a href=\"https:\/\/evernote.com\/products\/skitch\">Skitch<\/a>.  If you find that Skitch only gives you a screenshot of your Mac&#8217;s background, this is the post for you.  The fact that macOS 10.15 introduces new security and privacy safeguards is unsurprising as we got introduced to <a href=\"https:\/\/dev.iachieved.it\/iachievedit\/not-authorized-to-send-apple-events-to-system-events\/\">stricter automation controls<\/a> in Catalina&#8217;s predecessor.<\/p>\n<p>Let&#8217;s look at what happens when we try to <code>cd ~\/Documents<\/code> in the macOS 10.15 <code>Terminal<\/code> app:<\/p>\n<p><a href=\"https:\/\/dev.iachieved.it\/iachievedit\/wp-content\/uploads\/2019\/06\/cddocuments.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/dev.iachieved.it\/iachievedit\/wp-content\/uploads\/2019\/06\/cddocuments.png\" alt=\"\" width=\"583\" height=\"362\" class=\"aligncenter size-full wp-image-3768\" \/><\/a><\/p>\n<p>We&#8217;re greeted by a dialog box presented by Finder requesting specific permission for <code>Terminal<\/code> to access files in the <code>Documents<\/code> folder:<\/p>\n<p><a href=\"https:\/\/dev.iachieved.it\/iachievedit\/wp-content\/uploads\/2019\/06\/finder_terminal.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/dev.iachieved.it\/iachievedit\/wp-content\/uploads\/2019\/06\/finder_terminal.png\" alt=\"\" width=\"420\" height=\"156\" class=\"aligncenter size-full wp-image-3770\" \/><\/a><\/p>\n<p><code>\"Terminal\" would like to access files in your Documents folder.<\/code>  Once this permission is granted, <code>Terminal<\/code> can access the contents of <code>~\/Documents<\/code>.  If the permission <i>isn&#8217;t<\/i> granted, trying to <code>ls ~\/Documents<\/code> results in something along the lines of:<\/p>\n<p>[code lang=text]<br \/>\n# ls ~\/Documents<br \/>\nls: Documents: Operation not permitted<br \/>\n[\/code]<\/p>\n<p>Updating which filesystem access permissions have been granted for a given application can be accomplished in the <code>Security &amp; Privacy<\/code> preference panel.  In this example <code>Terminal<\/code> has been granted access to the <code>Documents<\/code> folder whereas <code>iTerm<\/code> has not been granted any access.<\/p>\n<p><a href=\"https:\/\/dev.iachieved.it\/iachievedit\/wp-content\/uploads\/2019\/06\/Security___Privacy_and_Rename_Terminal_Tabs_in_Mac_OS_X.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/dev.iachieved.it\/iachievedit\/wp-content\/uploads\/2019\/06\/Security___Privacy_and_Rename_Terminal_Tabs_in_Mac_OS_X.png\" alt=\"\" width=\"668\" height=\"567\" class=\"aligncenter size-full wp-image-3772\" \/><\/a><\/p>\n<p>It was an added bonus while writing this post that even trying to take a screenshot with <code>Skitch<\/code> on Catalina prompted a dialog requesting explicit access.  The final result was that I&#8217;ve now authorized <code>Skitch<\/code> to capture my screen:<\/p>\n<p><a href=\"https:\/\/dev.iachieved.it\/iachievedit\/wp-content\/uploads\/2019\/06\/Security___Privacy.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/dev.iachieved.it\/iachievedit\/wp-content\/uploads\/2019\/06\/Security___Privacy.png\" alt=\"\" width=\"666\" height=\"571\" class=\"aligncenter size-full wp-image-3775\" \/><\/a><\/p>\n<p>There has been much speculation regarding Apple&#8217;s WWDC 2019 announcement of <a href=\"https:\/\/developer.apple.com\/sign-in-with-apple\/\">Sign in with Apple<\/a> as to its real intent.  What is clear (to me, at least) is that Apple is positioning itself as the guardian of security and privacy (compared to Facebook and Google who are clearly not in the interest of safeguarding either), whether it is <code>Sign in with Apple<\/code> or tighter controls around what applications can access your data on your own Mac.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>macOS 10.15 (Catalina) has added additional Privacy restrictions that require user intervention before applications can access the certain portions of the filesystem. Not only that, but taking screenshots for this post required permissions to be explicitly granted to Skitch. If you find that Skitch only gives you a screenshot of your Mac&#8217;s background, this is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-3766","post","type-post","status-publish","format-standard","hentry","category-apple"],"_links":{"self":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/3766"}],"collection":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/comments?post=3766"}],"version-history":[{"count":8,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/3766\/revisions"}],"predecessor-version":[{"id":3912,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/3766\/revisions\/3912"}],"wp:attachment":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/media?parent=3766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/categories?post=3766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/tags?post=3766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}