Can't connect from Windows to samba-4.6.7 on current. Same config works fine on SW14.1/samba-4.2.1-x86_64-1
Hi,
I have installed current on my working partition and I find that I can no longer connect from my Windows PC's to the Linux server. Connection from Android still works fine though. The package is samba-4.6.7-x86_64-1. Of course I have the users added to samba, and I can connect from Android. If I boot from an older partition running Slackware-14.1 with samba-4.2.1-x86_64-1, then I can connect from Windows. I tried to go back to older samba packages but that soon breaks other things (mplayer). I didn't succeed at rebuilding the samba-4.2.1 package on current. Anyone knows if something special needs to be done when migrating. Thanks |
Two quick questions: what version of Windows and how does the failure occur? That is, what message does Windows give, and what does the samba log file say? Most of these are authentication problems and are resolved with a trivial tweak to smb.conf. I vaguely recall having to deal with this issue last samba upgrade, but that was some time ago.
|
Quote:
I am running Windows-7 on two older TabletPC's. The message I get from Windows after I have entered my credentials is "The specified network password is not correct." Obviously there is an issue in the communication of the credentials between Windows7 and Samba. To answer your question, I first clear older log files from /var/log/samba then do "Map network drive" from the PC. Afterwards there is a single empty log file /var/log/samba/log.192.168.1.104 sitting in the log directory. I can confirm that the same procedure works fine when I boot the older Linux partition. I tested with the initial smb.conf file copied from the older Linux partition. Then I edited that file to reflect information I found when googling on that problem and none of the suggested changes had any impact on the functionality. Here is the content of my current smb.conf. Code:
[global] |
You should try to find something interestind about Samba in /var/log/syslog file.
|
Agree with above, there should be *some* indication that permission was refused by samba, maybe in the syslog.
You mentioned fixes you found by googling, however I don't see any in smb.conf. Did you try lanman auth = yes, for example? Yeah I know, probably not the issue. I'd also check on smbpasswd; I seem to recall that you had to redo the password for the new samba install. I'll check on my install when I get a chance to see if there's something else that comes to mind. |
Strangely there is no message recorded in either syslog, messages or /var/log/samba except that the files log.192.168.1.104 and log.pc4 are created empty.
Yes I have redone the password data base at one point; I thought maybe the new version of samba uses a different database so I re-made the database to make sure everything is upgraded. I first needed to correct smb.conf as follows to be able to change my password. I changed the password and still the password is not recognized from Windows. Code:
hosts allow = 192.168.1. 127.0.0.1 |
Quote:
hosts allow = 127.0.0.1, 192.168.1 Maybe the comma matters? Best, Lumpy |
I will try that Uncle Lumpy.
I set 'log level =2' in smb.conf and here is the result after running 'net use x: \\pc3\richard /u:richard' on the PC. Quote:
(Edit) I checked in my PC using secpol.msc and the current setting of LAN manager authentification level is 'use NTLMv2 session security if negotiated'. If someone can make something out of that. |
I think I have the solution to this problem. The following line needs to be added to smb.conf. I got that tip from this site.
Code:
ntlm auth = yes Thank's to every one on this thread for contributing. |
Additionally, the current build of Samba (or is it the newer version of Samba itself) breaks my symbolic links. Windows says "You do not have access to ..." where ... denotes the name of a symlinked directory. The symlink is within the tree of the path declared in smb.conf but is outside the user /home/user path.
Again that problem occurs only when I connect to my Samba running Linux PC from my windows7 tablet PC's. I don't have the problem when connecting from an Android phone. So this is a Windows-Samba specific issue. Quote:
Quote:
|
Thank you, adding "ntlm auth = yes" solved my problem with WinPE (based on Windows10) not connecting to samba server 4.7.6 with default settings in smb.conf.
|
All times are GMT -5. The time now is 05:07 AM. |