From owner-freebsd-stable@FreeBSD.ORG Wed Aug 6 15:08:53 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82BA737B401 for ; Wed, 6 Aug 2003 15:08:53 -0700 (PDT) Received: from mailgw2a.lmco.com (mailgw2a.lmco.com [192.91.147.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7F9143F75 for ; Wed, 6 Aug 2003 15:08:52 -0700 (PDT) (envelope-from brandon.h.fosdick@lmco.com) Received: from emss01g01.ems.lmco.com ([129.197.181.54]) by mailgw2a.lmco.com (8.11.6p2/8.11.6) with ESMTP id h76M8o130855; Wed, 6 Aug 2003 18:08:51 -0400 (EDT) Received: from CONVERSION-DAEMON.lmco.com by lmco.com (PMDF V6.1-1 #40643) id <0HJ700201WIKG1@lmco.com>; Wed, 06 Aug 2003 15:08:09 -0700 (PDT) Received: from lmco.com ([129.197.81.207]) by lmco.com (PMDF V6.1-1 #40643) with ESMTP id <0HJ7003PEX2L13@lmco.com>; Wed, 06 Aug 2003 14:59:09 -0700 (PDT) Date: Wed, 06 Aug 2003 14:59:09 -0700 From: Brandon Fosdick In-reply-to: <20030806192442.GA49129@iclub.nsu.ru> To: Max Khon Message-id: <3F317A2D.1030106@lmco.com> Organization: Lockheed Martin MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030524 References: <3F313594.7030404@lmco.com> <20030806192442.GA49129@iclub.nsu.ru> cc: stable@freebsd.org Subject: Re: More mount_smbfs X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2003 22:08:53 -0000 Max Khon wrote: > hi, there! > > On Wed, Aug 06, 2003 at 10:06:28AM -0700, Brandon Fosdick wrote: > > >>Thanks to Will Saxon I'm finally able to mount Samba shares on my 5.1-R >>box using the command >> >>mount_smbfs -I 129.197.36.34 -W acct01 //bfosdick@129.197.36.34/net-11 >>/sp/net-11 >> >>which then prompts me for my password. So now the question is...how do I >>put this in /etc/fstab? What do I do about the password? > > look in /etc/nsmb.conf for examples. passwords should be encrypted > by 'smbutil crypt' I can get everything to work expect for the password part. With this in /etc/fstab //bfosdick@129.197.36.34/net-11 /sp/net-11 smbfs rw 0 0 and this in /etc/nsmb.conf [129.197.36.34] addr=129.197.36.34 workgroup=acct01 password= If I do 'mount /sp/net-11' it asks me for my password instead of looking in the config file. If I try 'mount_smbfs -N //bfosdick@129.197.36.34/net-11' I get mount_smbfs: unable to open connection: syserr = Authentication error The password I put in /etc/nsmb.conf is just the output from smbutil crypt.