From owner-freebsd-questions@FreeBSD.ORG Mon May 4 18:09:49 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BA1F10656C0 for ; Mon, 4 May 2009 18:09:49 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.188]) by mx1.freebsd.org (Postfix) with ESMTP id EF6A98FC14 for ; Mon, 4 May 2009 18:09:48 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by gv-out-0910.google.com with SMTP id n8so82839gve.39 for ; Mon, 04 May 2009 11:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=MMJ7I3vBhKnoFxTuUvtlTES/ZCjCZSI62w1OM5hkuNo=; b=S7YJffzQPVT6kxqdkU2ABpDSwV2Dkc+GYzIo5UdrZFM0UHd2TID2IB0NVWZ+G9I/OW zq41jaELGU8gs5Wz51X4VWB4Y10VPNAuFEjlsQ1JvnSPJ12SwdCFO061iJpxvGZz9wdx WLaPDurhjvFr2G9Yn3KzP2i0UbLvCpJ81j0p0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=bpL0FuDeemh6jlQNU+6z0BpcvU8BaTxKhWkpDBlCgbxTaAvgtCVeh7B10C4yypIeag AmKAYT2xZqLT3zOxWYYK7vZHp4JZEaVubKqPWmk/vTsMupL46LzAuU7WXl1ECeFLvF3v bA1UzTiNVPkhYge1txpsLA/catGxP6KPhdrpU= MIME-Version: 1.0 Received: by 10.220.98.201 with SMTP id r9mr9685063vcn.78.1241460587202; Mon, 04 May 2009 11:09:47 -0700 (PDT) In-Reply-To: <200905040959.13354.ray@stilltech.net> References: <093DA668CFE5964490CB291025DFE56E026AF81E06@SM-AM-EX-01.am.sdimediagroup.com> <200905040959.13354.ray@stilltech.net> From: Tim Judd Date: Mon, 4 May 2009 12:09:32 -0600 Message-ID: To: Ray Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Cannot mount smbfs share without requiring manual password X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 May 2009 18:09:49 -0000 On Mon, May 4, 2009 at 9:59 AM, Ray wrote: > On May 4, 2009 09:31:09 am Ryan van Eerdewijk wrote: > > Hi, > > > > I have a strange issue. If I type: > > > > mount_smbfs //theuser@theserver/myshare$ /mnt/here > > > > ... I will be prompted for theuser's password, I type it, and the share > > will mount fine. But I want this share to mount automatically at bootup. > I > > haven't been able to get it to work through /etc/fstab or through an sh > > script. In fact typing: > > > > mount_smbfs -N //theuser@theserver/myshare$ /mnt/here > > > > gives me the following error: > > > > mount_smbfs: unable to open connection: syserr = Authentication error > > > > I have the following in my /etc/nsmb.conf file: > > > > [theserver] > > workgroup=MYWORKGROUP > > addr=10.10.10.10 > > > > [theserver:theuser] > > password=$$1571crypto'dpassword > > > > I get the feeling that when mounting the smbfs share, it isn't even > > checking the nsmb.conf file. I've also tried a plain text password, and > > also including the same information in a /root/.nsmbrc file. > > > > I'm running out of ideas. Any help is appreciated. > > > > Thanks > > > > Ryan V. > > Hi Ryan, > What You have is very similar to what I use, except I don't use the -N > Flag > on mount_smbfs. > Ray > A friend recently had this problem and it was due to capitalization. IIRC, the username in the nsmb.conf file needs to be in all caps, whereas the username that is given to the server is actually lowercase, or vice versa. It was found by a google search and just due to caps alone. Try toggling the caps, I know, odd fix, but it worked for my friend --Tim