From owner-freebsd-questions Sat Nov 2 2:20:47 2002 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 F422437B401 for ; Sat, 2 Nov 2002 02:20:45 -0800 (PST) Received: from iota.root-servers.ch (iota.root-servers.ch [193.41.193.195]) by mx1.FreeBSD.org (Postfix) with SMTP id A1F7843E88 for ; Sat, 2 Nov 2002 02:20:44 -0800 (PST) (envelope-from gaml@buz.ch) Received: (qmail 9100 invoked from network); 2 Nov 2002 10:20:31 -0000 Received: from dclient217-162-94-137.hispeed.ch (HELO gaxp1800.root.li) (217.162.94.137) by 0 with SMTP; 2 Nov 2002 10:20:31 -0000 Date: Sat, 2 Nov 2002 11:20:59 +0100 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.60q) Educational Reply-To: Gabriel Ambuehl X-Priority: 3 (Normal) Message-ID: <69140523578.20021102112059@buz.ch> To: questions@freebsd.org Subject: mount_smbfs broken? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I'm trying to use mount_smbfs -N to get it to read the password from /root/.nsmbrc: # A simple configuration example: # First, define a workgroup. [default] workgroup=datasvr # The 'FSERVER' is an NT server. [datasvr] addr=IP [datasvr:mailbackup:mail_backup] # use persistent password cache for user 'mailbackup' password=$$XXXXXXXXXXXXXXXXxxx workgroup=datasvr Whereas datasvr is the netbios name of the W2K server, mailbackup the username and mail_backup the share in question (just don't ask why I need to backup my "secure" mail server on a 2K box) and the password was made with smbutil crypt. Upon invocation of #mount_smbfs -N -I IP //mailbackup@datasvr/mail_backup /mnt I end up with mount_smbfs: unable to open connection: syserr = Authentication error If I use mount_smbfs -I IP //mailbackup@datasvr/mail_backup /mnt I get prompted for a password and it will work perfectly. However, that's not an option to me as I need to mount the share at boottime. A grep through mount_smbfs.c didn't even find a N option although there might be some case insentivity trickery going on I didn't take into account. So my question boils down to: how can I get mount_smbfs to read the PW from the file? And why doesn't mount_smbfs fail if it is invoked with the -N argument but is unable to read the .nsmbrc file? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message