I have an NTFS partition that I want to mount using
/etc/fstab. I don't want any files to have executable permissions on this drive, so I wrote the following rule:
/dev/sda2 /media/sharedfolder ntfs auto,user,noatime,noexec,rw,async 0 0
However, I don't believe this will prevent files from being created with executable permissions. It will simply prevent them from being executed. Perhaps this is fine, but is it possible to remove all executable permissions from newly created files on this partition using an
fmask be enough, like this rule?
/dev/sda2 /media/sharedfolder ntfs auto,user,noatime,noexec,rw,async,umask=0111, 0 0
I'm unsure because Wikipedia lists
umask as an option specific to the FAT filesystem.