Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nextcloud permission problem with external storage

Featured Replies

Hi everyone,

 

I post this here with solution because it was very hard to find the solution on the web and maybe it helps others to have a clear topic on that

 

Problem description:

When you set up a Nextcloud on UnRaid, you can integrate a user share with direct access in Nextcloud. This is a very neat feature if you want to access the data on your server directly through the nextcloud apps on the phone, website or computer. But if you create files or folders on the share through the App or WebUI, these files get wrong permission settings and you are not able the work with these folders/files with e.g. a SMB access in Windows. 

 

Solution:

You have to change the UMASK for external storage in the config.php of the nextcloud docker. The file is located in the nextcloud appdata share.

Go to the Shares tab on your server and navigate to appdata->"nextcloud"->www->nextcloud->config. The first "nextcloud" should be replaced by the name of the share you created for nextcloud.

Open the config.php and add following line: 'localstorage.umask' => 0002. The standard value here is 0022, which doesn't work for me.

Restart the docker container.

 

This thread pointed me in the right direction, special thanks to Dmitr1: https://help.nextcloud.com/t/external-storage-files-dirs-created-with-wrong-permissions/68969/23

 

I saw that this changes were integrated June 2022, so you need a recent update. Versions 24.0.9 or 25.0.3 should work. I have 25.0.4.

 

I tested with files/folders created through WebUI and Android app and the fix works for me.

Solved by SteSto86

  • Author
  • Solution

Solution:

You have to change the UMASK for external storage in the config.php of the nextcloud docker. The file is located in the nextcloud appdata share.

Go to the Shares tab on your server and navigate to appdata->"nextcloud"->www->nextcloud->config. The first "nextcloud" should be replaced by the name of the share you created for nextcloud.

Open the config.php and add following line: 'localstorage.umask' => 0002. The standard value here is 0022, which doesn't work for me.

Restart the docker container.

 

This thread pointed me in the right direction, special thanks to Dmitr1: https://help.nextcloud.com/t/external-storage-files-dirs-created-with-wrong-permissions/68969/23

 

I saw that this changes were integrated June 2022, so you need a recent update. Versions 24.0.9 or 25.0.3 should work. I have 25.0.4.

 

I tested with files/folders created through WebUI and Android app and the fix works for me.

  • 1 month later...

I was having an issue with my android phone app auto upload option giving me permission denied errors and attempting the fix of putting 'localstorage.umask' => 0002 in config.php file causes my nextcloud docker to show internal error on the main page and not work at all, had to remove it.

  • 1 year later...

Thanks for the tip - I changed it to 0002 in the Edit part of the Docker config for the container and it seems to work.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.