From owner-freebsd-questions@freebsd.org Wed Oct 25 09:23:49 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 9D4D9E43DE1 for ; Wed, 25 Oct 2017 09:23:49 +0000 (UTC) (envelope-from ftp51246-2575596@sh4-5.1blu.de) Received: from sh4-5.1blu.de (sh4-5.1blu.de [178.254.11.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 64BC063C11 for ; Wed, 25 Oct 2017 09:23:49 +0000 (UTC) (envelope-from ftp51246-2575596@sh4-5.1blu.de) Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.86_2) (envelope-from ) id 1e7HPF-0007v0-KV for freebsd-questions@freebsd.org; Wed, 25 Oct 2017 10:51:21 +0200 Date: Wed, 25 Oct 2017 10:51:21 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: smbclient(1) works, but mount_smbfs(8) does not Message-ID: <20171025085121.GA27022@sh4-5.1blu.de> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.5.24 (2015-08-30) 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 09:23:49 -0000 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 -- Matthias Apitz | /"\ ASCII Ribbon Campaign: E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-176-38902045 | / \ - Respect for open standards | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign