From owner-freebsd-questions@freebsd.org Wed Oct 25 12:33:25 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 37E75E48FA4 for ; Wed, 25 Oct 2017 12:33:25 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F3D066B0E5 for ; Wed, 25 Oct 2017 12:33:24 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-io0-x22e.google.com with SMTP id i38so796324iod.2 for ; Wed, 25 Oct 2017 05:33:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7wvFNYxs43sdicPeuV3+aq6jDvWYqyrPozHGCt9rCwM=; b=QOyVNV+cYlSVr4SwSXGXDuNzyibO+wzDWQPELYNqxygClag2eK9ynxbny4/aBkP7Qv jwc+bYKU8mJjbh8mHtE+Hftw4loXIe0tlp0TY1fu9T2whVAE5H/tt/nqBjjerXt55R/0 Vo1iTvYx+GqDymK43XQuvo+HISC+QXoDX/a8sC/lJuYZWbofZ2aH9D+ZQGgbus6Ok2X6 awJ15HhdpISfT9E8MBwGu/HsAfK3yhwQ9td8tsziIAAGfSJ6ivn/xannaoxLz+VvEZPG gVKsUvU5ITyErKM19gWaO2QIhh9MzLF0S9wLXRILvPYV6v6EJbbuwXs0O3rZv0npa41W RZoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7wvFNYxs43sdicPeuV3+aq6jDvWYqyrPozHGCt9rCwM=; b=YUzNCORpZLjhiT3zQvMGWb6DAnoxqNfnUrzAkqP4xXV9QvV0FEPi+1Vp/fa2NXmcbx mwmqxV31Qvg5AH2Yf2mWN2x6ueVlzb6M2yBAixB8TbtjREtkar15ta8Ffs0Np1H17+ks XL2ntQf3+HCJylGdh0rKBDauMa/5/OgGZ59BHJjaAiGzbCLAtwhcFh6I0hmN22YPpLbJ yrlTCr0oxTz+84User6ei7IEeRc7u3A8DHO16Rztt9xku3s8NJrsO2Ku6BrUnpmzaWGr lNLfaI+qezs0G3hbpe2vEtPelNcYR6SjNKS0A+h5BH05xxDDpaNGVbe0INbCIfY3zaYu Z5XA== X-Gm-Message-State: AMCzsaViXoOsll8WiyWJTIBl/3UZk5mUIwtYk1dwKthRlleZH791+KcI Acx3rQH6wKs2czEvQVmcMRQfc6bxDbyaM3bA1mo= X-Google-Smtp-Source: ABhQp+SWoAlW6zCIXmauz57kmIMavU+O9oYqmChRxgkHR5SeB0yL3/kp4HCmWaqAOkn3/SE9jQUddzMnJ0+DG4kamQY= X-Received: by 10.107.47.133 with SMTP id v5mr24028348iov.22.1508934804123; Wed, 25 Oct 2017 05:33:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.176.201 with HTTP; Wed, 25 Oct 2017 05:33:23 -0700 (PDT) In-Reply-To: <20171025085121.GA27022@sh4-5.1blu.de> References: <20171025085121.GA27022@sh4-5.1blu.de> From: Adam Vande More Date: Wed, 25 Oct 2017 07:33:23 -0500 Message-ID: Subject: Re: smbclient(1) works, but mount_smbfs(8) does not To: Matthias Apitz , FreeBSD Questions Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:33:25 -0000 On Wed, Oct 25, 2017 at 3:51 AM, Matthias Apitz wrote: > $ 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... > Try a tcpdump of each of these. -- Adam