NC16 - Your data directory is readable by other users

Hi there,

I’m facing a problem which seems to be trivial. First of all here some configuration details.
Nextcloud version 16 runnig on a Synology NAS with
Apache HTTP 2.4 and
PHP version 7.2.

Error: “Your data directory is readable by other users
Please change the permissions to 0770 so that the directory cannot be listed by other users.”

What i did so far:

  • reading tutorials and all answers i found on google
  • chmod -R 0770 and chown for the NC Folder
  • ls -l tells me, permissions are set to 0770

Hope someone faced this problem befor and can help me bring my NC back in business.

Within your config config.php file – …/nextcloud/config directory – what does it say for data directory?

Mine says the following (this is way I set it up so its probably different than yours):
‘datadirectory’ => ‘/mnt/data’,

‘datadirectory’ => ‘/volume1/Nextcloud/’,

if i add “data/” at the end, i’m running into “Internal Server Error”. I also changed the database entry in mariadb10.

Well, i found the solution by myself. My data directory is outside the “nextcloud” folder. I forgot about that. Changed the permission for the correct “data” folder and fixed it.
Thank you