Linux Admin Steps Into Management

Linux Admin Steps Into Management -

Solution for Windows 7 samba connection problem


A fresh install of windows 7 might have a problem with samba shares,

if you setup samba logging you will see errors like this:

[2009/08/26 09:15:53, 3] smbd/connection.c:yield_connection(76)
yield_connection: tdb_delete for name  failed with error Record does not exist.
[2009/08/26 09:15:53, 3] smbd/server.c:exit_server(614)

although the user was able to connect from a different PC with a different operating system.

I found this great solution for the samba connection problem,

and to break it to a few simple steps:

  1. from the run command or from a cmd window run secpol.msc
  2. go to “Local Policies” -> “Security Options” -> “Network Security: LAN Manager authentication level”
  3. change to “LM and NTLM – use NTLMV2 session security if negotiated”
  4. Press the OK button

This solution worked just fine on a fresh windows 7 install.

Need Help Cleaning up your registry?

Technorati Tags: , ,

  • Ashraful Hoda says:

    this solution works ,, Thanks Bossss

    November 14, 2009 at 6:32 am
  • Richard says:

    Thanks so much! This solution does work. My default setting for that local policy was set to “Not Defined”.

    November 24, 2009 at 7:34 pm
  • Vinay says:

    You are good. Got it working in 30 seconds flat. Thank you

    May 26, 2010 at 10:46 am
  • adders says:

    Having problems opening secpol.msc

    error note – is not recognised as an internal or external opperational programe or batch file

    September 9, 2010 at 8:01 am
  • LvRdHd says:

    is that your pic…. it’s beautiful

    September 13, 2010 at 12:37 pm
    • yonitg says:

      Funny LvRdHd :)
      yeah, its me …

      September 14, 2010 at 5:09 am
  • Lorelei says:

    I can not find the local policies on my compouter

    November 14, 2010 at 7:00 am
    • yonitg says:

      Hi Lorelei,
      This solution is for Windows 7 only,
      which operating system you have there?
      are you using an Admin user?
      to find the local policies try to open the start -> run -> and type there “local” – see what that brings for you.
      let me know if you need more help …

      November 14, 2010 at 11:22 pm
  • BC says:

    This works !!! Thanks

    January 27, 2011 at 8:59 pm
  • Anil raj says:

    But that option to change Network security: LAN Manager authentication level is inactive in my Windows 7 machine. :(… Any clues how to make it active?

    June 23, 2011 at 2:03 am
    • yonitg says:

      Are you logged in as the admin ?
      try to switch users and see if it helps.
      also – maybe your box is a part of a domain, and the domain admins restricted that option?
      if so – you will need to contact your IT team and ask for their help.

      June 23, 2011 at 2:44 am
  • Kj1 says:

    This worked flawless! Thanks!

    September 16, 2011 at 2:56 am
  • palex says:

    I do not have a secpol or gpedit. I have Windows 7 Home Premium (or how you call that bea&$h). Help, please.

    October 6, 2011 at 2:27 pm
  • diggstech says:

    Good solution. Unfortunately secpol.msc is only available on Win7 Pro not Win7 Home edition. I assume those users having problems with finding this script have Win7 Home. Apparently msoft wants the extra $120 upgrade charge to give you this script. Its likely possible to change setting manually in Win7 Home pub it seems to involve more than 40 settings. Looking around the web to see if anyone has yet written a how-to for that.

    November 17, 2011 at 11:37 pm
  • RedErwin says:

    If you have Win7 Home:
    Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
    Create a new DWORD value with the following properties: NAME: LmCompatibilityLevel VALUE: 1

    That’ll save you the $120.. you’re welcome. lol

    December 29, 2011 at 2:00 pm
  • deepflame says:

    that helped me a lot. thanks!

    January 23, 2012 at 1:08 am
  • Someone3x7 says:

    How about a solution to the problem in linux instead?

    February 24, 2012 at 12:52 pm
  • mikeh says:

    Thanks for posting this fix – it worked perfectly on a Win2k* server for me today!

    March 1, 2012 at 5:18 pm
  • Anbarasu says:


    The secpol.msc settingd mentioned works like a charm, But as per our company security policy this change should not be applied to windows 7 systems .Is there anyway to fix this access issue without changing secpol.msc setttings and by adding some parameter in Solaris config file ? 

    Thanks in advance 

    - Anbu


    May 3, 2013 at 5:16 am
  • Amelia says:

    Howdy, i read your blog from time to time and i own
    a similar one and i was just wondering if you get a lot of
    spam comments? If so how do you protect against it, any plugin or anything you can recommend?

    I get so much lately it’s driving me mad so any support is very much appreciated.

    June 1, 2013 at 11:55 pm
  • Jorge says:

    Hi, I have the same problem, and I could ´n solved….Windows 7 Home Premiun, when I try to access to a Samba resource, Access Denied. If I go to another Pc with Xp, and log on with the same user and pass, I have no problem….

    I did your both recomendations: 

    - modify policies ( I have installed gpedit.msc) 

    - and create LmCompatibilityLevel 1

    Unfortunatelly I can ´t resolve my problem, any other idea ? thanks ¡



    June 7, 2013 at 9:52 am

Your email address will not be published. Required fields are marked *