Hello, I’m trying to install and access samba on a raspberry pi 2b. I want to use it for file sharing over wifi, but I am not able to discover hassio in windows 10 Network.
Here is how I configured it:
{
"workgroup": "WORKGROUP",
"username": "mu-username",
"password": "secret-password",
"interface": "eth0",
"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"
],
"name": "hassio",
"guest": false,
"map": {
"config": true,
"addons": true,
"ssl": false,
"share": true,
"backup": true
}
}
Samba logs:
[23:03:06] INFO: Hostname: hassio
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
No builtin backend found, trying to load plugin
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
tdb(/var/lib/samba/winbindd_idmap.tdb): tdb_open_ex: could not open file /var/lib/samba/winbindd_idmap.tdb: No such file or directory
tdb(/var/lib/samba/account_policy.tdb): tdb_open_ex: could not open file /var/lib/samba/account_policy.tdb: No such file or directory
account_policy_get: tdb_fetch_uint32_t failed for type 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32_t failed for type 10 (refuse machine password change), returning 0
Added user rpuls.
nmbd version 4.10.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2019
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
added interface eth0 ip=192.168.8.101 bcast=192.168.8.255 netmask=255.255.255.0
making subnet name:192.168.8.101 Broadcast address:192.168.8.255 Subnet mask:255.255.255.0
making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0
load_lmhosts_file: Can’t open lmhosts file /etc/samba/lmhosts. Error was No such file or directory
daemon_ready: daemon ‘nmbd’ finished starting up and ready to serve connections
smbd version 4.10.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2019
Registered MSG_REQ_POOL_USAGE
Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
Processing section “[config]”
Processing section “[addons]”
Processing section “[ssl]”
Processing section “[share]”
Processing section “[backup]”
added interface eth0 ip=192.168.8.101 bcast=192.168.8.255 netmask=255.255.255.0
INFO: Profiling support unavailable in this build.
No builtin backend found, trying to load plugin
tdb(/var/lib/samba/registry.tdb): tdb_open_ex: could not open file /var/lib/samba/registry.tdb: No such file or directory
daemon_ready: daemon ‘smbd’ finished starting up and ready to serve connections
waiting for connections
check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 192.168.8.101
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.8.101
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.8.101
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.8.101
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.8.101
send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 192.168.8.101
run_elections: >>> Won election for workgroup WORKGROUP on subnet 192.168.8.101 <<<
become_local_master_browser: Starting to become a master browser for workgroup WORKGROUP on subnet 192.168.8.101
Samba name server HASSIO is now a local master browser for workgroup WORKGROUP on subnet 192.168.8.101
netbios connect: name1=HASSIO 0x20 name2=DESKTOP-Q30O82T0x0
netbios connect: local=hassio remote=desktop-q30o82t, name type = 0
netbios connect: name1=HASSIO 0x20 name2=DESKTOP-Q30O82T0x0
netbios connect: local=hassio remote=desktop-q30o82t, name type = 0
Not sure if something is wrong with my configuration on samba, the raspberry pi, my router or my windows computer.