help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
Or for longer, use three backticks above and below the code snippet:
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version: 24
Operating system: Ubuntu
PHP version : 7.4
The issue you are facing:
Hi, I am using Minidlna on my nextcloud but the service has a problem with the permission of the data folder.
My Nextcloud data is stored on an external HDD mounted under “/nextcloud”. The Minidlna data folder is also on the HDD but under “/nextcloud/minidlna”, which is mounted in the nextcloud config as external storage.
The problem is that the permission of /nextcloud is 770 and owend by www-data. /nextcloud/minidlna is 777. I dont want to change the hole /nextcloud folder to 777.
How can I set up the right permission for the dlna service?
Is this the first time you’ve seen this error? : Yes
Normal is 755, the second 7 in 770 is only useful for groups. Is ubuntu in group www-data? If not that makes no sense. And why not read for all for the last number? Most parts of you Ubuntu are readable from all. You won’t really achieve more safety if you don’t follow the standard specifications. Keep in mind that those who came up with this probably have far more IT knowledge than either of us.
That might be ok but is also no standard. Why not 770?. But it would better if it is also owned from user www-data if possible.
Maybe you can create a group nextmini and add both users to the group and set the group correctly. Also you can set other to 7 so without a new group both user can write. Also you can add minidlna to group www-data or www-data to the group of minidlna.
All possible. But mostly it breaks.
Must Nextcloud write in minidlna? If not you need only 644 (data) and 755 (directory).
Is this set correctly for minidlna (umask)?
Why must Nextcloud write?