From nobody@FreeBSD.org  Thu Sep  5 23:46:51 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7A46137B400
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  5 Sep 2002 23:46:51 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3FC7043E75
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  5 Sep 2002 23:46:51 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g866kmOT015151
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 5 Sep 2002 23:46:48 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g866km6D015150;
	Thu, 5 Sep 2002 23:46:48 -0700 (PDT)
Message-Id: <200209060646.g866km6D015150@www.freebsd.org>
Date: Thu, 5 Sep 2002 23:46:48 -0700 (PDT)
From: Dmitriy Reka <dima@sinsoft.com.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mount_smbfs incorrectly handled configuration file
X-Send-Pr-Version: www-1.0

>Number:         42468
>Category:       bin
>Synopsis:       mount_smbfs incorrectly handled configuration file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 05 23:50:01 PDT 2002
>Closed-Date:    Mon Nov 06 09:31:39 GMT 2006
>Last-Modified:  Mon Nov 06 09:31:39 GMT 2006
>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:

From: Vallo Kallaste <vallo@estcard.ee>
To: Dmitriy Reka <dima@sinsoft.com.ua>
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 <dima@sinsoft.com.ua> 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

From: Bob Bishop <rb@gid.co.uk>
To: freebsd-gnats-submit@FreeBSD.org, dima@sinsoft.com.ua
Cc: vallo@estcard.ee
Subject: Re: misc/42468: mount_smbfs incorrectly handled configuration
  file
Date: Fri, 06 Sep 2002 10:14:04 +0100

 TFM says: "At run time, mount_smbfs reads the ~/.nsmbrc file for additional 
 configuration parameters and a password." and my experience is that putting 
 it in nsmb.conf simply doesn't work.
 
 --
 Bob Bishop		    +44 (0)118 977 4017
 rb@gid.co.uk		fax +44 (0)118 989 4254
 

From: Vallo Kallaste <vallo@estcard.ee>
To: Bob Bishop <rb@gid.co.uk>
Cc: freebsd-gnats-submit@FreeBSD.org, dima@sinsoft.com.ua,
	vallo@estcard.ee
Subject: Re: misc/42468: mount_smbfs incorrectly handled configuration file
Date: Fri, 6 Sep 2002 12:49:15 +0300

 On Fri, Sep 06, 2002 at 10:14:04AM +0100, Bob Bishop <rb@gid.co.uk> wrote:
 
 > TFM says: "At run time, mount_smbfs reads the ~/.nsmbrc file for additional 
 > configuration parameters and a password." and my experience is that putting 
 > it in nsmb.conf simply doesn't work.
 
 I did setup one 4.6-stable box ~two weeks ago. It's my experience
 that workgroup and password variables put into /etc/nsmb.conf did
 work but not in /usr/local/etc/nsmb.conf. Can't say anything about
 rcfile in $HOME, I was more interested getting boot-time smbfs
 mounts working and as I understand, root's $HOME/.nsmbrc has no
 relevance in the boot-time smbfs mounting process.
 -- 
 
 Vallo Kallaste
 vallo@estcard.ee

From: Bob Bishop <rb@gid.co.uk>
To: vallo@estcard.ee
Cc: freebsd-gnats-submit@FreeBSD.org, dima@sinsoft.com.ua,
	vallo@estcard.ee
Subject: Re: misc/42468: mount_smbfs incorrectly handled configuration
  file
Date: Fri, 06 Sep 2002 10:58:03 +0100

 At 10:49 6/9/02, Vallo Kallaste wrote:
 >[...]I was more interested getting boot-time smbfs
 >mounts working and as I understand, root's $HOME/.nsmbrc has no
 >relevance in the boot-time smbfs mounting process.
 
 I'm getting boot-time mounts using root's $HOME/.nsmbrc in conjunction with 
 -N in fstab.
 
 --
 Bob Bishop		    +44 (0)118 977 4017
 rb@gid.co.uk		fax +44 (0)118 989 4254
 

From: Vallo Kallaste <vallo@estcard.ee>
To: Bob Bishop <rb@gid.co.uk>
Cc: vallo@estcard.ee, freebsd-gnats-submit@FreeBSD.org,
	dima@sinsoft.com.ua
Subject: Re: misc/42468: mount_smbfs incorrectly handled configuration file
Date: Fri, 6 Sep 2002 14:10:27 +0300

 On Fri, Sep 06, 2002 at 10:58:03AM +0100, Bob Bishop <rb@gid.co.uk> wrote:
 
 > At 10:49 6/9/02, Vallo Kallaste wrote:
 > >[...]I was more interested getting boot-time smbfs
 > >mounts working and as I understand, root's $HOME/.nsmbrc has no
 > >relevance in the boot-time smbfs mounting process.
 > 
 > I'm getting boot-time mounts using root's $HOME/.nsmbrc in conjunction with 
 > -N in fstab.
 
 I didn't use -N if that matters.  It all ended up with some
 shellscript in /usr/local/etc/rc.d and /etc/nsmb.conf file for
 definitions of workgroup, netbios nameserver and password. The
 fstab had no chanche after repeated failures. Yes I understand it's
 probably configuration error somewhere, but the system in question
 is completely out of my reach. Will do some experiments tomorrow
 as I have spare -stable machine lying on my desk (yet again :-).
 -- 
 
 Vallo Kallaste
 vallo@estcard.ee
State-Changed-From-To: open->closed 
State-Changed-By: bp 
State-Changed-When: Mon Nov 6 09:22:25 UTC 2006 
State-Changed-Why:  
In the all recent versions of FreeBSD system wide 
configuration file located as /etc/nsmb.conf. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42468 
>Unformatted:
