LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-05-2020, 05:55 PM   #1
neuromancer190
LQ Newbie
 
Registered: Mar 2020
Posts: 2

Rep: Reputation: Disabled
Unable to connect with SMB1 No Workgroup available


Hi. First post so here goes.
I've been going mad trying to connect to my win 10 box from manjaro (latest release). Finally found i needed to install smb1 on windows. I've read that this protocol is insecure so my question is : How do I make Manjaro use smb2 or 3?
Cheers and thanks in advance
neuromancer190
 
Old 03-05-2020, 06:53 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
To answer your question, in the Global section of your smb.conf file, add a line "protocol = SMB3" ( without the quotes, and restart samba.

I dought this will fix your problem, so, if it doesn't, popst some more information. What version of Samba,
post your smb.conf file and any errors you are seeing.

I also strongly suggest you do some searching for Windows 10 connecting to linux. I would bet some of your problems are in Win 10.
 
Old 03-05-2020, 08:44 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
Welcome to LinuxQuestions.

Neither samba or smb.conf are installed by default which is version 4.10. However, the default settings in the smb.conf file configures client min protocol = SMB2 which should be also be the min protocol for Win 10.

However, the file browser should have a built in samba client and while you may not be able to browse and find the Win 10 computer you can directly enter its IP address/share name. Which file browser depends on the desktop and the basic syntax is:

smb://IP_address/share_name

Last edited by michaelk; 03-05-2020 at 08:47 PM.
 
Old 03-06-2020, 02:21 PM   #4
rpenny
Member
 
Registered: Jul 2019
Posts: 82

Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Welcome to LinuxQuestions.

Neither samba or smb.conf are installed by default which is version 4.10. However, the default settings in the smb.conf file configures client min protocol = SMB2 which should be also be the min protocol for Win 10.
Half way there, but wrong Samba version, you need 4.11.0 upwards to default to SMBv2, on earlier versions you need to add:

client min protocol = SMB2_02
server min protocol = SMB2_02

To the global part of smb.conf to turn off SMBv1
 
Old 03-06-2020, 02:55 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
Quote:
However, the default settings in the smb.conf file configures client min protocol = SMB2 which should be also be the min protocol for Win 10.
Well, I couldn't remember the version but I did post the default smb.conf already has the directive client min protocol = SMB2. I can connect successfully to my W10 system from Manjaro using the file browser and mounting a share from the command line without additional changes.
 
Old 03-09-2020, 09:56 PM   #6
neuromancer190
LQ Newbie
 
Registered: Mar 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Still no connection

Sorry about late response: Hard drive died.
Info: version of samba 4.10.10

smb.conf

[global]
workgroup = WORKGROUP
dns proxy = no
log file = /var/log/samba/%m.log
max log size = 1000
client min protocol = SMB2
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
pam password change = yes
map to guest = Bad Password
usershare allow guests = yes
name resolve order = lmhosts bcast host wins
security = user
guest account = nobody
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare owner only = yes
force create mode = 0070
force directory mode = 0070
client min protocol = SMB2_02
server min protocol = SMB2_02
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba

[shares]
path = /home/jon/Music
printable = yes
guest ok = yes
read only = no
create mask = 0755

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no

iptables:
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Hope this is what's needed

Neuromancer190
 
Old 03-10-2020, 04:22 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
I way to verify if you can see the windows 10 shares is using the smbclient utility.

smbclient -L windows_ip_address
 
  


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
LXer: Years late to the SMB1-killing party, Samba finally dumps the unsafe file-sharing protocol version by default LXer Syndicated Linux News 0 07-09-2019 12:23 PM
Samba timestamps SMB1 vs. SMB3 HansPL Linux - Server 0 03-14-2018 01:45 PM
smb4k failing to connect to windows workgroup fitzy85 Linux - Software 0 05-29-2004 01:13 PM
Trying to connect to my windows WORKGROUP... cj_thomas Linux - Networking 6 05-26-2003 09:53 AM
Is there a way to connect a pc to linux through just a workgroup and not a domain? duel Linux - Networking 1 09-21-2001 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:06 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