LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-29-2020, 10:10 AM   #1
h.cohen
LQ Newbie
 
Registered: Aug 2020
Location: Japan
Distribution: Centos 6 and 8
Posts: 3

Rep: Reputation: Disabled
Windows 10 client isn't listing share advertisements from a samba 4.11 server


I had samba working as a standalone server on a Centos 8 server and a windows 10 client.
Then I upgraded to samba 4.11 and everything broke down.

Here's the smb.conf file

Quote:
[global]
path = /srv/smb
writeable = yes
security = user
netbios name = konishiki
wins support = yes
local master = yes
preferred master = yes
client min protocol = SMB2
client max protocol = SMB3
sync always = yes
socket options = TCP_NODELAY
passdb backend = tdbsam
workgroup = WORKGROUP
log level = 2
unix password sync = no
vfs objects = acl_xattr
map acl inherit = yes
wins support = yes
username map = /etc/samba/smbusers
admin users = hank, hankwin hcohe
[homes]
inherit acls = Yes
browseable = no
writable = yes
path = /home
comment = Home Directories
[hankwin]
path = /srv/smb/hankwin/
read only = no
[hank]
path = /srv/smb/hank
read only = no
create mask = 777
On the server side, [konishiki was the biggest sumo wrestler in history so I use his name for my big file server] smbclient gives me the following report:
Quote:
[root@konishiki samba]# smbclient -L localhost -U%

Sharename Type Comment
--------- ---- -------
hankwin Disk
hank Disk
IPC$ IPC IPC Service (Samba 4.11.2)
SMB1 disabled -- no workgroup available
Seems to me that what I want is for SMB1 to be disabled. That's the big improvement in samba 4.0 but why is no workgroup available?

On the client side (akaoninoko is my client) net view gives this:

Quote:
C:\Users\hcohe>net view
Server Name Remark
-------------------------------------------------------------------------------
\\AKAONINOKO
The command completed successfully.
Obviously, akaoninoko doesn't see the shares from konishiki.
Name resolution is working and I can ping between all hosts without any problems.
I have run netshark on both interfaces and confirmed that browsing messages are being passed around and konishiki has won the election to be local master but the windows 10 client doesn't seem to have gotten the message. (pcap available on request).

Other things I have tried:
I uninstalled SMB1 support on the client but that led to a worse condition where the net view command generated a system error.
[sorry I would like to show the error message but I would need to uninstall SMB1 support again and reboot which takes a lot of time.]

Any suggestions would be greatly appreciated.

Hank
 
Old 08-29-2020, 02:45 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,766

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Welcome to LinuxQuestions.

Just as a side note:

path = /srv/smb
admin users = hank, hankwin hcohe
vfs objects = acl_xattr
map acl inherit = yesmap acl inherit = yes
writeable = yes
sync always = yes

These parameters are all defined for a share and do not belong in the global section. You can run testparm to check your smb.conf file. Without SMB1 enabled on the server there is no NETBIOS browsing from Windows 10 but you should be able to directly connect to a share via the file browser by manually entering the share i.e.

\\konishiki\hankwin
 
1 members found this post helpful.
Old 08-29-2020, 04:14 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,838

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
Originally Posted by h.cohen View Post
I had samba working as a standalone server on a Centos 8 server and a windows 10 client.
Then I upgraded to samba 4.11 and everything broke down.

Here's the smb.conf file


On the server side, [konishiki was the biggest sumo wrestler in history so I use his name for my big file server] smbclient gives me the following report:

Seems to me that what I want is for SMB1 to be disabled. That's the big improvement in samba 4.0 but why is no workgroup available?
With SMBv1 disabled by default (for well known security reasons), NetBIOS browsing/discovery is history. However, Windows 10 can discover hosts via the WS-Discovery protocol if desired, and for Linux Samba servers this can be implemented using wsdd or the newer wsdd2 (written in C)...

https://github.com/Andy2244/wsdd2

Not all distros have packages available yet, but not hard to build yourself if required. FWIW, I'm using it with openSUSE Leap 15.2 (and KDE repos enabled). The Dolphin file manager (version 20.04.0+) now has the ability to discover Windows hosts using the WS-Discovery protocol (as well as Linux Samba hosts via Avahi).

This is also on the cards for Gnome Files (Nautilus)...
https://gitlab.gnome.org/GNOME/gvfs/-/issues/506

Last edited by ferrari; 08-29-2020 at 06:38 PM.
 
1 members found this post helpful.
Old 08-29-2020, 06:31 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,838

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
An online search turned up this wsdd package for Centos 8...
https://centos.pkgs.org/8/epel-x86_6...oarch.rpm.html
Quote:
wsdd implements a Web Service Discovery host daemon. This enables (Samba)
hosts, like your local NAS device, to be found by Web Service Discovery Clients
like Windows.
No wsdd2 package as of yet (but this is still a viable option IMHO).
 
1 members found this post helpful.
Old 08-29-2020, 10:22 PM   #5
h.cohen
LQ Newbie
 
Registered: Aug 2020
Location: Japan
Distribution: Centos 6 and 8
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks

MichaelK,
Thanks for the tips.
It makes sense that these parameters should be associated with individual shares however testparm never reported any errors.
Is that a bug?

Regards
Hank C.
 
Old 08-29-2020, 10:29 PM   #6
h.cohen
LQ Newbie
 
Registered: Aug 2020
Location: Japan
Distribution: Centos 6 and 8
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by ferrari View Post
With SMBv1 disabled by default (for well known security reasons), NetBIOS browsing/discovery is history. However, Windows 10 can discover hosts via the WS-Discovery protocol if desired, and for Linux Samba servers this can be implemented using wsdd or the newer wsdd2 (written in C)...

https://github.com/Andy2244/wsdd2

Not all distros have packages available yet, but not hard to build yourself if required. FWIW, I'm using it with openSUSE Leap 15.2 (and KDE repos enabled). The Dolphin file manager (version 20.04.0+) now has the ability to discover Windows hosts using the WS-Discovery protocol (as well as Linux Samba hosts via Avahi).

This is also on the cards for Gnome Files (Nautilus)...
https://gitlab.gnome.org/GNOME/gvfs/-/issues/506
Ferrari,
Thanks for this. I installed wsdd from the epel repo and was able to mount the shares explicitly.
net view on windows still does not list the konishiki server but it did appear in the file explorer net server list after I mounted the share.
That looks like a bug for Microsoft.
 
Old 08-30-2020, 03:57 AM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,838

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
Originally Posted by h.cohen View Post
Ferrari,
Thanks for this. I installed wsdd from the epel repo and was able to mount the shares explicitly.
As expected.

Quote:
net view on windows still does not list the konishiki server but it did appear in the file explorer net server list after I mounted the share.
That looks like a bug for Microsoft.
I'm not sure how net view should work in networks where NetBIOS is disabled. What I do know is that it does list shares when a hostname is used explicitly
Code:
net view \\<hostname>
That is much like the samba command 'smbclient' in a SMB2/SMB3 environment, whereby an explicit hostname is needed eg
Code:
smbclient -L //nas01.local
 
Old 08-30-2020, 04:04 AM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,838

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
FWIW, a couple of Microsoft threads confirming that "net view" relied on the Computer Browser service for discovery, which in turn relied on SMBv1 protocol (now disabled in Linux and Windows servers by default)...
https://social.technet.microsoft.com...tpronetworking
https://www.tenforums.com/network-sh...t-present.html
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
sftp ls command, short listing vs long listing slufoot80 Linux - General 3 02-05-2013 10:40 AM
LXer: Saab IQon and Linux: when Open Source isn’t Open, and your car isn’t really yours LXer Syndicated Linux News 0 03-08-2011 01:10 PM
How to share a printer attached to windows xp client from Ubuntu 8.04 client dipakds Linux - Newbie 1 06-15-2009 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:43 AM.

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