Solution for Windows 7 samba connection problem
Share
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:
- from the run command or from a cmd window run secpol.msc
- go to “Local Policies” -> “Security Options” -> “Network Security: LAN Manager authentication level”
- change to “LM and NTLM – use NTLMV2 session security if negotiated”
- Press the OK button
This solution worked just fine on a fresh windows 7 install.
Need Help Cleaning up your registry?
Related posts:
- How to Debug Samba Server and solve user connection problems
- Apache and MySQL on windows
- installing wordpress on windows
- solaris 10 and vnc
- Apache Active Directory Authentication
18 Responses to “Solution for Windows 7 samba connection problem”
Leave a Reply





Ashraful Hoda on November 14th, 2009
this solution works ,, Thanks Bossss
Richard on November 24th, 2009
Thanks so much! This solution does work. My default setting for that local policy was set to “Not Defined”.
Vinay on May 26th, 2010
You are good. Got it working in 30 seconds flat. Thank you
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
yonitg on September 10th, 2010
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
LvRdHd on September 13th, 2010
yonitg
question….
is that your pic…. it’s beautiful
yonitg on September 14th, 2010
Funny LvRdHd
yeah, its me …
Lorelei on November 14th, 2010
I can not find the local policies on my compouter
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 …
BC on January 27th, 2011
This works !!! Thanks
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?
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.
Soralis 11のsambaにWindows 7から接続できない | Silence is golden. on August 20th, 2011
[...] Solution for Windows 7 samba connection problem | Linux Admin Steps Into Management [...]
Kj1 on September 16th, 2011
This worked flawless! Thanks!
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.
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.
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
deepflame on January 23rd, 2012
that helped me a lot. thanks!