On my Ubuntu machine I am mounting a CIFS
share by having the following in my /etc/fstab
//netgear0/photos /media/netgear0-photos cifs credentials=/home/bob/passwd/netgear0-smb-cred,iocharset=utf8,uid=1000,gid=1000,rw 0 0
This mounts the share correctly and appears like this:
drwxr-xr-x 1 bob bob 0 2011-10-10 07:25 netgear0-photos
However I would like to alter the permissions on just the mount point directory to 700
so that only bob
can see the files in the mount point. I have tried setting the permissions on the directory before mounting but this gets replaced during mount. I can find options for altering the permissions inside the mount point, but not for altering the mount point its self.