Solution for Windows 7 samba connection problem

samba_linux

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: , ,

23 thoughts on “Solution for Windows 7 samba connection problem”

  1. Having problems opening secpol.msc

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

    1. Hi Adders,
      this fix is for windows 7 – are you trying this in the same OS?
      Does your account have sufficient (admin) rights on the machine for opening the secpol.msc ?
      you can try opening gpedit.msc instead – here is a page explaining the difference between gpedit and secpol:
      http://www.maxi-pedia.com/what+is+the+difference+between+gpedit.msc+and+secpol.msc

      also – maybe some startup services interrupt you from using secpol, try disable un needed startup services and processes with msconfig and try again, here is another link about the same issue with secpol:
      http://groups.google.co.uk/group/microsoft.public.windowsupdate/browse_thread/thread/7371b3470bce04ab/d12ee62e08044122?lnk=st&q=%22cannot+open+secpol.msc%22&rnum=1&hl=en#d12ee62e08044122

      let me know if any of this helped !!!
      good luck :)

    1. 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 …

  2. 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?

    1. 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.

  3. 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.

  4. 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

  5. Hello,

    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

     

  6. 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.

  7. 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 ¡

     

     

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>