I think that you need a line in your fstab that looks like this
//windowsmachinename/folder /mnt/folder smbfs username=usr,password=pass,dmask=0077,fmask=0066,_netdev 0 0
The _netdev option is a good idea for network shares, It defers mounting the share until the network is up.
Because the /etc/fstab is world readable, you might want to use
as one of the options rather than password=pass.
I think that using separate dmask and fmask options for VFAT and smbfs mounts is preferable to using umask. In a mount command, the umask is different than the shell setting. For public shares, it is best for security reasons not to allow program execution. This can be done with either the noexec option or masking out the 'x' permission in the fmask option. But the 'x' permission bit has a different usage for directories. It allows/denies entering the directory.
Last edited by jschiwal; 05-09-2005 at 05:42 PM.