I'm trying to mount a NAS share using CIFS in Ubuntu 14.04. This is my personal share and I'd like to make sure that files are readable only by me and not by anyone else logged in. So ideally, I'd like to use something like a
umask=... in my
mount command to make sure that files and directories always show up with their group and other permissions set to 0.
umask parameter is not supported by
mount.cifs. The command offers two other arguments (
dir_mode) but those seem to only have effect on newly created files, as no matter what values I specify, the files and directories on my mounted share always show up with mode 0777.
Is there any trick to force specific permission on mounted files and directories (short of making the parent of mount directory mode