# Content Folder Permissions on create

**URL:** <https://forum.getkirby.com/t/content-folder-permissions-on-create/2846>\
**Category:** Questions\
**Tags:** v2\
**Created:** [December 17, 2015, 8:59am UTC](https://forum.getkirby.com/t/content-folder-permissions-on-create/2846 "2015-12-17T08:59:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![npostulart](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/npostulart/32/1300_2.png) [@npostulart](https://forum.getkirby.com/u/npostulart)\
**Post date:** [December 17, 2015, 8:59am UTC](https://forum.getkirby.com/t/content-folder-permissions-on-create/2846/1 "2015-12-17T08:59:03Z")

</div>

Hi there,

I recently switched our site from Middleman to Kirby and everyone loves it. Unfortunately I have a problem with the folder permissions if a user creates a new page in the panel. The directory is created with 755 and files with 644 as permission. As I need to update the page via ssh the folder has to have 775 and the files 664. Is there any undocumented setting for the config to set the default permission on folder creation?

Best regards,  
Niklas

---

<div class="post-metadata">

**Author:** ![npostulart](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/npostulart/32/1300_2.png) [@npostulart](https://forum.getkirby.com/u/npostulart)\
**Post date:** [December 17, 2015, 10:17am UTC](https://forum.getkirby.com/t/content-folder-permissions-on-create/2846/2 "2015-12-17T10:17:21Z")

</div>

Finally found the solution:

in `site/config/config.php` you can set:

`Dir::$defaults['permissions'] = 0775;`

As Kirby uses php’s `mkdir` the umask of the server is also important. If this is set to `022` the folders will still be created with `0755`.

---

<div class="post-metadata">

**Author:** ![nwong212](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nwong212](https://forum.getkirby.com/u/nwong212)\
**Post date:** [May 21, 2018, 8:09pm UTC](https://forum.getkirby.com/t/content-folder-permissions-on-create/2846/3 "2018-05-21T20:09:09Z")

</div>

I added this code to my config.php, and my current umask is 002, but folders are still being created with 0755… Do I need to change my umask to something different?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:28pm UTC](https://forum.getkirby.com/t/content-folder-permissions-on-create/2846/4 "2025-02-06T17:28:08Z")

</div>

Archived on February 6, 2025, 5:28pm UTC


