Can't acces smb share on windows 10

MFx

Dabbler
Joined
Feb 25, 2022
Messages
11
I think I messed something up on my computer, because I can't acces my smb share anymore on windows 10 on one of my connected computers.
It's running windows 10 pro and it's my companys laptop. My private laptop with windows 10 home, laptop with linux and my androidbox can find my server and
connect with the shared folders.

I tried everything I could find on this forum or via google as far as I know, but nothing seems to work. SMB services are enabled, I checked it in powershell.
I'm running out of ideas/options. Hope you can help.

Regards,

MFx
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
I think I messed something up on my computer, because I can't acces my smb share anymore on windows 10 on one of my connected computers.
It's running windows 10 pro and it's my companys laptop. My private laptop with windows 10 home, laptop with linux and my androidbox can find my server and
connect with the shared folders.

I tried everything I could find on this forum or via google as far as I know, but nothing seems to work. SMB services are enabled, I checked it in powershell.
I'm running out of ideas/options. Hope you can help.

Regards,

MFx
When you try to connect, what is getting logged in the SMB authentication log on TrueNAS?
midclt call smb.status AUTH_LOG | jq
 

MFx

Dabbler
Joined
Feb 25, 2022
Messages
11
This is my log. I'm still a bit of a noob when ik comes to servers and shares etc.

Code:
arning: settings changed through the CLI are not written to
the configuration database and will be reset on reboot.

root@truenas[~]# midclt call smb.status AUTH_LOG | jq
[
  {
    "timestamp": "2022-02-24T13:24:55.226270-0800",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4625,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_NO_SUCH_USER",
      "localAddress": "ipv4:192.168.1.74:445",
      "remoteAddress": "ipv4:192.168.1.199:59982",
      "serviceDescription": "SMB2",
      "authDescription": null,
      "clientDomain": "192.168.1.74",
      "clientAccount": "user1",
      "workstation": "",
      "becameAccount": null,
      "becameDomain": null,
      "becameSid": null,
      "mappedAccount": "user1",
      "mappedDomain": "192.168.1.74",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 39274
    }
  },
  {
    "timestamp": "2022-02-24T13:24:55.469281-0800",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4625,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_NO_SUCH_USER",
      "localAddress": "ipv4:192.168.1.74:445",
      "remoteAddress": "ipv4:192.168.1.199:59982",
      "serviceDescription": "SMB2",
      "authDescription": null,
      "clientDomain": "",
      "clientAccount": "user1",
      "workstation": "",
      "becameAccount": null,
      "becameDomain": null,
      "becameSid": null,
      "mappedAccount": "user1",
      "mappedDomain": "",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 125670
    }
  },
  {
    "timestamp": "2022-02-24T13:28:41.214972-0800",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4624,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_OK",
      "localAddress": "ipv4:192.168.1.74:445",
      "remoteAddress": "ipv4:192.168.1.199:60966",
      "serviceDescription": "SMB2",
      "authDescription": null,
      "clientDomain": "192.168.1.74",
      "clientAccount": "MFx",
      "workstation": "",
      "becameAccount": "MFx",
      "becameDomain": "TRUENAS",
      "becameSid": "S-1-5-21-1302982363-521402444-3052733175-1001",
      "mappedAccount": "MFx",
      "mappedDomain": "192.168.1.74",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 15777
    }
  },
  {
    "timestamp": "2022-02-24T13:28:42.801947-0800",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4624,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_OK",
      "localAddress": "ipv4:192.168.1.74:445",
      "remoteAddress": "ipv4:192.168.1.199:60968",
      "serviceDescription": "SMB2",
      "authDescription": null,
      "clientDomain": "192.168.1.74",
      "clientAccount": "MFx",
      "workstation": "",
      "becameAccount": "MFx",
      "becameDomain": "TRUENAS",
      "becameSid": "S-1-5-21-1302982363-521402444-3052733175-1001",
      "mappedAccount": "MFx",
      "mappedDomain": "192.168.1.74",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 108189
    }
  },
  {
    "timestamp": "2022-02-24T13:28:42.878156-0800",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4624,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_OK",
      "localAddress": "ipv4:192.168.1.74:445",
      "remoteAddress": "ipv4:192.168.1.199:60970",
      "serviceDescription": "SMB2",
      "authDescription": null,
      "clientDomain": "192.168.1.74",
      "clientAccount": "MFx",
      "workstation": "",
      "becameAccount": "MFx",
      "becameDomain": "TRUENAS",
      "becameSid": "S-1-5-21-1302982363-521402444-3052733175-1001",
      "mappedAccount": "MFx",
      "mappedDomain": "192.168.1.74",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 8647
    }
  },
  {
    "timestamp": "2022-02-25T06:38:01.917042+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4624,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_OK",
      "localAddress": "ipv4:192.168.1.74:139",
      "remoteAddress": "ipv4:192.168.1.57:49990",
      "serviceDescription": "SMB",
      "authDescription": null,
      "clientDomain": "",
      "clientAccount": "",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": "nobody",
      "becameDomain": "TRUENAS",
      "becameSid": "S-1-5-21-1302982363-521402444-3052733175-501",
      "mappedAccount": "",
      "mappedDomain": "",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": null,
      "duration": 133792
    }
  },
  {
    "timestamp": "2022-02-25T06:38:02.792295+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4625,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_NO_SUCH_USER",
      "localAddress": "ipv4:192.168.1.74:139",
      "remoteAddress": "ipv4:192.168.1.57:49990",
      "serviceDescription": "SMB",
      "authDescription": null,
      "clientDomain": "MicrosoftAccount",
      "clientAccount": "martijn.mfx@gmail.com",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": null,
      "becameDomain": null,
      "becameSid": null,
      "mappedAccount": "martijn.mfx@gmail.com",
      "mappedDomain": "MicrosoftAccount",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 673551
    }
  },
  {
    "timestamp": "2022-02-25T06:38:05.084437+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4624,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_OK",
      "localAddress": "ipv4:192.168.1.74:139",
      "remoteAddress": "ipv4:192.168.1.57:49990",
      "serviceDescription": "SMB",
      "authDescription": null,
      "clientDomain": "",
      "clientAccount": "",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": "nobody",
      "becameDomain": "TRUENAS",
      "becameSid": "S-1-5-21-1302982363-521402444-3052733175-501",
      "mappedAccount": "",
      "mappedDomain": "",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": null,
      "duration": 10512
    }
  },
  {
    "timestamp": "2022-02-25T06:38:05.104188+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4625,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_NO_SUCH_USER",
      "localAddress": "ipv4:192.168.1.74:139",
      "remoteAddress": "ipv4:192.168.1.57:49990",
      "serviceDescription": "SMB",
      "authDescription": null,
      "clientDomain": "MicrosoftAccount",
      "clientAccount": "martijn.mfx@gmail.com",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": null,
      "becameDomain": null,
      "becameSid": null,
      "mappedAccount": "martijn.mfx@gmail.com",
      "mappedDomain": "MicrosoftAccount",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 5230
    }
  },
  {
    "timestamp": "2022-02-25T06:38:40.981117+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4625,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_NO_SUCH_USER",
      "localAddress": "ipv4:192.168.1.74:445",
      "remoteAddress": "ipv4:192.168.1.57:50062",
      "serviceDescription": "SMB2",
      "authDescription": null,
      "clientDomain": "MicrosoftAccount",
      "clientAccount": "martijn.mfx@gmail.com",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": null,
      "becameDomain": null,
      "becameSid": null,
      "mappedAccount": "martijn.mfx@gmail.com",
      "mappedDomain": "MicrosoftAccount",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 2573
    }
  },
  {
    "timestamp": "2022-02-25T06:38:41.276029+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4625,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_NO_SUCH_USER",
      "localAddress": "ipv4:192.168.1.74:445",
      "remoteAddress": "ipv4:192.168.1.57:50065",
      "serviceDescription": "SMB2",
      "authDescription": null,
      "clientDomain": "MicrosoftAccount",
      "clientAccount": "martijn.mfx@gmail.com",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": null,
      "becameDomain": null,
      "becameSid": null,
      "mappedAccount": "martijn.mfx@gmail.com",
      "mappedDomain": "MicrosoftAccount",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 2300
    }
  },
  {
    "timestamp": "2022-02-25T06:40:12.213370+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4624,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_OK",
      "localAddress": "ipv4:192.168.1.74:445",
      "remoteAddress": "ipv4:192.168.1.57:50145",
      "serviceDescription": "SMB2",
      "authDescription": null,
      "clientDomain": "MicrosoftAccount",
      "clientAccount": "MFx",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": "MFx",
      "becameDomain": "TRUENAS",
      "becameSid": "S-1-5-21-1302982363-521402444-3052733175-1001",
      "mappedAccount": "MFx",
      "mappedDomain": "MicrosoftAccount",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 2925
    }
  },
  {
    "timestamp": "2022-02-25T06:47:06.871422+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4624,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_OK",
      "localAddress": "ipv4:192.168.1.74:139",
      "remoteAddress": "ipv4:192.168.1.57:50477",
      "serviceDescription": "SMB",
      "authDescription": null,
      "clientDomain": "",
      "clientAccount": "",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": "nobody",
      "becameDomain": "TRUENAS",
      "becameSid": "S-1-5-21-1302982363-521402444-3052733175-501",
      "mappedAccount": "",
      "mappedDomain": "",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": null,
      "duration": 4776
    }
  },
  {
    "timestamp": "2022-02-25T06:47:06.880405+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4625,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_NO_SUCH_USER",
      "localAddress": "ipv4:192.168.1.74:139",
      "remoteAddress": "ipv4:192.168.1.57:50477",
      "serviceDescription": "SMB",
      "authDescription": null,
      "clientDomain": "MicrosoftAccount",
      "clientAccount": "martijn.mfx@gmail.com",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": null,
      "becameDomain": null,
      "becameSid": null,
      "mappedAccount": "martijn.mfx@gmail.com",
      "mappedDomain": "MicrosoftAccount",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": "NTLMv2",
      "duration": 2671
    }
  },
  {
    "timestamp": "2022-02-25T06:47:09.173013+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4624,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_OK",
      "localAddress": "ipv4:192.168.1.74:139",
      "remoteAddress": "ipv4:192.168.1.57:50477",
      "serviceDescription": "SMB",
      "authDescription": null,
      "clientDomain": "",
      "clientAccount": "",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": "nobody",
      "becameDomain": "TRUENAS",
      "becameSid": "S-1-5-21-1302982363-521402444-3052733175-501",
      "mappedAccount": "",
      "mappedDomain": "",
      "netlogonComputer": null,
      "netlogonTrustAccount": null,
      "netlogonNegotiateFlags": "0x00000000",
      "netlogonSecureChannelType": 0,
      "netlogonTrustAccountSid": null,
      "passwordType": null,
      "duration": 1160
    }
  },
  {
    "timestamp": "2022-02-25T06:47:09.178582+0100",
    "type": "Authentication",
    "Authentication": {
      "version": {
        "major": 1,
        "minor": 2
      },
      "eventId": 4625,
      "logonId": "0",
      "logonType": 3,
      "status": "NT_STATUS_NO_SUCH_USER",
      "localAddress": "ipv4:192.168.1.74:139",
      "remoteAddress": "ipv4:192.168.1.57:50477",
      "serviceDescription": "SMB",
      "authDescription": null,
      "clientDomain": "MicrosoftAccount",
      "clientAccount": "martijn.mfx@gmail.com",
      "workstation": "DESKTOP-PDJ71OM",
      "becameAccount": null,
      "becameDomain": null,
      "becameSid": null,
      "mappedAccount": "martijn.mfx@gmail.com",
      "mappedDomain": "MicrosoftAccount",
      "netlogonComputer": null,
      "netlogonTrustAcc
 
Last edited:

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Your client is sending your microsoft email account as creds. You should use credential manager in windows to store appropriate NAS credentials.
 

MFx

Dabbler
Joined
Feb 25, 2022
Messages
11
Tried to add the credentials of the NAS but still no luck.
 

MFx

Dabbler
Joined
Feb 25, 2022
Messages
11
I think I have the same issue because I still see the windows account been sended to the NAS. How can I clear the cached creds?
 

MFx

Dabbler
Joined
Feb 25, 2022
Messages
11
Here is the output

Code:
[root@truenas[~]# testparm -s
Load smb config files from /usr/local/etc/smb4.conf
lpcfg_do_global_parameter: WARNING: The "client ntlmv2 auth" option is deprecated
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE

# Global parameters
[global]
        aio max threads = 2
        bind interfaces only = Yes
        client NTLMv2 auth = No
        disable spoolss = Yes
        dns proxy = No
        enable web service discovery = Yes
        kernel change notify = No
        load printers = No
        logging = file
        map to guest = Bad User
        max log size = 5120
        nsupdate command = /usr/local/bin/samba-nsupdate -g
        ntlm auth = ntlmv1-permitted
        registry shares = Yes
        server min protocol = NT1
        server role = standalone server
        server string = TrueNAS Server
        unix extensions = No
        idmap config *: range = 90000001-100000000
        idmap config * : backend = tdb
        directory name cache size = 0
        dos filemode = Yes


[Movies]
        ea support = No
        guest ok = Yes
        kernel share modes = No
        path = /mnt/tank/DATA
        posix locking = No
        read only = No
        vfs objects = streams_xattr shadow_copy_zfs ixnas aio_fbsd
        nfs4:chown = true
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Oh, you enabled guest access. Windows might be connecting to the IPC$ share on our server, caching the creds, and then trying to connect to your share. Turn off guest access and restart SMB on our side.
 

MFx

Dabbler
Joined
Feb 25, 2022
Messages
11
I'm not sure if I did it right. Guest is set to nobody. But I'm unsure if did it right. Can you specify where I should turn off guest acces?
 

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
It's under Shares, edit your share and go to advanced options there's a checkbox for guest access
 

MFx

Dabbler
Joined
Feb 25, 2022
Messages
11
It was on for one share. Turned it off restarted everything but still nog luck....
 

MFx

Dabbler
Joined
Feb 25, 2022
Messages
11
But I think the problem is within the windows settings and not NAS, because another windows laptop and linux laptop can acces the share.
 

MFx

Dabbler
Joined
Feb 25, 2022
Messages
11
Hope someone can help me out here, because i'm in the dark at this moment
 
Joined
Mar 1, 2022
Messages
1
Did you try disabling and enabling SMB Protocol using PowerShell? If not, then follow the steps from this article. Following those steps should resolve your issue.
 

MFx

Dabbler
Joined
Feb 25, 2022
Messages
11
Wel I tried it, but still no result. It's getting a bit frustrating to be honest ;-)
 
Top