From owner-freebsd-bugs Fri Sep 6 0:50:16 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26CF737B400 for ; Fri, 6 Sep 2002 00:50:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6B9043E6A for ; Fri, 6 Sep 2002 00:50:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g867o4JU095197 for ; Fri, 6 Sep 2002 00:50:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g867o4GR095196; Fri, 6 Sep 2002 00:50:04 -0700 (PDT) Date: Fri, 6 Sep 2002 00:50:04 -0700 (PDT) Message-Id: <200209060750.g867o4GR095196@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Vallo Kallaste Subject: Re: misc/42468: mount_smbfs incorrectly handled configuration file Reply-To: Vallo Kallaste Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/42468; it has been noted by GNATS. From: Vallo Kallaste To: Dmitriy Reka Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: misc/42468: mount_smbfs incorrectly handled configuration file Date: Fri, 6 Sep 2002 10:40:31 +0300 On Thu, Sep 05, 2002 at 11:46:48PM -0700, Dmitriy Reka wrote: > > >Number: 42468 > >Category: misc > >Synopsis: mount_smbfs incorrectly handled configuration file > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-bugs > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Thu Sep 05 23:50:01 PDT 2002 > >Closed-Date: > >Last-Modified: > >Originator: Dmitriy Reka > >Release: 4.6-STABLE > >Organization: > SUFSE > >Environment: > FreeBSD gw.sif.sumy.ua 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Jul 18 09:36:42 EEST 2002 dima@gw.sif.sumy.ua:/usr/src/sys/compile/SIF i386 > >Description: > mount_smbfs does not use password in configuration file when mounting from /etc/fstab > mount_smbfs reports: > smbfs: unable to open connection: syserr = Authentication error > >How-To-Repeat: > 1.add to /etc/fstab: > //username@servername/sharename /mnt smbfs rw,-N,-Iserverip 2 2 > 2.add to /usr/local/etc/nsmb.conf: > [default] > workgroup=domainname > > [servername:username] > charsets=koi8-r:cp866 > addr=serverip > password=plaintextpassword > 3.run in the shell: > mount /mnt > > >Fix: > 1.In the /etc/fstab: > remove -N switch > add noauto flag > 2.mount smbfs manually > >Release-Note: > >Audit-Trail: > >Unformatted: I've found by trial and error that /usr/local/etc is wrong place for nsmb.conf file. Use /etc/nsmb.conf and see what happens. The comment in /usr/share/examples/smbfs/dot.nsmbrc is at least confusing, there's actually /etc/nsmb.conf installed by default. -- Vallo Kallaste vallo@estcard.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message