Mount NAS share

Hello,

I have installed Nextcloud 18.0.4 on Debian 10.4 with MariaDB 10.4 and Php 7.4

On this machine, I mount my NAS share via Samba in this folder : /home/xxx/NAS/DATA
Here is my /etc/fstab
//192.168.1.20/DATA /home/xxx/NAS/DATA cifs auto,iocharset=utf8,uid=1000,gid=users,credentials=/home/xxx/.smb,file_mode=0775,dir_mode=0775 0 0

If I mount the NAS in Nextcloud as local storage with this path :
/home/xxx/NAS/DATA
Nextcloud says :
You do not have permission to send or create files here

If I mount the NAS share in Nextcloud as Samba share with this address :
//192.168.1.20/DATA
The DATA folder does not appear in Nextcloud

What can I do to make it work?

Thanks

This can not work because you use different users for Nextcloud (www-data, uid=33 ???) and ´the user “xxx” (uid=1000). If you use the same user (e.g. all subfolders from /var/www/html it would work with “local storage”. Alternative perhaps you can use in /home/xxx/… a shared linux-group and set the read/write to this group.

Hello devnull,

It works with uid=33 in /etc/fstab : thanks!!