From owner-freebsd-questions@FreeBSD.ORG Sat Feb 7 08:47:59 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 98D9E16A4CE for ; Sat, 7 Feb 2004 08:47:59 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id B472D43D1D for ; Sat, 7 Feb 2004 08:47:58 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 8218 invoked from network); 7 Feb 2004 16:47:57 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 7 Feb 2004 16:47:57 -0000 Date: Sat, 7 Feb 2004 18:49:46 +0200 From: Ion-Mihai Tetcu To: "HOLLOW, CHRISTOPHER" Message-Id: <20040207184946.0652058c@it.buh.cameradicommercio.ro> In-Reply-To: <40240DFA.3020608@cgi.com> References: <009c01c3ecf6$17aa69e0$0701a8c0@darryl> <40240DFA.3020608@cgi.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 cc: freebsd-questions@freebsd.org 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: Sat, 07 Feb 2004 16:47:59 -0000 On Fri, 06 Feb 2004 16:58:18 -0500 "HOLLOW, CHRISTOPHER" wrote: > Try: > > > //servername/sharename /mountdirectory smbfs > username=windowsuserename,password=windowspassword 0 0 On my 5.2CURRENT: 1. with one of the following in fstab: //itetcu@fnan/d /vol/fnan/d smbfs rw,noauto,username=itetcu,password=q 0 0 //itetcu@fnan/d /vol/fnan/d smbfs rw,noauto,password=q 0 0 //fnan/d /vol/fnan/d smbfs rw,noauto,username=itetcu,password='q' 0 0 //fnan/d /vol/fnan/d smbfs rw,noauto,username=itetcu,password=qcc 0 0 etc. I get: itetcu@it> /tmp [18:38:45] 0 # mount /vol/fnan/d smbfs: -o username=: option not supported Having in fstab: //itetcu@fnan/d /vol/fnan/d smbfs rw,noauto 0 0 and in /usr/local/etc/nsmb.conf : [FNAN:ITETCU:D] password=q results in: itetcu@it> /tmp [18:42:22] 0 # mount /vol/fnan/d Password: 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. > HTH, > > Christopher Hollow > > > Darryl Hoar wrote: > > >Greetings, > >If you put a line like: > > > >//guest@myserver/misc /test smbfs ro,noauto 0 0 > > > >in /etc/fstab, is there a way to specify the pasword so that when you > >mount the filesystem, it doesn't prompt for the password ? > > > >I see that mount_smbfs uses .nsmbrc, but that has no effect when > >you use fstab. > > > >any help greatly appreciated. > > > >-Darryl -- IOnut Unregistered ;) FreeBSD user