I was having some networking issues I couldn't solve a few days ago, and so I backed up my config from U3.1 and installed U3.2 fresh. I'm having SMB problems. The service doesn't start when I boot the system, and when I start it up, this appears in /var/log/samba4/log.smbd:
There is no samba4 directory at all in /var/db. If I manually create /var/db/samba4/private/, then I can start the service, however, I cannot authenticate to the server at all. I get this in the log:
If I create a new user, it can authenticate. I've verified the original user exists, and I can SSH to the server using that user.
If I reboot, the /var/db/samba4 directory disappears again and I'm back at square one.
Any ideas?
Edit for updates:
Going to the web gui and changing or simply saving the system dataset makes samba start and run correctly. It fails again on next reboot.
I have the following mount point:
Media-pool/.system/samba4 on /var/db/system/samba4 (zfs, local, nfsv4acls)
My smb4.conf has "private dir = /var/db/samba4/private" and the web gui page for the SMB service has this listed as an auxiliary parameter. If I remove the line, it comes back on reboot. There's no way to edit it in the web gui.
smbd version 4.10.13 started.
Copyright Andrew Tridgell and the Samba Team 1992-2019
[2020/06/05 16:26:27.458658, 1] ../../lib/util/util.c:205(directory_create_or_exist)
directory_create_or_exist: mkdir failed on directory /var/db/samba4/private/msg.sock: No such file or directory
There is no samba4 directory at all in /var/db. If I manually create /var/db/samba4/private/, then I can start the service, however, I cannot authenticate to the server at all. I get this in the log:
[2020/06/05 16:34:28.720787, 3] ../../source3/auth/auth.c:189(auth_check_ntlm_password)
check_ntlm_password: Checking password for unmapped user [hostname]\[myusername]@[hostname] with the new password interface
[2020/06/05 16:34:28.720794, 3] ../../source3/auth/auth.c:192(auth_check_ntlm_password)
check_ntlm_password: mapped user is: [hostname]\[myusername]@[hostname]
[2020/06/05 16:34:28.720827, 3] ../../source3/auth/check_samsec.c:399(check_sam_security)
check_sam_security: Couldn't find user 'myusername' in passdb.
[2020/06/05 16:34:28.720834, 2] ../../source3/auth/auth.c:334(auth_check_ntlm_password)
check_ntlm_password: Authentication for user [myusername] -> [myusername] FAILED with error NT_STATUS_NO_SUCH_USER, authoritative=1
[2020/06/05 16:34:28.720895, 2] ../../auth/auth_log.c:647(log_authentication_event_human_readable)
Auth: [SMB2,(null)] user [hostname]\[myusername] at [Fri, 05 Jun 2020 16:34:28.720849 CDT] with [NTLMv2] status [NT_STATUS_NO_SUCH_USER] workstation [hostname] remote host [ipv4:192.168.1.10:62035] mapped to [hostname]\[myusername]. local host [ipv4:192.168.1.20:445]
{"timestamp": "2020-06-05T16:34:28.721027-0500", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 1}, "eventId": 4625, "logonType": 3, "status": "NT_STATUS_NO_SUCH_USER", "localAddress": "ipv4:192.168.1.20:445", "remoteAddress": "ipv4:192.168.1.10:62035", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "hostname", "clientAccount": "myusername", "workstation": "hostname", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "myusername", "mappedDomain": "hostname", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 2099}}
[2020/06/05 16:34:28.721130, 3] ../../auth/gensec/spnego.c:1444(gensec_spnego_server_negTokenTarg_step)
gensec_spnego_server_negTokenTarg_step: SPNEGO(ntlmssp) login failed: NT_STATUS_NO_SUCH_USER
[2020/06/05 16:34:28.721153, 3] ../../source3/smbd/smb2_server.c:3213(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_LOGON_FAILURE] || at ../../source3/smbd/smb2_sesssetup.c:146
[2020/06/05 16:34:28.721943, 3] ../../source3/smbd/server_exit.c:236(exit_server_common)
Server exit (NT_STATUS_CONNECTION_RESET)
If I create a new user, it can authenticate. I've verified the original user exists, and I can SSH to the server using that user.
If I reboot, the /var/db/samba4 directory disappears again and I'm back at square one.
Any ideas?
Edit for updates:
Going to the web gui and changing or simply saving the system dataset makes samba start and run correctly. It fails again on next reboot.
I have the following mount point:
Media-pool/.system/samba4 on /var/db/system/samba4 (zfs, local, nfsv4acls)
My smb4.conf has "private dir = /var/db/samba4/private" and the web gui page for the SMB service has this listed as an auxiliary parameter. If I remove the line, it comes back on reboot. There's no way to edit it in the web gui.
Last edited: