Permission Problems with external storage


i’am using here nextcloud 12.0.4. I have add an local folder as external storage (readonly). It is working only when the permissions are set to 775. 770 didn’t work. I don’t know why. This are the conf permissions.

drwxrwx---+ 109 root data 114 Nov 18 19:25 /data

id apache
uid=10020(apache) gid=30057(apache) groups=30028(data),30057(apache)

And when i say “su apache”, and show files from this directory it is working. But when i would like to access from the nextcloud webinterface i haven’t access. So what i’am doing wrong?

Thanks a lot :slight_smile:

Try a sudo -u www-data php /var/www/nextcloud/occ files:scan

Thanks, yes, i tryed this. This was working fine. But the same, i haven’t access from the webinterface to files. Only with 775 it is working. So what user must to able to read this directory. I is not apache, if yes it would working with all this things/commands.

Thank you.

Did you ever find a solution for this? I’m having similar issues.