{"id":102980,"date":"2022-06-29T12:06:01","date_gmt":"2022-06-29T12:06:01","guid":{"rendered":"https:\/\/www.stellarinfo.com\/blog\/?p=102980"},"modified":"2025-08-28T11:26:58","modified_gmt":"2025-08-28T11:26:58","slug":"fixed-zsh-permission-denied-in-mac-terminal","status":"publish","type":"post","link":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/","title":{"rendered":"4 Ways to Fix Zsh Permission Denied in Mac Terminal"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><?xml encoding=\"utf-8\" ?><p>So, you are opening a file, and you have decided to do it with the help of the Terminal app. A moment later you see the Zsh permission denied error. How to fix that? Let us first take a look at the root of the problem itself.<\/p><h2 class=\"wp-block-heading\" id=\"what-does-zsh-stand-for?\">What does Zsh Stand for?<\/h2><p>The Zsh or the so-called Z shell is a Unix shell. It&rsquo;s a macOS default shell designed on top of bash. In other words: it&rsquo;s the default Shell in macOS (and a shell itself is the interface that provides access to an operating system&rsquo;s services). Zsh is used more often than Bash (&ldquo;bourne again shell&rdquo;) since it is more powerful, and has an extended number of features.<\/p><h2 class=\"wp-block-heading\" id=\"what-is-zsh-permission-denied-error?\">What is Zsh Permission Denied Error?<\/h2><p>The problem you are encountering appears when the Terminal cannot complete the task as it simply can&rsquo;t access the file. Either the file is locked, the command has been formatted in a wrong way, or even the file permission is insufficient.<\/p><h2 class=\"wp-block-heading\" id=\"ways-to-fix-the-zsh-permission-denied-error-on-mac\">Ways to Fix the Zsh Permission Denied Error on Mac<\/h2><h3 class=\"wp-block-heading\">A. Check Disk Permissions<\/h3><p>Since we have talked about file permissions, let&rsquo;s start with them.&nbsp;<\/p><p><strong>To check disk permissions through Terminal:<\/strong> <\/p><p>1. Open Terminal and paste the following command:<em> ls -l.<\/em> Add a space after the command and do not press <strong>Enter<\/strong> for now.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"167\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image1-5-1024x167.png\" alt=\"Terminal\" class=\"wp-image-103191 apply-gradient-on-post-images\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image1-5-1024x167.png 1024w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image1-5-300x49.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image1-5-768x125.png 768w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image1-5.png 1128w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Terminal<\/figcaption><\/figure>\n<\/div><p>2. Find the file you need to open &gt; drag it into the Terminal window (this will not actually move the item, but will do the trick).<\/p><p>3. Press <strong>Return<\/strong>.<\/p><p>If the letters <strong>&ldquo;rwxr&rdquo;<\/strong> appear before your username in the result string, it means you have the access to read, write, and execute the file. If there is only one sign, for example,<strong> &ldquo;r&rdquo;<\/strong>, it means the file is read-only to you.<\/p><p><strong>If you are checking disk permissions of the file through Finder:<\/strong><\/p><ol class=\"wp-block-list\">\n<li>Find the desired file in the Finder window.<\/li>\n\n\n\n<li>Press <strong>Command + I<\/strong> to open the <strong>Get Info<\/strong> option. Find <strong>Sharing &amp; Permissions<\/strong> at the bottom of the window.<\/li>\n\n\n\n<li>In case you see nothing beneath it, find the arrow and click it.<\/li>\n<\/ol><p>The permissions should now be visible to you. To have the necessary access, it should state <strong>&ldquo;Read &amp; Write&rdquo;<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"510\" height=\"192\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image6-3.png\" alt=\"Get Info window &gt; Sharing &amp; Permissions\" class=\"wp-image-103219 apply-gradient-on-post-images\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image6-3.png 510w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image6-3-300x113.png 300w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><figcaption class=\"wp-element-caption\">Get Info window &gt; Sharing &amp; Permissions<\/figcaption><\/figure>\n<\/div><h3 class=\"wp-block-heading\">B. Change the Ownership of the Directory to Solve Zsh Permission Denied<\/h3><p><strong>Let&rsquo;s try changing the ownership of the directory:<\/strong><\/p><p>Open Terminal again and use the command<em> chown -R $USER:$USER \/path\/to\/directory<\/em>.&nbsp;<\/p><p>Where $USER is the currently logged-in user and \/path\/to\/directory &ndash; a place you are writing it to.<\/p><h3 class=\"wp-block-heading\">C. Grant Access to the Disk to Terminal if it has No Full Access<\/h3><p>If it is the case with Terminal, this might be another reason for the Zsh permission denied error.&nbsp;<\/p><p>To check if that&rsquo;s true, and give them access to the disk, <strong>do the following:<\/strong><\/p><ol class=\"wp-block-list\">\n<li>Open<strong> System Preferences<\/strong>.&nbsp;<\/li>\n\n\n\n<li>Find <strong>Security &amp; Privacy<\/strong>.&nbsp;<\/li>\n\n\n\n<li>Then choose the <strong>Privacy<\/strong> tab.<\/li>\n\n\n\n<li>Click the <strong>padlock<\/strong> in the left bottom corner &gt; type your admin password to apply changes.<\/li>\n\n\n\n<li>From the list choose Terminal and tap the mark beside it to add it to the list of full access.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"887\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image3-3-1024x887.png\" alt=\"Security &amp; Privacy &gt; Privacy tab &gt; Full Disk Access highlighted\" class=\"wp-image-103242 apply-gradient-on-post-images\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image3-3-1024x887.png 1024w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image3-3-300x260.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image3-3-768x665.png 768w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image3-3.png 1464w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Security &amp; Privacy &gt; Privacy tab &gt; Full Disk Access highlighted<\/figcaption><\/figure>\n<\/div><p class=\"has-background note-alert\"><strong>Note:<\/strong> If Terminal is not on the list (this may happen in the newest macOS versions), you&rsquo;ll need to add it manually by clicking the<strong> + <\/strong>button and searching Terminal in the search bar. Next, you&rsquo;ll need to quit Terminal to apply the changes.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"868\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image4-4-1024x868.png\" alt=\"Add Terminal to Full Disk Access on Mac\" class=\"wp-image-103243 apply-gradient-on-post-images\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image4-4-1024x868.png 1024w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image4-4-300x254.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image4-4-768x651.png 768w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image4-4.png 1448w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Add Terminal to Full Disk Access on Mac<\/figcaption><\/figure>\n<\/div><h3 class=\"wp-block-heading\">D. Use a Sudo Command&nbsp;<\/h3><p>If none of the above helped use the superpower &mdash; a Sudo command. In simple words, a Sudo command stands for superuser do, when a permitted user gains super user privileges or executes a command as another user. Mind it will ask for the current (not the root one) user&rsquo;s password when using the mentioned command for the first time.<\/p><p><strong>Here are the commands you might try:<\/strong><\/p><ul class=\"wp-block-list\">\n<li>sudo chmod 755 ~\/Themes\/ObsidianCode.xccolortheme<\/li>\n\n\n\n<li>sudo chmod 755 \/dvtcolorconvert.rb<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"231\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image5-3-1024x231.png\" alt=\"Terminal on Mac &gt; run a sudo command\" class=\"wp-image-103244 apply-gradient-on-post-images\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image5-3-1024x231.png 1024w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image5-3-300x68.png 300w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image5-3-768x173.png 768w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image5-3.png 1134w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Terminal on Mac &gt; run a sudo command<\/figcaption><\/figure>\n<\/div><h2 class=\"wp-block-heading\" id=\"is-there-a-way-to-prevent-terminal-permission-denied-errors-on-mac?\">Is There a Way to Prevent Terminal Permission Denied Errors on Mac?<\/h2><p>Yes, there are actually four of them. Read on to find out more.<\/p><h3 class=\"wp-block-heading\">Assign Permissions to Users and Groups<\/h3><p>Give permissions to a number of users and groups to prevent issues with permission. <strong>To do this:<\/strong><\/p><ol class=\"wp-block-list\">\n<li>Choose a file, folder, or disk, then open <strong>File<\/strong> &gt; <strong>Get Info<\/strong>.<\/li>\n\n\n\n<li>Tap on the lock sign to unlock the item. If it&rsquo;s asking for your admin&rsquo;s name and password &mdash; fill them in.<\/li>\n\n\n\n<li>From the <strong>Name<\/strong> column choose a user or group, this will open the popup menu &gt; click the <strong>Privileged Setting <\/strong>option.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"514\" height=\"376\" src=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image2-5.png\" alt=\"Get Info &gt; Sharing &amp; Permissions\" class=\"wp-image-103245 apply-gradient-on-post-images\" srcset=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image2-5.png 514w, https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/image2-5-300x219.png 300w\" sizes=\"auto, (max-width: 514px) 100vw, 514px\" \/><figcaption class=\"wp-element-caption\">Get Info &gt; Sharing &amp; Permissions<\/figcaption><\/figure>\n<\/div><p><strong>Here&rsquo;s what each permission means:<\/strong><\/p><ul class=\"wp-block-list\">\n<li><strong>Read Only:<\/strong> you can only access the item without changing it.<\/li>\n\n\n\n<li><strong>Write Only:<\/strong> a folder becomes a DropBox, where the user can copy an item and move it there without opening the file itself.<\/li>\n\n\n\n<li><strong>Read &amp; Write:<\/strong> permission to do both viewing and editing the file.&nbsp;<\/li>\n<\/ul><h3 class=\"wp-block-heading\">Grant Permissions to All Items in a Folder<\/h3><p>Giving permissions to all items on a disk or in a certain folder means they will be accessed only by certain users:<\/p><ol class=\"wp-block-list\">\n<li>Select a directory (disk or folder) &gt; then go to <strong>File <\/strong>in the menu bar.<\/li>\n\n\n\n<li>Click<strong> Get Info<\/strong>.<\/li>\n\n\n\n<li>Click on the padlock and type in your admin password.&nbsp;<\/li>\n\n\n\n<li>Check the bottom of the window &gt;choose to <strong>Apply to Enclosed Items<\/strong>.<\/li>\n\n\n\n<li>Click <strong>OK<\/strong> for the necessary changes to apply.<\/li>\n<\/ol><h3 class=\"wp-block-heading\">Change the Owner of an Item&nbsp;<\/h3><p>Issues with Zsh permission denied in Mac Terminal may also occur if the owner of an item is another user.<\/p><p><strong>To change the owner of a file:<\/strong><\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>File<\/strong> of the chosen item &gt; <strong>Get Info<\/strong>.<\/li>\n\n\n\n<li>Add the new owner with the <strong>Add (+)<\/strong> button, using the action pop-up menu.&nbsp;<\/li>\n\n\n\n<li>Then click Make [the chosen owner] as the owner of an item.<\/li>\n\n\n\n<li>Save changes.<\/li>\n<\/ol><h3 class=\"wp-block-heading\">Add or Remove a User or Group<\/h3><p>Adding or removing a user or group can also resolve permission issues.&nbsp;<\/p><p><strong>Here&rsquo;s how to do so:<\/strong><\/p><ol class=\"wp-block-list\">\n<li>Find the desired item.<\/li>\n\n\n\n<li>Go to <strong>File<\/strong> &gt; tap<strong> Get Info<\/strong>.<\/li>\n\n\n\n<li>Look for<strong> Sharing &amp; Permissions.<\/strong>&nbsp;<\/li>\n\n\n\n<li>Hit <strong>Add<\/strong> (a + sign) a user or group if you would like to add one, or click <strong>Remove<\/strong>&nbsp; (a &ndash; sign) a user or group to remove it.<\/li>\n\n\n\n<li>Click to apply changes.<\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"it&rsquo;s-a-wrap\">It&rsquo;s a Wrap<\/h2><p>If you happen to decide to open a file not by double-clicking it, but by doing it with Terminal instead &mdash; probably there is a reason why you have decided to use the less conventional way. Issues with accessing items this way are not uncommon, and we hope our simple guidelines will help you fix the error in no time, and with little effort. Since it is basically a permission issue, the first thing you would need to do is to check all possible permissions or check if the user you are logged under has sufficient access.&nbsp;<\/p><p><strong>Read more:&nbsp;<\/strong><\/p><ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.stellarinfo.com\/blog\/recover-files-deleted-mac-user-account\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Recover Files from a Deleted Mac User Account?<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>So, you are opening a file, and you have decided to do&hellip; <a class=\"more-link\" href=\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/\">Continue reading <span class=\"screen-reader-text\">4 Ways to Fix Zsh Permission Denied in Mac Terminal<\/span><\/a><\/p>\n","protected":false},"author":63,"featured_media":103525,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2351],"tags":[3043,3042,3045,3044],"class_list":["post-102980","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-learning-with-stellar","tag-mac-terminal-zsh","tag-terminal-zsh","tag-zsh-permission-denied-mac","tag-zsh-terminal-mac","entry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>4 Ways to Fix Zsh Permission Denied in Mac Terminal<\/title>\n<meta name=\"description\" content=\"Don\u2019t know why your Mac is showing you the Zsh Permission denied Terminal error? Learn what\u2019s causing the issue and 4 solutions to fix it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"4 Ways to Fix Zsh Permission Denied in Mac Terminal\" \/>\n<meta property=\"og:description\" content=\"Don\u2019t know why your Mac is showing you the Zsh Permission denied Terminal error? Learn what\u2019s causing the issue and 4 solutions to fix it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/\" \/>\n<meta property=\"og:site_name\" content=\"Stellar Data Recovery Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-29T12:06:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-28T11:26:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/Fixed-Zsh-Permission-Denied-in-Mac-Terminal.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ruslana Lishchuk\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ruslana Lishchuk\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/\"},\"author\":{\"name\":\"Ruslana Lishchuk\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/2157bc3de59c4a4cd584bc9fb3d24026\"},\"headline\":\"4 Ways to Fix Zsh Permission Denied in Mac Terminal\",\"datePublished\":\"2022-06-29T12:06:01+00:00\",\"dateModified\":\"2025-08-28T11:26:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/\"},\"wordCount\":1195,\"commentCount\":1,\"image\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/Fixed-Zsh-Permission-Denied-in-Mac-Terminal.jpg\",\"keywords\":[\"mac terminal zsh\",\"terminal zsh\",\"zsh permission denied mac\",\"zsh terminal mac\"],\"articleSection\":[\"Learning with Stellar\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/\",\"url\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/\",\"name\":\"4 Ways to Fix Zsh Permission Denied in Mac Terminal\",\"isPartOf\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/Fixed-Zsh-Permission-Denied-in-Mac-Terminal.jpg\",\"datePublished\":\"2022-06-29T12:06:01+00:00\",\"dateModified\":\"2025-08-28T11:26:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/2157bc3de59c4a4cd584bc9fb3d24026\"},\"description\":\"Don\u2019t know why your Mac is showing you the Zsh Permission denied Terminal error? Learn what\u2019s causing the issue and 4 solutions to fix it.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#primaryimage\",\"url\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/Fixed-Zsh-Permission-Denied-in-Mac-Terminal.jpg\",\"contentUrl\":\"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/Fixed-Zsh-Permission-Denied-in-Mac-Terminal.jpg\",\"width\":1000,\"height\":600,\"caption\":\"Fixed-Zsh-Permission-Denied-in-Mac-Terminal\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.stellarinfo.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"4 Ways to Fix Zsh Permission Denied in Mac Terminal\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#website\",\"url\":\"https:\/\/www.stellarinfo.com\/blog\/\",\"name\":\"Stellar Data Recovery Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.stellarinfo.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/2157bc3de59c4a4cd584bc9fb3d24026\",\"name\":\"Ruslana Lishchuk\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/abd29ee2c0ec00be8756cce09b998551319b09035c38a1a5892e014c04e71aae?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/abd29ee2c0ec00be8756cce09b998551319b09035c38a1a5892e014c04e71aae?s=96&d=mm&r=g\",\"caption\":\"Ruslana Lishchuk\"},\"description\":\"Ruslana is a tech content writer whose true passion is finding out about everything Mac-related. She specializes in creating macOS guides and tips &amp; tricks. In her spare time, you\u2019ll find her doing yoga or discovering local coffee shops in search of the best filter coffee.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ruslana-lishchuk-69918464\/\"],\"url\":\"https:\/\/www.stellarinfo.com\/blog\/author\/ruslana\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"4 Ways to Fix Zsh Permission Denied in Mac Terminal","description":"Don\u2019t know why your Mac is showing you the Zsh Permission denied Terminal error? Learn what\u2019s causing the issue and 4 solutions to fix it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/","og_locale":"en_US","og_type":"article","og_title":"4 Ways to Fix Zsh Permission Denied in Mac Terminal","og_description":"Don\u2019t know why your Mac is showing you the Zsh Permission denied Terminal error? Learn what\u2019s causing the issue and 4 solutions to fix it.","og_url":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/","og_site_name":"Stellar Data Recovery Blog","article_published_time":"2022-06-29T12:06:01+00:00","article_modified_time":"2025-08-28T11:26:58+00:00","og_image":[{"width":1000,"height":600,"url":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/Fixed-Zsh-Permission-Denied-in-Mac-Terminal.jpg","type":"image\/jpeg"}],"author":"Ruslana Lishchuk","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ruslana Lishchuk","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#article","isPartOf":{"@id":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/"},"author":{"name":"Ruslana Lishchuk","@id":"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/2157bc3de59c4a4cd584bc9fb3d24026"},"headline":"4 Ways to Fix Zsh Permission Denied in Mac Terminal","datePublished":"2022-06-29T12:06:01+00:00","dateModified":"2025-08-28T11:26:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/"},"wordCount":1195,"commentCount":1,"image":{"@id":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#primaryimage"},"thumbnailUrl":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/Fixed-Zsh-Permission-Denied-in-Mac-Terminal.jpg","keywords":["mac terminal zsh","terminal zsh","zsh permission denied mac","zsh terminal mac"],"articleSection":["Learning with Stellar"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/","url":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/","name":"4 Ways to Fix Zsh Permission Denied in Mac Terminal","isPartOf":{"@id":"https:\/\/www.stellarinfo.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#primaryimage"},"image":{"@id":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#primaryimage"},"thumbnailUrl":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/Fixed-Zsh-Permission-Denied-in-Mac-Terminal.jpg","datePublished":"2022-06-29T12:06:01+00:00","dateModified":"2025-08-28T11:26:58+00:00","author":{"@id":"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/2157bc3de59c4a4cd584bc9fb3d24026"},"description":"Don\u2019t know why your Mac is showing you the Zsh Permission denied Terminal error? Learn what\u2019s causing the issue and 4 solutions to fix it.","breadcrumb":{"@id":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#primaryimage","url":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/Fixed-Zsh-Permission-Denied-in-Mac-Terminal.jpg","contentUrl":"https:\/\/www.stellarinfo.com\/blog\/wp-content\/uploads\/2022\/06\/Fixed-Zsh-Permission-Denied-in-Mac-Terminal.jpg","width":1000,"height":600,"caption":"Fixed-Zsh-Permission-Denied-in-Mac-Terminal"},{"@type":"BreadcrumbList","@id":"https:\/\/www.stellarinfo.com\/blog\/fixed-zsh-permission-denied-in-mac-terminal\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.stellarinfo.com\/blog\/"},{"@type":"ListItem","position":2,"name":"4 Ways to Fix Zsh Permission Denied in Mac Terminal"}]},{"@type":"WebSite","@id":"https:\/\/www.stellarinfo.com\/blog\/#website","url":"https:\/\/www.stellarinfo.com\/blog\/","name":"Stellar Data Recovery Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.stellarinfo.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/2157bc3de59c4a4cd584bc9fb3d24026","name":"Ruslana Lishchuk","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stellarinfo.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/abd29ee2c0ec00be8756cce09b998551319b09035c38a1a5892e014c04e71aae?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/abd29ee2c0ec00be8756cce09b998551319b09035c38a1a5892e014c04e71aae?s=96&d=mm&r=g","caption":"Ruslana Lishchuk"},"description":"Ruslana is a tech content writer whose true passion is finding out about everything Mac-related. She specializes in creating macOS guides and tips &amp; tricks. In her spare time, you\u2019ll find her doing yoga or discovering local coffee shops in search of the best filter coffee.","sameAs":["https:\/\/www.linkedin.com\/in\/ruslana-lishchuk-69918464\/"],"url":"https:\/\/www.stellarinfo.com\/blog\/author\/ruslana\/"}]}},"_links":{"self":[{"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/posts\/102980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/comments?post=102980"}],"version-history":[{"count":8,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/posts\/102980\/revisions"}],"predecessor-version":[{"id":185198,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/posts\/102980\/revisions\/185198"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/media\/103525"}],"wp:attachment":[{"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/media?parent=102980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/categories?post=102980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stellarinfo.com\/blog\/wp-json\/wp\/v2\/tags?post=102980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}