With regards to the rights, i saw this website:
They say:
chown -R www-data:www-data /mnt/ncdata/
So you can set the premisson like “grouchysysadmin” written.
chmod 0750 /mnt/ncdata/ → ( 7|5|0 mean => user: rwx | group: rx | other: - )
w = write / r=read / x=execute / - = no premissions
In your case: chmod 0750 /mnt/ncdata/
maybe you have to set the same premission to every subdirectory.
find /mnt/ncdata/ -type d -print0 | xargs -0 chmod 0750
And every file in the data folder
find /mnt/ncdata/ -type f -print0 | xargs -0 chmod 0640
→ exept: .htaccess
chown root:www-data .htaccess
chmod 0644 .htaccess
Are you sure i should use “sudo chmod -Rf 777 /mnt/data”?