Problem access Files, Nextcloud, impossible to create or delete files

I have two ideas to look into:

  1. Does Nextcloud support writing to external media? I used it, but read only, so I couldn’t comment on read/write access.

  2. Yunohost uses ACL (access control lists) besides traditional ‘single’ file permissions. It could be that the nextcloud user does not have write permission to the mounted NAS locations.

Try browsing the filesystem as nextcloud user and see if you can create any files:

$ sudo su -
# su nextcloud
$ cd /media/nas/
etc

Did you consider mounting the NAS in the Nextcloud-directory, handily bypassing the external storage configuration? What are the reasons for not using it that way?

Pay attention with setfacl : you need to set current permissions, as well as default permissions in two seperate (or one complex) statements. The setfacl statement would be something like :

$ cd /media/nas
$ sudo setfacl -Rm u:nextcloud:rx 02_BIBLIOTHEQUE/
$ sudo setfacl -dRm u:nextcloud:rx 02_BIBLIOTHEQUE/

(copied from a thread about access to the filesystem for another user, in your case ‘nextcloud’)