mounting TrueNAS Samba share from new client fails

macx979

Dabbler
Joined
Sep 25, 2019
Messages
41
Hi,

I am running TrueNAS Core TrueNAS-13.0-U6.1 with several NFS and Samba shares.

I am about to bring in a new client to my network which is supposed to get access to the same shares. Particularly I have problems login in from this new client to a samba share.
the new client is running Kubuntu and when using the this command on cli I get a permission denied:
sudo mount -o username=user,password='password',uid=1000 //192.168.110.61/Homeshare /home/user/homeshare

The error message on this new client from dmesg is:
[ 3013.853444] CIFS: Attempting to mount //192.168.110.61/Homeshare
[ 3014.011643] CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE
[ 3014.011667] CIFS: VFS: \\192.168.110.61 Send error in SessSetup = -13
[ 3014.011697] CIFS: VFS: cifs_mount failed w/return code = -13

from an old client which is running Linux Mint I tested exactly the same credentials and it works. Here are the log file from TrueNAS. The successful login is from mint. the unsuccessful login is from kubuntu.
==> auth_audit.log <==
{"timestamp": "2024-03-16T20:20:39.501532+0100", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 2}, "eventId": 4624, "logonId": "0", "logonType": 3, "status": "NT_STATUS_OK", "localAddress": "ipv4:192.168.110.61:445", "remoteAddress": "ipv4:192.168.100.109:59674", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "", "clientAccount": "user", "workstation": "", "becameAccount": "user", "becameDomain": "FREENAS", "becameSid": "S-1-5-21-4223861953-663050144-3869264686-20064", "mappedAccount": "user", "mappedDomain": "", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 23574}}
{"timestamp": "2024-03-16T20:20:50.345861+0100", "type": "Authentication", "Authentication": {"version": {"major": 1, "minor": 2}, "eventId": 4625, "logonId": "0", "logonType": 3, "status": "NT_STATUS_WRONG_PASSWORD", "localAddress": "ipv4:192.168.110.61:445", "remoteAddress": "ipv4:192.168.100.111:39874", "serviceDescription": "SMB2", "authDescription": null, "clientDomain": "", "clientAccount": "user", "workstation": "kubuntu", "becameAccount": null, "becameDomain": null, "becameSid": null, "mappedAccount": "user", "mappedDomain": "", "netlogonComputer": null, "netlogonTrustAccount": null, "netlogonNegotiateFlags": "0x00000000", "netlogonSecureChannelType": 0, "netlogonTrustAccountSid": null, "passwordType": "NTLMv2", "duration": 30176}}
I am struggling with this topic since hours, but can't wrap my head around what the issue and especially the difference between these clients could be.

Does anyone can give me a valuable hint?

Best
 
Joined
Oct 22, 2019
Messages
3,641
To rule something out, invoke the interactive password prompt by removing it from the mount parameters:
Code:
mount -t cifs -o username=user,uid=1000 //192.168.110.61/Homeshare /home/user/homeshare


If it prompts for the password, and you can successfully mount, then it might be due to some special character/symbol that isn't working in the mount command on this particular client (for whatever reason.)
 
Top