From owner-freebsd-questions@FreeBSD.ORG Fri May 9 15:22:29 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A4DC1065672 for ; Fri, 9 May 2008 15:22:29 +0000 (UTC) (envelope-from sdafreebsduk@rowyerboat.com) Received: from brookes.ac.uk (csmail1.brookes.ac.uk [161.73.1.23]) by mx1.freebsd.org (Postfix) with ESMTP id BA1D68FC1C for ; Fri, 9 May 2008 15:22:28 +0000 (UTC) (envelope-from sdafreebsduk@rowyerboat.com) Received: from [161.73.146.9] (izb6d318.brookes.ac.uk [161.73.146.9]) (authenticated bits=0) by brookes.ac.uk (8.14.2/8.14.2) with ESMTP id m49FMPvk019189 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 9 May 2008 16:22:25 +0100 (BST) Message-ID: <48246C2A.4050508@rowyerboat.com> Date: Fri, 09 May 2008 16:22:18 +0100 From: Stephen Allen User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200805091333.m49DXSC1091714@dc.cis.okstate.edu> In-Reply-To: <200805091333.m49DXSC1091714@dc.cis.okstate.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner-Information: Oxford Brookes University MailScanner X-MailScanner: Clean X-MailScanner-From: sdafreebsduk@rowyerboat.com X-Spam-Status: No Subject: Re: Questions from a Total samba Novice. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2008 15:22:29 -0000 (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 :)