LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 01-06-2020, 11:55 AM   #1
gtribe
LQ Newbie
 
Registered: May 2014
Posts: 18

Rep: Reputation: Disabled
Unable to connect to SMB share from Win 10 Workstation


First time installing and setting up samba on a CentOS 7 server. I can connect to the share from a Mac OS computer but can not connect to the share from a Windows 10 workstation on our university domain.

When I try to connect I get the message “The specified network password is not correct”. I’m using the IP to try and connect so the server address is \\ip-address\share and the username is clustershare02\username where clustershare02 is the hostname of the CentOS server. I can ping the server from Windows 10.

Here is my smb.conf file
Code:
[global]
	workgroup = WORKGROUP
	security = user

	passdb backend = tdbsam

	printing = cups
	printcap name = cups
	load printers = yes
	cups options = raw

; [homes]
;	comment = Home Directories
;	valid users = %S, %D%w%S
;	browseable = No
;	read only = No
;	inherit acls = Yes

;[printers]
;	comment = All Printers
;	path = /var/tmp
;	printable = Yes
;	create mask = 0600
;	browseable = No

;[print$]
;	comment = Printer Drivers
;	path = /var/lib/samba/drivers
;	write list = @printadmin root
;	force group = @printadmin
;	create mask = 0664
;	directory mask = 0775

[share]
	path = /media/raid02/samba/share
	writable = yes
	browsable = yes
	guest ok = no
	valid users = @smbgroup
Not sure if this is related but when I check the nmb.service I get this message.
Code:
Jan 06 09:28:54 clustershare02 nmbd[30776]: [2020/01/06 09:28:54.853116,  0] ../source3/nmbd/nmbd_become_lmb.c:533(become_local_master_browser)
Jan 06 09:28:54 clustershare02 nmbd[30776]:   become_local_master_browser: Error - cannot find server CLUSTERSHARE02 in workgroup WORKGROUP on subnet 192.168.122.1
Jan 06 09:33:49 clustershare02 nmbd[30776]: [2020/01/06 09:33:49.351726,  0] ../source3/nmbd/nmbd_become_lmb.c:533(become_local_master_browser)
Jan 06 09:33:49 clustershare02 nmbd[30776]:   become_local_master_browser: Error - cannot find server CLUSTERSHARE02 in workgroup WORKGROUP on subnet 169.230.142.166
Jan 06 09:33:49 clustershare02 nmbd[30776]: [2020/01/06 09:33:49.352411,  0] ../source3/nmbd/nmbd_become_lmb.c:533(become_local_master_browser)
Jan 06 09:33:49 clustershare02 nmbd[30776]:   become_local_master_browser: Error - cannot find server CLUSTERSHARE02 in workgroup WORKGROUP on subnet 192.168.122.1
Jan 06 09:38:57 clustershare02 nmbd[30776]: [2020/01/06 09:38:57.479141,  0] ../source3/nmbd/nmbd_become_lmb.c:533(become_local_master_browser)
Jan 06 09:38:57 clustershare02 nmbd[30776]:   become_local_master_browser: Error - cannot find server CLUSTERSHARE02 in workgroup WORKGROUP on subnet 169.230.142.166
Jan 06 09:38:57 clustershare02 nmbd[30776]: [2020/01/06 09:38:57.479511,  0] ../source3/nmbd/nmbd_become_lmb.c:533(become_local_master_browser)
Jan 06 09:38:57 clustershare02 nmbd[30776]:   become_local_master_browser: Error - cannot find server CLUSTERSHARE02 in workgroup WORKGROUP on subnet 192.168.122.1
 
Old 01-06-2020, 01:08 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,714

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Quote:
cannot find server CLUSTERSHARE02 in workgroup WORKGROUP on subnet 192.168.122.1
When entering the username try just entering the username and not hostname\username.

I believe due to SMB version 1 support being removed there is no automatic lookup between IP addresses and netbios names between linux and Windows. It works between the CentOS and Mac computers because they are both running compatible network discovery services that replaces netbios i.e bonjour on the Mac and avahi on CentOS.

Although not the same thing you can also use filezilla or WinSCP to connect to your CentOS box which uses sftp to transfer files between computers.
 
Old 01-06-2020, 01:12 PM   #3
gtribe
LQ Newbie
 
Registered: May 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
I added ntlm auth = yes in the global section and after I was able to connect to the share from the Win 10 computer.
 
Old 01-06-2020, 01:52 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,714

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Good. I didn't have to on my CentOS 7 system so configuration could be different.
 
Old 01-06-2020, 02:29 PM   #5
gtribe
LQ Newbie
 
Registered: May 2014
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thanks for the reply michaelk, hopefully this helps someone else.
 
Old 01-06-2020, 04:05 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,714

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Just for a frame of reference ntlm auth = yes allows ntlm version 1 clients and above to connect but by default Windows Vista and above should be using ntlm version 2 which is also the samba default. It should not be necessary to use ntlm auth = yes but it depends on how your Windows 10 security options are configured.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMB share keeps asking for password on Win 7 machine road hazard Linux - Newbie 2 08-07-2018 04:29 PM
VMWare workstation 9: SL 6.3 Live DVD in VMWare Workstation:"unable to find the usable disk space" ravik453 Linux - Virtualization and Cloud 3 03-04-2013 02:47 PM
Windows XP x64 workstation won't reconnect drives mapped to smb share wally42 Linux - Networking 2 09-15-2008 03:49 PM
Placing a SMB share inside an NFS share grittyminder Linux - Networking 0 05-14-2008 03:49 AM
printing to <SMB Share> win printer bbaley Linux - General 0 05-28-2003 12:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 02:41 PM.

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