On 6/19/06, Yashpal Nagar <[EMAIL PROTECTED]> wrote: > > Hi > We use smbmount to mount certain windows shares as by rc.local on a > Redhat FC3 box as: > /bin/mount -t smbfs -o > username=Administrator,password=xxx,uid=userid,gid=ftpusers > //xxx.xxx.xxx.xxx/share /data/share/ & > Now the problem is after sometime this get hanged due to either windows > m/c gets rebooted or some time-out don't exactly know . > Is there any nice other way around to get sync again smb shares in such > cases? > > a automount dir for ftp home dir would work ? just guessing!? > > > Regards, > Yash > > hey,
If your shares are static then you can add entries in /etc/fstab for these shares for example //server/backup (windows machine) /mnt/backup(linux mount point) cifs credentails=/etc/.smb,uid=xx,gid=xxx 0 0 credentials=filename specifies a file that contains a username and/or password. The format of the file is: username=value username=ankush password=value password=ankush This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any creden- tials file properly. Make sure /etc/.smb is 600 or 400 for more information regarding cifs "man mount.cifs" Regards Ankush Grover _______________________________________________ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/