How to mount a SAMBA directory at boot with FC8?
Marcelo de Souza Sant'Anna
marcelo.santanna at gmail.com
Mon Jan 14 11:50:28 UTC 2008
Hi,
Read this pdf:
http://pserver.samba.org/samba/ftp/cifs-cvs/linux-cifs-client-guide.pdf
This contain all information about CIFS including your doubt.
On Sun, 2008-01-13 at 20:16 -0500, Arch Willingham wrote:
> I took you advice and it worked...thanks! In the FWIW department, here is what I did (if you see anything wrong, please holler):
>
> 1. Opened file /etc/auto.master and added this to the bottom:
> /mnt/samba /etc/auto.samba -t=120
>
>
> 2. Made a file called /etc/auto.smb.SAMPLEHOSTNAME and added this to the inside:
>
> username=samplesambauser
> password=the password you want to use
>
> 3. Made a file called /etc/auto.samba
> windows -fstype=cifs,credentials=/etc/auto.smb.SAMPLEHOSTNAME ://SAMPLEHOSTNAME/SHARENAME
>
>
> 4. chmod 600 /etc/auto.smb.SAMPLEHOSTNAME
>
> 5. /etc/init.d/autofs restart
>
>
> 6. Ran this to see if it works
> ls -als /mnt/samba/windows
>
>
> Thanks!
>
> Arch
>
> -----Original Message-----
> From: fedora-list-bounces at redhat.com
> [mailto:fedora-list-bounces at redhat.com]On Behalf Of Craig White
> Sent: Sunday, January 13, 2008 12:31 PM
> To: For users of Fedora
> Subject: Re: How to mount a SAMBA directory at boot with FC8?
>
>
> On Sun, 2008-01-13 at 12:24 -0500, Arch Willingham wrote:
> > I have read a bunch of stuff on how to do this but the exact steps are
> > unclear. Some articles say to use the "mount -t smbfs -o
> > username=username //winclient/blahblah /mnt/winclient-blahblah", some
> > say to use "smbmount" and some say not to use cifs (mount -t cifs -o
> > username=netuser,password=hiddenword //windowsmachine/origin /home/username/destination). Which one is the best?
> >
> >
> > Then there is the while issue of the fstab thing.
> >
> > What I want to do is mount a directory on a windows machine at boot
> > time (I.E> when the Linux machine boots). I want all users to be able
> > to have the local directory \images be re-routed to a directory on a
> > windows machine. I see some of the commands but each has the mount
> > command that shows the password to get to the windows machine. Is
> > there any way to get the password from a file so that all users of the
> > Linux machine can't see the password?
> ----
> put it in root's subdirectory.
>
> You might however want to check out autofs
>
> Craig
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080114/8e84d8aa/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080114/8e84d8aa/attachment-0001.sig>
More information about the fedora-list
mailing list