Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 02-20-2012, 03:18 PM   #1
LQ Newbie
Registered: Feb 2012
Posts: 14

Rep: Reputation: Disabled
Samba - Windows - unpredictable behaviour

Hi guys,
Hope you're all doing fine.

I am continuing om my steep learning curve to create a home storage system based on Linux. I am using centos 6.2

I have created lots of shares with various users and am getting intermittent results.
I start to believe there is a bug somewhere.
This is what happens:
1. I create a new user and a password
2. I create a shared folder, a samba share, a samba password
3. The share and the folders show up in Windows 7
4. A Windows 7 logon dialog comes up and I enter the user and the samba password(the same as the user password)
5. Windows rejects my logon "wrong user or password"
6. If I enable "save my credentials" at the logon stage, Windows 7 accepts the logon and displays the files in the shared Linux folder. I can add and modify files across the systems
7. Same user and same password creates a new share and a new folder
8. Windows accepts logon even without enabling "save my credentials". It feels like Windows caches that the first time and matches the new shares and gets a match.
9. It happens roughly 30% of the time that I cannot logon even if I enable "save my credentials". I have confirmed the exact same samba settings.
10. I have tried various settings in the firewall even turned if off
11. I have used "chcon -t samba_share_t /" for the Selinux share. (all shares show as samba share in the permissions). I tried to set Selinux as permissive
12. I configure Samba with Samba Swat Browser based package. Anyone know if its unstable?

Now my questions is: Why is that I cannot logon without enabling "save my credentials" ? I don't want to save that for security reasons.
And, WHY am I not allowed to logon on at all sometimes?
Could it be a setting in Samba that I am unaware of. The Samba menu is maybe more than 100 lines...

Anyone have encounterned similar behaviour ?

Many thanks for your support,

Last edited by velvetbulldozer; 02-20-2012 at 03:33 PM.
Old 02-20-2012, 03:49 PM   #2
Senior Member
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi velvetbulldozer,

Here is the link which will tell you about bit of tweaking that will require on Windows 7 part to access Linux Samba share:

Just follow the section:

protocol = LANMAN2
client lanman auth = yes
client ntlmv2 auth = yes
lanman auth = yes
ntlm auth = yes

Control Panel > Administrative Tools > Local Security Policy (or secpol.msc)

Local Policies > Security Options

Network security: LAN Manager authentication level
Send LM & NTLM responses

Minimum session security for NTLM SSP
Disable Require 128-bit encryption
And that should be it. I did not do any registry tweaking and it worked for me.


samba, windows 7

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unpredictable behaviour with send/recv system call rajeshwar27singh Programming 10 08-01-2011 11:23 AM
unpredictable fencing behaviour (cman & fenced) boeboe2005 Linux - Server 0 03-14-2011 08:18 AM
Fedora 9 background windows behaviour meba Linux - Desktop 4 09-27-2008 06:02 AM
unpredictable wireless behaviour Suse 10.9 ndiswrapper 1.2 davidhilbert Linux - Wireless Networking 1 10-17-2005 03:22 PM
KDE-windows behaviour kirth SUSE / openSUSE 5 01-24-2005 06:10 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration