Mounting of windowsshare on startup
During startup of a Linux client I want to automatically mount the windows-share of the LAN.
Now I do it manually after startup with : #mount -t smbfs //fileserver/compartiendo /mnt/comp -o username=.....password=.. Where can I place such a line in the Linux client (fedora 3) to let it be done automatically? |
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 'credentials=/etc/sharepasswd' 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. |
Works excellent, thanks!!
|
All times are GMT -5. The time now is 09:10 PM. |