<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.16.2">
</HEAD>
<BODY>
Hi,<BR>
<BR>
Read this pdf:<BR>
<BR>
<A HREF="http://pserver.samba.org/samba/ftp/cifs-cvs/linux-cifs-client-guide.pdf">http://pserver.samba.org/samba/ftp/cifs-cvs/linux-cifs-client-guide.pdf</A><BR>
<BR>
<BR>
This contain all information about CIFS including your doubt.<BR>
<BR>
<BR>
<BR>
<BR>
On Sun, 2008-01-13 at 20:16 -0500, Arch Willingham wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">I took you advice and it worked...thanks! In the FWIW department, here is what I did (if you see anything wrong, please holler):</FONT>

<FONT COLOR="#000000">1. Opened file /etc/auto.master and added this to the bottom:</FONT>
<FONT COLOR="#000000">/mnt/samba /etc/auto.samba -t=120</FONT>


<FONT COLOR="#000000">2. Made a file called /etc/auto.smb.SAMPLEHOSTNAME and added this to the inside:</FONT>

<FONT COLOR="#000000">username=samplesambauser</FONT>
<FONT COLOR="#000000">password=the password you want to use</FONT>

<FONT COLOR="#000000">3. Made a file called  /etc/auto.samba</FONT>
<FONT COLOR="#000000">windows -fstype=cifs,credentials=/etc/auto.smb.SAMPLEHOSTNAME ://SAMPLEHOSTNAME/SHARENAME</FONT>


<FONT COLOR="#000000">4. chmod 600 /etc/auto.smb.SAMPLEHOSTNAME</FONT>

<FONT COLOR="#000000">5. /etc/init.d/autofs restart</FONT>


<FONT COLOR="#000000">6. Ran this to see if it works</FONT>
<FONT COLOR="#000000">ls -als /mnt/samba/windows</FONT>


<FONT COLOR="#000000">Thanks!</FONT>

<FONT COLOR="#000000">Arch</FONT>

<FONT COLOR="#000000">-----Original Message-----</FONT>
<FONT COLOR="#000000">From: <A HREF="mailto:fedora-list-bounces@redhat.com">fedora-list-bounces@redhat.com</A></FONT>
<FONT COLOR="#000000">[<A HREF="mailto:fedora-list-bounces@redhat.com">mailto:fedora-list-bounces@redhat.com</A>]On Behalf Of Craig White</FONT>
<FONT COLOR="#000000">Sent: Sunday, January 13, 2008 12:31 PM</FONT>
<FONT COLOR="#000000">To: For users of Fedora</FONT>
<FONT COLOR="#000000">Subject: Re: How to mount a SAMBA directory at boot with FC8?</FONT>


<FONT COLOR="#000000">On Sun, 2008-01-13 at 12:24 -0500, Arch Willingham wrote:</FONT>
<FONT COLOR="#000000">> I have read a bunch of stuff on how to do this but the exact steps are</FONT>
<FONT COLOR="#000000">> unclear. Some articles say to use the "mount -t smbfs -o</FONT>
<FONT COLOR="#000000">> username=username //winclient/blahblah /mnt/winclient-blahblah", some</FONT>
<FONT COLOR="#000000">> say to use "smbmount" and some say not to use cifs (mount -t cifs -o</FONT>
<FONT COLOR="#000000">> username=netuser,password=hiddenword //windowsmachine/origin /home/username/destination). Which one is the best?</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> Then there is the while issue of the fstab thing.</FONT>
<FONT COLOR="#000000">> </FONT>
<FONT COLOR="#000000">> What I want to do is mount a directory on a windows machine at boot</FONT>
<FONT COLOR="#000000">> time (I.E> when the Linux machine boots). I want all users to be able</FONT>
<FONT COLOR="#000000">> to have the local directory \images be re-routed to a directory on a</FONT>
<FONT COLOR="#000000">> windows machine. I see some of the commands but each has the mount</FONT>
<FONT COLOR="#000000">> command that shows the password to get to the windows machine. Is</FONT>
<FONT COLOR="#000000">> there any way to get the password from a file so that all users of the</FONT>
<FONT COLOR="#000000">> Linux machine can't see the password?</FONT>
<FONT COLOR="#000000">----</FONT>
<FONT COLOR="#000000">put it in root's subdirectory.</FONT>

<FONT COLOR="#000000">You might however want to check out autofs</FONT>

<FONT COLOR="#000000">Craig</FONT>

<FONT COLOR="#000000">-- </FONT>
<FONT COLOR="#000000">fedora-list mailing list</FONT>
<FONT COLOR="#000000"><A HREF="mailto:fedora-list@redhat.com">fedora-list@redhat.com</A></FONT>
<FONT COLOR="#000000">To unsubscribe: <A HREF="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</A></FONT>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>