From owner-freebsd-questions@FreeBSD.ORG Mon Feb 9 05:43:58 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D189F16A4CE for ; Mon, 9 Feb 2004 05:43:58 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED93F43D1D for ; Mon, 9 Feb 2004 05:43:57 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 5528 invoked from network); 9 Feb 2004 13:43:56 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 9 Feb 2004 13:43:56 -0000 Date: Mon, 9 Feb 2004 15:45:42 +0200 From: Ion-Mihai Tetcu To: vext01 , questions@freebsd.org Message-Id: <20040209154542.146e844d@it.buh.cameradicommercio.ro> In-Reply-To: <200402091318.i19DIEc23594@server1.web-mania.com> References: <20040207184946.0652058c@it.buh.cameradicommercio.ro> <200402091318.i19DIEc23594@server1.web-mania.com> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: mount a smb filesystem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 13:43:58 -0000 [ cc'ed back to questions ] On Mon, 9 Feb 2004 13:18:14 GMT vext01 wrote: > > i has this problem. > You must use /etc/nsmb.conf > > See the man page! Thanks. > >However, if I have the password in /root/.nsmbrc, the mount /vol/fnan/d > >doesn't promt for password. So it seems that entries in > >/usr/local/etc/nsmb.conf aren't used as defaults, but only overrides the > >entries in ~/.nsmbrc. MOUNT_SMBFS(8) -N Do not ask for a password. At run time, mount_smbfs reads the ~/.nsmbrc file for additional configuration parameters and a password. If no password is found, mount_smbfs prompts for it. FILES ~/.nsmbrc Keeps static parameters for connections and other information. See /usr/share/examples/smbfs/dot.nsmbrc for details. Well, from /usr/share/examples/smbfs/dot.nsmbrc : # smbfs lookups configuration files in next order: # 1. ~/.nsmbrc # 2. /usr/local/etc/nsmb.conf - if this file found it will # override values with same keys from user files. But indeed from NSMB.CONF(5): FILES /etc/nsmb.conf The default remote mount-point configuration file. So I guess this is left over from the times when mount_smbfs was not in the base system. I'm curious what file it use if one uses samba. -- IOnut Unregistered ;) FreeBSD user