I am mounting a set of NAS drives on my Linux field (Ubuntu 20.04) and every thing appears to be working advantageous for a lot of the drives:
sudo mount -t cifs //mynas/mydrive /mnt/mydrive -o credentials=/and many others/samba/nas.creds,file_mode=0600,dir_mode=0700,uid=myuid,gid=mygid
That’s, drives are mounted, they’ve the best umask, they’re writable by my consumer.
Aside from subfolders on a type of drives. It’s mounted precisely the identical approach with precisely identical credentials and the top-level listing is writable. Nevertheless, I can’t write into any of the subdirs!
High-level dir is writable:
$ ls -ld /mnt/mydrive drwx------ 2 myuid mygid zero Could 17 18:22 /mnt/mydrive $ contact /mnt/mydrive/aaa $ ls -l /mnt/mydrive/aaa -rw------- 1 myuid mygid zero Could 17 18:39 /mnt/mydrive/aaa
$ ls -ld /mnt/mydrive/new drwx------ 2 myuid mygid zero Mar 10 2019 /mnt/mydrive/new $ contact /mnt/mydrive/new/aaa contact: can't contact '/mnt/mydrive/new/aaa': Permission denied
NAS is QNAP (spinoff of Linux/Samba for OS) and all shares have the identical set of credentials and R/W entry. The folders have been initially created by way of Home windows (in case that issues), nevertheless it applies to all the folders in query on all the drives – but solely this drive reveals this conduct.
Am I forgetting one thing? Is there one other ACL mechanism I’ve to keep in mind? Any assist can be appreciated!