Solution for Windows 7 samba connection problem

   Share

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

Share

Related posts:

  1. How to Debug Samba Server and solve user connection problems
  2. Apache and MySQL on windows
  3. installing wordpress on windows
  4. solaris 10 and vnc
  5. Apache Active Directory Authentication

18 Responses to “Solution for Windows 7 samba connection problem”

  1. Ashraful Hoda  on November 14th, 2009

    this solution works ,, Thanks Bossss

    Reply

  2. Richard  on November 24th, 2009

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

    Reply

  3. Vinay  on May 26th, 2010

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

    Reply

  4. adders  on September 9th, 2010

    Having problems opening secpol.msc

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

    Reply

  5. LvRdHd  on September 13th, 2010

    yonitg
    question….
    is that your pic…. it’s beautiful

    Reply

    • yonitg  on September 14th, 2010

      Funny LvRdHd :)
      yeah, its me …

      Reply

  6. Lorelei  on November 14th, 2010

    I can not find the local policies on my compouter

    Reply

    • yonitg  on November 14th, 2010

      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 …

      Reply

  7. BC  on January 27th, 2011

    This works !!! Thanks

    Reply

  8. Anil raj  on June 23rd, 2011

    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?

    Reply

    • yonitg  on June 23rd, 2011

      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.

      Reply

  9. Soralis 11のsambaにWindows 7から接続できない | Silence is golden.  on August 20th, 2011

    [...] Solution for Windows 7 samba connection problem | Linux Admin Steps Into Management [...]

    Reply

  10. Kj1  on September 16th, 2011

    This worked flawless! Thanks!

    Reply

  11. palex  on October 6th, 2011

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

    Reply

  12. diggstech  on November 17th, 2011

    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.

    Reply

  13. RedErwin  on December 29th, 2011

    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

    Reply

  14. deepflame  on January 23rd, 2012

    that helped me a lot. thanks!

    Reply


Leave a Reply