Date: Fri, 09 May 2008 16:22:18 +0100 From: Stephen Allen <sdafreebsduk@rowyerboat.com> To: freebsd-questions@freebsd.org Subject: Re: Questions from a Total samba Novice. Message-ID: <48246C2A.4050508@rowyerboat.com> In-Reply-To: <200805091333.m49DXSC1091714@dc.cis.okstate.edu> References: <200805091333.m49DXSC1091714@dc.cis.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
(forgot to send to list the first time)
Hi Martin,
You don't need samba if all you want to do is copy files from FreeBSD to
a Windows system. The easiest way to do it is to mount an existing
Windows share, on FreeBSD. This will give you access to the Windows
share, but nothing is shared out on your FreeBSD box.
Let's assume you have a non-protected share (called MYSHARE) on a
Windows server called FRED. Let's also assume you have prepared a mount
point on FreeBSD for this share, called /mnt/fred.
All you need to do is:
$ mount -t smbfs //FRED/MYSHARE /mnt/fred
If you need to specify a username/password combo to access the share, try:
$ mount -t smbfs //USER@FRED/MYSHARE /mnt/fred
You will need to input a password, but if you want to save the password
so it's used automatically, use /etc/nsmb.conf (see the man page), but
here's an example.
[SNAP-CMS]
addr=192.168.0.4
[SNAP-CMS:BACKUP]
password=$$14b5d4732371b1c00e5d2f5cd96
The hashed password was created by using 'smbutil crypt' and inputting
the real password (see the man page).
Obviously you need to make sure the permissions on /etc/nsmb.conf are
secure.
If you want it to automount at startup, then /etc/fstab could contain:
//USER@FRED/MYSHARE /mnt/fred smbfs rw 0 0
Cheers,
Steve :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48246C2A.4050508>
