# Wrong automatic permissions in media folder

**URL:** <https://forum.getkirby.com/t/wrong-automatic-permissions-in-media-folder/34684>\
**Category:** Webdev\
**Created:** [September 5, 2025, 9:30pm UTC](https://forum.getkirby.com/t/wrong-automatic-permissions-in-media-folder/34684 "2025-09-05T21:30:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathansteffens](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jonathansteffens](https://forum.getkirby.com/u/jonathansteffens)\
**Post date:** [September 5, 2025, 9:30pm UTC](https://forum.getkirby.com/t/wrong-automatic-permissions-in-media-folder/34684/1 "2025-09-05T21:30:36Z")

</div>

hi, my automatic generated media folder on my test-server always has the wrong permissions. if i delete it, its newly generated with 0750 for folders and 0640 for files which leads to the case that images would show up on the website but not in the panel. it does not happen in the local enviroment. im working on a subdomain of my strato-domain.

 ![Bildschirmfoto 2025-09-05 um 23.25.02](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/3X/b/a/ba73364b2310a1707e7f8058adc072060bd82a32.jpeg)

 ![Bildschirmfoto 2025-09-05 um 23.25.30](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/3X/d/9/d94542bb1a849750c8f3650c4bef166d8f9e3a8d.png)

 ![Bildschirmfoto 2025-09-05 um 23.24.36](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/3X/8/a/8aedb11ba6d774c50d64d47d4f18c869512268f2.png)

 ![Bildschirmfoto 2025-09-05 um 23.25.22](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/3X/e/5/e5c5038062be20c14061cb0fe5b6fd28aff2b1ae.jpeg)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 6, 2025, 5:50am UTC](https://forum.getkirby.com/t/wrong-automatic-permissions-in-media-folder/34684/2 "2025-09-06T05:50:08Z")

</div>

Might be that PHP is running with the wrong (more restricted) permissions, usually it should be running as www-data, which then results in newly created files getting the wrong permissions as well.

Make sure to check permissions and ownership, and adjust as requires (chown, chmod)

---

<div class="post-metadata">

**Author:** ![jonathansteffens](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jonathansteffens](https://forum.getkirby.com/u/jonathansteffens)\
**Post date:** [September 6, 2025, 9:48am UTC](https://forum.getkirby.com/t/wrong-automatic-permissions-in-media-folder/34684/3 "2025-09-06T09:48:15Z")

</div>

so its a strato-side problem?

---

<div class="post-metadata">

**Author:** ![jonathansteffens](https://avatars.discourse-cdn.com/v4/letter/j/2acd7d/32.png) [@jonathansteffens](https://forum.getkirby.com/u/jonathansteffens)\
**Post date:** [September 7, 2025, 12:23pm UTC](https://forum.getkirby.com/t/wrong-automatic-permissions-in-media-folder/34684/4 "2025-09-07T12:23:53Z")

</div>

i changed my provider now (which i was planning anyway) and its working now! so there seems to be a problem with strato.
