From owner-freebsd-questions@FreeBSD.ORG Sun Sep 11 02:56:36 2011 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 E4977106566C for ; Sun, 11 Sep 2011 02:56:36 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 732AD8FC0A for ; Sun, 11 Sep 2011 02:56:36 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R2aDj-00006w-6t for freebsd-questions@freebsd.org; Sun, 11 Sep 2011 04:56:35 +0200 Received: from pool-173-79-85-36.washdc.fios.verizon.net ([173.79.85.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Sep 2011 04:56:35 +0200 Received: from nightrecon by pool-173-79-85-36.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Sep 2011 04:56:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Date: Sat, 10 Sep 2011 23:03:27 -0400 Lines: 60 Message-ID: References: <0EE458C34045A44DBC2CA2DC5CEB42B5232131B947@mercury.universe.galaxy.lcl> <20110911040939.78360716.freebsd@edvax.de> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-85-36.washdc.fios.verizon.net Subject: Re: Samba question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Sep 2011 02:56:37 -0000 Polytropon wrote: > On Sat, 10 Sep 2011 11:53:48 +0100, Graeme Dargie wrote: >> I am trying to mount a samba share that is on a FreeBSD 8.2 >> server to another FreeBSD 8.2 server, >> >> Mount_smbfs -I //user@host/share /mountpoint >> >> It then asks for a password, I enter the users password >> and then get mount_smbfs: unable to open connection: >> syserr = Authentication error >> >> Dmesg is showing smb_co_lock: recursive lock for object 1 >> >> I have samba integrated with Active Directory, so I then thought >> ah maybe adding the user to AD would help, so I have done so >> using the same password etc still no joy, I have make sure the >> user has access rights on the samba share, restarted samba and >> the same error persists, any ideas ? > > Sorry, my indivudal knowledge on "Windows" related things > is very limited, but maybe you need to add some information > into /etc/nsmb.conf? > > Maybe like this: > > [default] > workgroup=YOUR_WORKGROUP_NAME > > [SERVERNAME] > addr=192.168.2.2 > > [SERVERNAME:USERNAME] > password=TOPSECRET > > where SERVERNAME and USERNAME correspond to the server's name > and the username you use to access the share (with the proper > password). > > See "man nsmb.conf" for details. > > Parts of those information should then be reflected in /etc/fstab, > maybe like this: > > //user@SERVERNAME/share /smb/share smbfs rw,noauto 0 0 > > This should allow you to use > > # mount /smb/share > > a bit easier (and automatically, if desired). > Although it has been ages since I played with this, one thing I do recall: It matters that where indicated above the characters _must_ be in upper case. When I used to use such a setup I found it wouldn't work without it. Never knew exactly quite why. -Mike