Samba 4.5: Access trouble from Windows Domain machine, System error 86

by leiflundgren   Last Updated January 13, 2018 16:00 PM

I am trying to access Samba Version 4.5.12-Debian from my work domain-joined PC. (It used to work, but after upgrade Raspian from Wheezy to Stretch it fails.)

C:\Users\domainuser>net use \\samba_srv\my_share /USER:pi
Enter the password for 'pi' to connect to 'samba_srv':
System error 86 has occurred.

The specified network password is not correct.

I also tested from an Ubuntu VM host, that works

osboxes@osboxes:~$ smbclient \\\\samba_srv\\my_share -U pi
WARNING: The "syslog" option is deprecated
Enter pi's password: 
Domain=[HEMMA] OS=[Windows 6.1] Server=[Samba 4.5.12-Debian]

Anyone has any ideas on how to progress?

I have log level = 6 but not much useful output:
Samba name server SAMBA_SRV is now a local master browser for workgroup HEMMA on subnet

I have been thinking that perhaps the upgrade corrupted the password-database or similar. Is it possible to re-initialize the databases from scratch? (Only 2 users in db.)

# cat smb.conf
# Global parameters
        server string = %h server
        workgroup = HEMMA
        log file = /var/log/samba/log.%m
        logging = file
        max log size = 10000
        usershare allow guests = Yes
        unix extensions = No
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        server role = standalone server
        unix password sync = Yes
        dns proxy = No
        idmap config * : backend = tdb
        mangled names = No
        valid users = @users

        comment = Home Directories
        browseable = No
        create mask = 0700
        directory mask = 0700
        valid users = %S

        comment = Network Logon Service
        path = /home/samba/netlogon
        guest ok = Yes

        comment = my share
        path = /home/pi/
        wide links = Yes
        create mask = 0770
        directory mask = 0770
        read only = No
        valid users = pi
Tags : samba4

Related Questions

SAMBA 4.1.6 create public share

Updated June 26, 2015 19:00 PM

VSS for SMB file shares in Samba4

Updated February 23, 2016 05:00 AM

Samba 4.1.17-Debian Access denied to fileshare

Updated July 19, 2015 21:00 PM