smbclient(1) works, but mount_smbfs(8) does not

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

smbclient(1) works, but mount_smbfs(8) does not

Matthias Apitz

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: [hidden email]     |  \ /   - 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
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

Re: smbclient(1) works, but mount_smbfs(8) does not

Adam Vande More
On Wed, Oct 25, 2017 at 3:51 AM, Matthias Apitz <[hidden email]> 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
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[hidden email]"