There is no /etc/samba/smb-local.conf file configured, and changing the share to use a lower-case M may well work but would defeat the original purpose of the exercise, i.e to set up my Samba shares so that all the other machines on my home network can map/mount them using their existing credentials.
Another wrinkle is that if I share the mount point, i.e. /media/Media, the kodi user can’t connect to it but if I share a directory on the drive itself, i.e. /media/Media/Television, the kodi user is able to connect to that share. I thought maybe I had an issue with the mount point so I moved those mount points from /media to /mnt, but the issue is unchanged.
Log links (at log level 2) are below.
/var/log/samba/log.samba
http://paste.osmc.io/mupimivega.vhdl
/var/log/samba/log.nmbd
http://paste.osmc.io/vogapopome.coffee
/var/log/samba$ log.smbd
http://paste.osmc.io/gucepuhexu.js
The only change to the logs during a login attempt occur in log.smbd. I’m seeing a lot of complaints in the log but no outright point of failure that I can see. Then again, I don’t really know what I’m looking for…
At log level = 1:
[2016/10/25 10:23:21.386280, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[osmc]"
[2016/10/25 10:23:21.387420, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[automount template]"
[2016/10/25 10:23:21.388869, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[test]"
[2016/10/25 10:23:21.389567, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Movies]"
[2016/10/25 10:23:21.390197, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Television]"
[2016/10/25 10:23:21.390839, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Media]"
[2016/10/25 10:23:21.391497, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Documents]"
[2016/10/25 10:23:21.392130, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[SG2TB]"
[2016/10/25 10:23:21.392742, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[SG4TB]"
[2016/10/25 10:23:21.397018, 2] ../source3/auth/auth.c:305(auth_check_ntlm_password)
check_ntlm_password: authentication for user [kodi] -> [kodi] -> [kodi] succeeded
[2016/10/25 10:23:41.859350, 2] ../source3/smbd/server.c:443(remove_child_pid)
Could not find child 3945 -- ignoring
which seem to suggest that the kodi user is clearing authentication.
At log level = 3, the login attempt looks like this in log.smbd:
[2016/10/25 11:20:57.503192, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[osmc]"
[2016/10/25 11:20:57.504453, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[automount template]"
[2016/10/25 11:20:57.505788, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[test]"
[2016/10/25 11:20:57.506592, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Movies]"
[2016/10/25 11:20:57.507400, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Television]"
[2016/10/25 11:20:57.508093, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Media]"
[2016/10/25 11:20:57.508872, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Documents]"
[2016/10/25 11:20:57.509610, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[SG2TB]"
[2016/10/25 11:20:57.510348, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[SG4TB]"
[2016/10/25 11:20:57.511470, 3] ../source3/param/loadparm.c:1476(lp_add_ipc)
adding IPC service
[2016/10/25 11:20:57.512842, 2] ../source3/lib/interface.c:341(add_interface)
added interface eth0 ip=192.168.2.95 bcast=192.168.2.255 netmask=255.255.255.0
[2016/10/25 11:20:57.537614, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'gssapi_spnego' registered
[2016/10/25 11:20:57.538393, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'gssapi_krb5' registered
[2016/10/25 11:20:57.538839, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'gssapi_krb5_sasl' registered
[2016/10/25 11:20:57.539198, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'spnego' registered
[2016/10/25 11:20:57.539571, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'schannel' registered
[2016/10/25 11:20:57.539997, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'naclrpc_as_system' registered
[2016/10/25 11:20:57.540346, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'sasl-EXTERNAL' registered
[2016/10/25 11:20:57.540660, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'ntlmssp' registered
[2016/10/25 11:20:57.540949, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'ntlmssp_resume_ccache' registered
[2016/10/25 11:20:57.541235, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'http_basic' registered
[2016/10/25 11:20:57.541552, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'http_ntlm' registered
[2016/10/25 11:20:57.541850, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'krb5' registered
[2016/10/25 11:20:57.542154, 3] ../auth/gensec/gensec_start.c:899(gensec_register)
GENSEC backend 'fake_gssapi_krb5' registered
[2016/10/25 11:20:57.546677, 3] ../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
Got NTLMSSP neg_flags=0x60088215
[2016/10/25 11:20:57.549031, 3] ../auth/ntlmssp/ntlmssp_server.c:452(ntlmssp_server_preauth)
Got user=[kodi] domain=[WORKGROUP] workstation=[U] len1=24 len2=144
[2016/10/25 11:20:57.549669, 3] ../source3/param/loadparm.c:3636(lp_load_ex)
lp_load_ex: refreshing parameters
[2016/10/25 11:20:57.550338, 3] ../source3/param/loadparm.c:527(init_globals)
Initialising global parameters
[2016/10/25 11:20:57.551373, 3] ../source3/param/loadparm.c:2579(lp_do_section)
Processing section "[global]"
[2016/10/25 11:20:57.553286, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[osmc]"
[2016/10/25 11:20:57.554004, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[automount template]"
[2016/10/25 11:20:57.555202, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[test]"
[2016/10/25 11:20:57.555806, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Movies]"
[2016/10/25 11:20:57.556379, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Television]"
[2016/10/25 11:20:57.556945, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Media]"
[2016/10/25 11:20:57.557492, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[Documents]"
[2016/10/25 11:20:57.558022, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[SG2TB]"
[2016/10/25 11:20:57.558604, 2] ../source3/param/loadparm.c:2596(lp_do_section)
Processing section "[SG4TB]"
[2016/10/25 11:20:57.559563, 3] ../source3/param/loadparm.c:1476(lp_add_ipc)
adding IPC service
[2016/10/25 11:20:57.560296, 3] ../source3/auth/auth.c:178(auth_check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [WORKGROUP]\[kodi]@[U] with the new password interface
[2016/10/25 11:20:57.560734, 3] ../source3/auth/auth.c:181(auth_check_ntlm_password)
check_ntlm_password: mapped user is: [RASPBERRYPI]\[kodi]@[U]
[2016/10/25 11:20:57.563116, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for kodi
[2016/10/25 11:20:57.565926, 3] ../source3/auth/auth.c:249(auth_check_ntlm_password)
check_ntlm_password: sam authentication for user [kodi] succeeded
[2016/10/25 11:20:57.566486, 2] ../source3/auth/auth.c:305(auth_check_ntlm_password)
check_ntlm_password: authentication for user [kodi] -> [kodi] -> [kodi] succeeded
[2016/10/25 11:20:57.568105, 3] ../source3/auth/token_util.c:547(finalize_local_nt_token)
Failed to fetch domain sid for WORKGROUP
[2016/10/25 11:20:57.568668, 3] ../source3/auth/token_util.c:579(finalize_local_nt_token)
Failed to fetch domain sid for WORKGROUP
[2016/10/25 11:20:57.570689, 3] ../auth/ntlmssp/ntlmssp_sign.c:509(ntlmssp_sign_reset)
NTLMSSP Sign/Seal - Initialising with flags:
[2016/10/25 11:20:57.571056, 3] ../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
Got NTLMSSP neg_flags=0x62088215
[2016/10/25 11:20:57.571504, 3] ../auth/ntlmssp/ntlmssp_sign.c:509(ntlmssp_sign_reset)
NTLMSSP Sign/Seal - Initialising with flags:
[2016/10/25 11:20:57.571799, 3] ../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
Got NTLMSSP neg_flags=0x62088215
[2016/10/25 11:20:57.573260, 3] ../source3/auth/token_util.c:547(finalize_local_nt_token)
Failed to fetch domain sid for WORKGROUP
[2016/10/25 11:20:57.573775, 3] ../source3/auth/token_util.c:579(finalize_local_nt_token)
Failed to fetch domain sid for WORKGROUP
[2016/10/25 11:20:57.578803, 3] ../source3/lib/access.c:338(allow_access)
Allowed connection from 192.168.2.108 (192.168.2.108)
[2016/10/25 11:20:57.579498, 3] ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
string_to_sid: SID osmc is not in a valid format
[2016/10/25 11:20:57.581195, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for osmc
[2016/10/25 11:20:57.582099, 3] ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
string_to_sid: SID kodi is not in a valid format
[2016/10/25 11:20:57.583201, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for kodi
[2016/10/25 11:20:57.584636, 3] ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
string_to_sid: SID osmc is not in a valid format
[2016/10/25 11:20:57.585986, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for osmc
[2016/10/25 11:20:57.586848, 3] ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
string_to_sid: SID kodi is not in a valid format
[2016/10/25 11:20:57.587887, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for kodi
[2016/10/25 11:20:57.589144, 3] ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
string_to_sid: SID osmc is not in a valid format
[2016/10/25 11:20:57.590291, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for osmc
[2016/10/25 11:20:57.591131, 3] ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
string_to_sid: SID kodi is not in a valid format
[2016/10/25 11:20:57.592143, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for kodi
[2016/10/25 11:20:57.596986, 3] ../source3/lib/access.c:338(allow_access)
Allowed connection from 192.168.2.108 (192.168.2.108)
[2016/10/25 11:20:57.597580, 3] ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
string_to_sid: SID osmc is not in a valid format
[2016/10/25 11:20:57.598810, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for osmc
[2016/10/25 11:20:57.599814, 3] ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
string_to_sid: SID kodi is not in a valid format
[2016/10/25 11:20:57.601042, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for kodi
[2016/10/25 11:20:57.602479, 3] ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
string_to_sid: SID osmc is not in a valid format
[2016/10/25 11:20:57.603594, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for osmc
[2016/10/25 11:20:57.605219, 3] ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
string_to_sid: SID kodi is not in a valid format
[2016/10/25 11:20:57.606365, 3] ../source3/passdb/lookup_sid.c:1631(get_primary_group_sid)
Forcing Primary Group to 'Domain Users' for kodi
and at level 4:
http://paste.osmc.io/icukukizut.coffee