<p>This could be because you are setting your Settings → Assets → your volume <strong>File System Path</strong> to an absolute location <strong>outside</strong> the VM.</p>
<p>Create an <a href="https://craftcms.com/docs/3.x/config/#aliases" rel="nofollow noreferrer">alias</a> (or <em>hard-set</em> <code>webroot</code>) using:</p>
<pre><code>'aliases' =&gt; [
    'webroot' =&gt; dirname(__DIR__) . '/web'
],
</code></pre>
<p>In your <code>config/general.php</code> (changing <code>web</code> if you have a different public root).</p>
<p>With this in place, change the <strong>File System Path</strong> of your volume to <code>@webroot/your/path</code> which should solve you issue.</p>

CC BY-SA 4.0
2021-08-20T16:04:22.433Z
Cheers Oli, this solved the issue I was having.
erwinheiser
CC BY-SA 4.0
2021-01-18T14:56:54.147Z
2021-01-18T14:56:54.147Z
Oli
<p>I’m getting this error when accessing/writing images. It’s only just come along suddenly after one or a couple of updates.</p>
<blockquote>
<p>League\Flysystem\Exception</p>
<p>Impossible to create the root directory
&quot;/Users/username/Sites/project-name/craft/web/images/folder&quot;. mkdir():
Permission denied</p>
</blockquote>
<ul>
<li>Running Nitro with Multipass 1.5</li>
<li>Multipassd has all Full Disk Access (but had to add this manually from Application Services)</li>
<li>Craft CMS 3.5.16</li>
<li>MacOS Catalina 10.15.7</li>
<li>Composer version 2.0.8</li>
<li>Unable to change file permissions in Finder/Transmit etc</li>
<li>Not new installs</li>
<li>Unable to load an image through CP. Same message as above</li>
</ul>
<p>Nitro running other simpler site fine, so no problems there.</p>
<p>At a loss, any site running locally that needs images will fail to load, but /admin runs all fine.</p>
<p>Thanks :)</p>

CC BY-SA 4.0
2020-12-07T22:13:37.130Z
Does ``nitro apply && nitro restart`` do any for you?
RitterKnight
CC BY-SA 4.0
2020-12-08T06:51:48.763Z
Unfortunately not.
Simon Clayson
<permissions><nitro>
Folder Permissions denied with Nitro
# Folder Permissions denied with Nitro

(Asked by: username_0 on 2020-12-07)

I’m getting this error when accessing/writing images. It’s only just come along suddenly after one or a couple of updates.

> League\Flysystem\Exception
>
> Impossible to create the root directory
> "/Users/username/Sites/project-name/craft/web/images/folder". mkdir():
> Permission denied

* Running Nitro with Multipass 1.5
* Multipassd has all Full Disk Access (but had to add this manually from Application Services)
* Craft CMS 3.5.16
* MacOS Catalina 10.15.7
* Composer version 2.0.8
* Unable to change file permissions in Finder/Transmit etc
* Not new installs
* Unable to load an image through CP. Same message as above

Nitro running other simpler site fine, so no problems there.

At a loss, any site running locally that needs images will fail to load, but /admin runs all fine.

Thanks :)

**Tags:** permissions, nitro

> **Comments:**
> **username_1**: Does ``nitro apply && nitro restart`` do any for you?  
> **username_0**: Unfortunately not.  

---

## 1 answers

### Answer by username_2 on 2021-01-18. Score: 4 | Accepted answer

This could be because you are setting your Settings → Assets → your volume File System Path to an absolute location outside the VM.
Create an alias (or hard-set webroot) using:
'aliases' => [
    'webroot' => dirname(__DIR__) . '/web'
],

In your config/general.php (changing web if you have a different public root).
With this in place, change the File System Path of your volume to @webroot/your/path which should solve you issue.

> **Comments:**
> **username_3**: Cheers username_2, this solved the issue I was having.  

---

