Samba share not accessible from Win 7 - tried advice on superuser

7,396

Have a look on the Windows 7 box in Local Security Policy, under Local Policies > Security Options. There's a series of NTLM-related policies to play with.

The LmCompatibility option you've already changed in the registry is governed by the policy

Network security: LAN Manager authentication level

which in your case should be set to "Send LM & NTLM - use NTLMv2 session security if negotiated".

You will need to restart the Windows machine for this to take effect.

Share:
7,396

Related videos on Youtube

Roy Grubb
Author by

Roy Grubb

Updated on September 18, 2022

Comments

  • Roy Grubb
    Roy Grubb over 1 year

    I have an old Red Hat Linux box that I use, amongst other things, to run Samba. My Vista and remaining Win XP PC can access the p/w-protected Samba shares.

    I just set up a new Windows 7 64-bit Pro PC. Attempts to access the Samba shares by clicking on the Linux box's icon in 'Network' from this machine gave a Logon failure: unknown user name or bad password. message when I gave the correct credentials.

    So I followed the suggestions in Windows 7, connecting to Samba shares (also checked here but found LmCompatibilityLevel was already 1).

    This got me a little further. If click on the Linux box's icon in 'Network' from this machine I now see icons for the shared directories. But when I click on one of these, I get \\LX\share is not accessible. You might not have permission... etc.

    I tried making the Win 7 password the same as my Samba p/w (the user name was already the same). Same result.

    The Linux box does part of what I need for ecommerce - the in-house part, it's not accessible to the Internet. As my Linux Fu is weak, I have to avoid changes to the Linux box, so I'm hoping someone can tell me what to do to Win 7 to make it behave like XP and Vista when accessing this share.

    Help please!?

    Thanks


    Thanks for replying @Randolph. I had set 'Network security: LAN Manager authentication level' to Send LM & NTLM - use NTLMv2 session security if negotiated based on the advice in Windows 7, connecting to Samba shares and had restarted the machine, but that didn't work for me.

    I'll try playing with other Network security values.


    I have now tried the following:

    Network security: Allow Local System to use computer identity for NTLM: changed from Not Defined to "Enabled".

    • Restarted machine

    Still says "\LX\share is not accessible. You might not have permission..." etc.

    Network security: Restrict NTLM: Add remote server exceptions for NTLM Authentication (added LX)

    • Restarted machine

    Still says "\LX\share is not accessible. You might not have permission..." etc.

    I can't see any other Network security settings that might affect this. Any other ideas please?

    Thanks

    Roy

    • Sion
      Sion almost 12 years
      Have you restarted the windows machine after you changed the samba share password?
    • David Woodward
      David Woodward over 7 years
      On the Windows box can you search the Security event log (eventvwr.exe) for failed logon attempts and provide that as a part of your question? I'll be able to offer better advice if I can see the event details. Have you tried authenticating with Win7HostName\username?
    • Kinnectus
      Kinnectus over 5 years
      Are you prompted for credentials when opening a remote directory? make sure you put the remote hostname as the domain (e.g. redhat\redhat_user and the password you created for the red_hat user account). Also, can you post up your smb.conf and highlight the share you've tested that isn't working.
  • Roy Grubb
    Roy Grubb almost 12 years
    Still unable to access from Win 7 though. See question, which I have added to. Roy