LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 03-01-2005, 03:05 AM   #1
lewkh
Member
 
Registered: Oct 2004
Posts: 69

Rep: Reputation: 15
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
 
Old 03-01-2005, 03:31 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 32
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
SAMBA Public Share Folder Echo Kilo Linux - Software 3 06-17-2008 01:32 AM
Cannot mount samba share from windows XP Astro Linux - Software 2 12-18-2004 11:26 AM
Can't mount Samba share dir in Windows XP wycolorado Linux - Software 22 10-22-2004 06:35 AM
can't mount to windows share folder using samba yawhum80 Linux - Software 4 10-24-2003 11:52 PM


All times are GMT -5. The time now is 01:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration