Hi,
I’ve installed nextcloud using this guide.
I want to mount an external USB HDD in my nextcloud-data folder.
I’ve used the following commands:
sudo mkdir /usr/share/nginx/nextcloud-data
sudo chown www-data:www-data /usr/share/nginx/nextcloud-data -R
sudo chmod 0770 /usr/share/nginx/nextcloud-data
sudo mount -o file_mode=0770,dir_mode=0770,nounix,uid=33,gid=33 /dev/sdb1 /usr/share/nginx/nextcloud-data
But the permissions are automatically changed and set to 0777 when the directory is mounted. So the 0770 permission error is displayed when I try to connect to my nextcloud via browser.
I also add /dev/sdb1 /usr/share/nginx/html/nextcloud-data ntfs uid=33,gid=33,dmode=770,fmode=770,nounix 0 0 in the /etc/fstab and reboot, but nothing changes.
How to fix such issue???