Can't access Hassio through Samba

Hey guys,

I’m new to the community and just got HASSIO installed on my pi4. Today I tried to run the Samba add-on, but it won’t let me connect.

Samba config:

{
  "workgroup": "WORKGROUP",
  "username": "hassio",
  "password": "test123",
  "interface": "",
  "allow_hosts": [
    "10.0.0.0/8",
    "172.16.0.0/12",
    "192.168.0.0/16"
  ],
  "veto_files": [
    "._*",
    ".DS_Store",
    "Thumbs.db",
    "icon?",
    ".Trashes"
  ]
}

Samba log:

*****
*****
Samba name server HASSIO is now a local master browser for workgroup WORKGROUP on subnet 192.168.2.22
*****
added interface wlan0 ip=2a02:a443:ece8:1:356a:81fb:7c87:83ac bcast= netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=2a02:a443:ece8:1:b558:612a:2c43:d5cc bcast= netmask=ffff:ffff:ffff:ffff::
added interface docker0 ip=172.17.0.1 bcast=172.17.255.255 netmask=255.255.0.0
added interface hassio ip=172.30.32.1 bcast=172.30.33.255 netmask=255.255.254.0
added interface wlan0 ip=192.168.2.21 bcast=192.168.2.255 netmask=255.255.255.0
added interface eth0 ip=192.168.2.22 bcast=192.168.2.255 netmask=255.255.255.0
reload_interfaces: ignoring non IPv4 interface.
reload_interfaces: ignoring non IPv4 interface.
reload_interfaces: ignoring non IPv4 interface.
reload_interfaces: ignoring non IPv4 interface.
reload_interfaces: ignoring non IPv4 interface.
reload_interfaces: ignoring non IPv4 interface.
reload_interfaces: ignoring non IPv4 interface.
reload_interfaces: ignoring non IPv4 interface.
reload_interfaces: ignoring non IPv4 interface.
reload_interfaces: ignoring non IPv4 interface.
netbios connect: name1=HASSIO         0x20 name2=DESKTOP-1CGLDES0x0
netbios connect: local=hassio remote=desktop-1cgldes, name type = 0
Could not find child 70 -- ignoring
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources.
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user [[email protected]] -> [[email protected]] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user [MicrosoftAccount]\[[email protected]] at [Sat, 21 Dec 2019 17:08:03.387994 CET] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [DESKTOP-1CGLDES] remote host [ipv4:192.168.2.19:51700] mapped to [MicrosoftAccount]\[[email protected]]. local host [ipv4:192.168.2.21:445] 
{"timestamp": "2019-12-21T17:08:03.388416+0100", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 1}, "eventId": 4625, "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.2.21:445", "remoteAddress": "ipv4:192.168.2.19:51700", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "MicrosoftAccount", "clientAccount": "[email protected]", "workstation": "DESKTOP-1CGLDES", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "[email protected]", "mappedDomain": "MicrosoftAccount", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 20199}}
Denied connection from 2a02:a443:ece8:1:cc0b:5795:e545:7432 (2a02:a443:ece8:1:cc0b:5795:e545:7432)
Connection denied from ipv6:2a02:a443:ece8:1:cc0b:5795:e545:7432:51701 to ipv6:2a02:a443:ece8:1:356a:81fb:7c87:83ac:445
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user [[email protected]] -> [[email protected]] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user [MicrosoftAccount]\[[email protected]] at [Sat, 21 Dec 2019 17:09:22.040360 CET] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [DESKTOP-1CGLDES] remote host [ipv4:192.168.2.19:51725] mapped to [MicrosoftAccount]\[[email protected]]. local host [ipv4:192.168.2.21:445] 
{"timestamp": "2019-12-21T17:09:22.040589+0100", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 1}, "eventId": 4625, "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.2.21:445", "remoteAddress": "ipv4:192.168.2.19:51725", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "MicrosoftAccount", "clientAccount": "[email protected]", "workstation": "DESKTOP-1CGLDES", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "[email protected]", "mappedDomain": "MicrosoftAccount", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 10498}}
Denied connection from 2a02:a443:ece8:1:cc0b:5795:e545:7432 (2a02:a443:ece8:1:cc0b:5795:e545:7432)
Connection denied from ipv6:2a02:a443:ece8:1:cc0b:5795:e545:7432:51726 to ipv6:2a02:a443:ece8:1:b558:612a:2c43:d5cc:445
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user [[email protected]] -> [[email protected]] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user [MicrosoftAccount]\[[email protected]] at [Sat, 21 Dec 2019 17:10:28.337445 CET] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [DESKTOP-1CGLDES] remote host [ipv4:192.168.2.19:51748] mapped to [MicrosoftAccount]\[[email protected]]. local host [ipv4:192.168.2.21:445] 
{"timestamp": "2019-12-21T17:10:28.337960+0100", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 1}, "eventId": 4625, "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.2.21:445", "remoteAddress": "ipv4:192.168.2.19:51748", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "MicrosoftAccount", "clientAccount": "[email protected]", "workstation": "DESKTOP-1CGLDES", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "[email protected]", "mappedDomain": "MicrosoftAccount", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 11943}}
Denied connection from 2a02:a443:ece8:1:cc0b:5795:e545:7432 (2a02:a443:ece8:1:cc0b:5795:e545:7432)
Connection denied from ipv6:2a02:a443:ece8:1:cc0b:5795:e545:7432:51749 to ipv6:2a02:a443:ece8:1:b558:612a:2c43:d5cc:445
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user [[email protected]] -> [[email protected]] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user [MicrosoftAccount]\[[email protected]] at [Sat, 21 Dec 2019 17:10:33.867008 CET] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [DESKTOP-1CGLDES] remote host [ipv4:192.168.2.19:51750] mapped to [MicrosoftAccount]\[[email protected]]. local host [ipv4:192.168.2.22:445] 
{"timestamp": "2019-12-21T17:10:33.867244+0100", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 1}, "eventId": 4625, "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.2.22:445", "remoteAddress": "ipv4:192.168.2.19:51750", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "MicrosoftAccount", "clientAccount": "[email protected]", "workstation": "DESKTOP-1CGLDES", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "[email protected]", "mappedDomain": "MicrosoftAccount", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 9273}}
Denied connection from 2a02:a443:ece8:1:cc0b:5795:e545:7432 (2a02:a443:ece8:1:cc0b:5795:e545:7432)
Connection denied from ipv6:2a02:a443:ece8:1:cc0b:5795:e545:7432:51751 to ipv6:2a02:a443:ece8:1:356a:81fb:7c87:83ac:445
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user [[email protected]] -> [[email protected]] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user [MicrosoftAccount]\[[email protected]] at [Sat, 21 Dec 2019 17:10:35.243256 CET] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [DESKTOP-1CGLDES] remote host [ipv4:192.168.2.19:51752] mapped to [MicrosoftAccount]\[[email protected]]. local host [ipv4:192.168.2.22:445] 
{"timestamp": "2019-12-21T17:10:35.243556+0100", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 1}, "eventId": 4625, "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.2.22:445", "remoteAddress": "ipv4:192.168.2.19:51752", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "MicrosoftAccount", "clientAccount": "[email protected]", "workstation": "DESKTOP-1CGLDES", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "[email protected]", "mappedDomain": "MicrosoftAccount", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 7804}}
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user [[email protected]] -> [[email protected]] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user [MicrosoftAccount]\[[email protected]] at [Sat, 21 Dec 2019 17:13:10.975236 CET] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [DESKTOP-1CGLDES] remote host [ipv4:192.168.2.19:51830] mapped to [MicrosoftAccount]\[[email protected]]. local host [ipv4:192.168.2.21:445] 
{"timestamp": "2019-12-21T17:13:10.975788+0100", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 1}, "eventId": 4625, "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.2.21:445", "remoteAddress": "ipv4:192.168.2.19:51830", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "MicrosoftAccount", "clientAccount": "[email protected]", "workstation": "DESKTOP-1CGLDES", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "[email protected]", "mappedDomain": "MicrosoftAccount", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 7706}}
Denied connection from 2a02:a443:ece8:1:cc0b:5795:e545:7432 (2a02:a443:ece8:1:cc0b:5795:e545:7432)
Connection denied from ipv6:2a02:a443:ece8:1:cc0b:5795:e545:7432:51831 to ipv6:2a02:a443:ece8:1:b558:612a:2c43:d5cc:445
Processing section "[config]"
Processing section "[addons]"
Processing section "[ssl]"
Processing section "[share]"
Processing section "[backup]"
check_ntlm_password:  Authentication for user [[email protected]] -> [[email protected]] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
Auth: [SMB2,(null)] user [MicrosoftAccount]\[[email protected]] at [Sat, 21 Dec 2019 17:15:51.303998 CET] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [DESKTOP-1CGLDES] remote host [ipv4:192.168.2.19:51889] mapped to [MicrosoftAccount]\[[email protected]]. local host [ipv4:192.168.2.21:445] 
{"timestamp": "2019-12-21T17:15:51.304202+0100", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 1}, "eventId": 4625, "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.2.21:445", "remoteAddress": "ipv4:192.168.2.19:51889", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "MicrosoftAccount", "clientAccount": "[email protected]", "workstation": "DESKTOP-1CGLDES", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "[email protected]", "mappedDomain": "MicrosoftAccount", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 8189}}
Denied connection from 2a02:a443:ece8:1:cc0b:5795:e545:7432 (2a02:a443:ece8:1:cc0b:5795:e545:7432)
Connection denied from ipv6:2a02:a443:ece8:1:cc0b:5795:e545:7432:51890 to ipv6:2a02:a443:ece8:1:b558:612a:2c43:d5cc:445

The share does show up in my network, however when I try to connect I get the following error saying: “\HASSIO is not accessible. You probably don’t have the rights for this networksource”.

Can you guys please help me out?

Thanks in advance.

Mike

Try this :

"allow_hosts": [
    "*"
  ],

Try \ip-address I have the same issue on mine.
I then added an entry to my hosts file for hassio…

Dangerous… anyone can connect from any IP address instead of just local addresses. That’s a bad idea. Need to be super careful you don’t have any open ports allowing internet access!

Many thanks, this solved the problem!

1 Like

What exactly did you do? Add \ip-address entry to your hosts file? Please advise.

Can you please explain in a bit more detail?
I got IPv6 and a system running ubuntu 18.04. I can’t access my HA thru Samba share as samba always received request from IPv6 host.

Ofcourse I don’t want to use "allow_hosts": [ "*" ]. You correctly said that it’s too dangerous.

Denied connection from 2a02:908:521:f780:811:b766:334c:9a9b (2a02:908:521:f780:811:b766:334c:9a9b)
Connection denied from ipv6:2a02:908:521:f780:811:b766:334c:9a9b:58826 to ipv6:2a02:908:521:f780:15ad:fb80:aec0:1990:445

Try

  "allow_hosts": [
    "10.0.0.0/8",
    "172.16.0.0/12",
    "192.168.0.0/16",
    "::1"
  ],

or maybe 2a02:908:521:f780::/64 which looks like your IPv6 prefix?

1 Like

Thanks a lot ! I’m kinda starting out with home automation and HA and I truly appreciate the help.

1 Like

Hi David, thanks from here, too. I had the same issue, trying to access hassio over smb from a Linux Mint 19.1 Cinnamon with IPv6.

"allow_hosts": [
    "2a04:4540:6a08:5300::/64"
  ],

solved it. This is really cool. Thanks a lot.
Best Regards,
Torsten

3 Likes

Solved it for me too !! Thanks!

"allow_hosts": [
    "2a04:4540:6a08:5300::/64"
  ],

Thank you @DavidFW1960 and @MechToni - that helped me as well.