From owner-freebsd-questions@freebsd.org Wed Oct 25 12:29:17 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DF81E48BE5; Wed, 25 Oct 2017 12:29:17 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.net (24-240-198-190.static.stls.mo.charter.com [24.240.198.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.dweimer.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1DF7C6AB68; Wed, 25 Oct 2017 12:29:14 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from www.dweimer.net (ugs-3p.dweimer.local [10.9.5.254]) (authenticated bits=0) by webmail.dweimer.net (8.15.2/8.15.2) with ESMTPSA id v9PCTCK8056559 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 25 Oct 2017 07:29:13 -0500 (CDT) (envelope-from dweimer@dweimer.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dweimer.net; s=2017.01.31; t=1508934553; bh=yFFdwLAe0Pvk/O22NdOrQtHk73/WP1OBQR0vYZoEZPg=; h=Date:From:To:Cc:Subject:Reply-To:In-Reply-To:References; b=DG9PeJgN2LUX3TGIT1O/Ml5gvuy/edJPt1bV5TzyBpQgSHsuqreGYUOWXbch7I5n+ xTU40aVzUVfTm36oD1QNgpE66RDVeBP23r4rD9JyiyZcfTXhe2vcbDqUsTigttu+UP E3yc93M9KfnljLdRiL9UuVsV+u87S/bVvlmFoBagCUX7ADaoAPKJy4fvMEcJh8GVDm VQsNMEboWcQDHQaWB8Hb1tSBXOgeXqXv/+SgLCQzbvPu+7EBBIo3xo8Rtxc0fMnj8x 0QOpPcWMBSU1VmDspicswVKqSsbM9DMV/7fXRa4d7vyK1sAh6Pl/jchTLDa5Pw90wJ AVSEtNw/pCr0g== MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 25 Oct 2017 07:29:12 -0500 From: "Dean E. Weimer" To: Matthias Apitz , freebsd-questions@freebsd.org Cc: owner-freebsd-questions@freebsd.org Subject: Re: smbclient(1) works, but mount_smbfs(8) does not Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net In-Reply-To: <20171025085121.GA27022@sh4-5.1blu.de> References: <20171025085121.GA27022@sh4-5.1blu.de> Message-ID: X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.3.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2017 12:29:17 -0000 On 2017-10-25 3:51 am, Matthias Apitz wrote: > Hello, > > At work I have a FreeBSD 12-CURRENT in a VirtualBox on top of Windows > and I was used to use mount_smbfs(8) to mount the Windows onto my > FreeBSD without any problem. From one day to the other it stopped > working and gives Authentication error. I have not changed any > credentials or the like. > > I'm happy to see, that smbclient(1) works still fine, using the same > credentials: > > $ cat .smbpw > username = apitzm > password = SantaClXXXXXXXXXXXX > domain = company > $ smbclient //APITZM-LTOH/apitzm -A .smbpw -I 10.49.8.30 > Domain=[company] OS=[Windows 7 Professional 7601 Service Pack 1] > Server=[Windows 7 Professional 6.1] > smb: \> > > es geht nicht mit: > > # mount_smbfs -I 10.49.8.30 -u guru -g wheel > //apitzm@APITZM-LTOH/apitzm /win > Password: > mount_smbfs: unable to open connection: syserr = Authentication error > > I have no access to the servers behind my workstation. > In the truss of mount_smbfs the failing looks like this: > > ... > openat(AT_FDCWD,"/dev/nsmb",O_RDWR,00) = 3 (0x3) > ioctl(3,SMBIOC_LOOKUP,0xffffdc38) ERR#80 'Authentication > error' > write(2,"mount_smbfs: ",13) = 13 (0xd) > write(2,"unable to open connection",25) = 25 (0x19) > > I have no access to the servers behind my workstation. Any idea what > could be the reason. Maybe I could compile a debug version of > mount_smbfs to see what is in the struct of the ioctl(2) call... > > Thanks > > matthias Did NTLM version 1 get disabled on your Windows system? mount_smbfs doesn't support NTLM version 2, but smbclient does. -- Thanks, Dean E. Weimer http://www.dweimer.net/