LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   samba mount to windows share folder (https://www.linuxquestions.org/questions/red-hat-31/samba-mount-to-windows-share-folder-296165/)

lewkh 03-01-2005 03:05 AM

samba mount to windows share folder
 
Hi, I got a problem with using setting up /etc/fstab to connect windows share folder. I can use following command:

mount -t smbfs -o username=xxx,password=xxx //windows/sharefolder /linuxmountpoint

The above command have no problem.

My problem is how to use fstab to mount it automatically????

Please help!!!1

rtspitz 03-01-2005 03:31 PM

put something like this into your fstab (one single line):

//server/folder /target smbfs credentials=/etc/samba/cred-file,uid=some_user,gid=users,fmask=0770,dmask=0770 0 0

the file /etc/samba/cred-file must contain:

username some_user
password right_password

the file-permissions for this file should be root.root and 700


All times are GMT -5. The time now is 12:24 PM.