LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2, current, slackware-arm-currnet
Posts: 5,522

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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: 19,897

Rep: Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282
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
LQ Newbie
 
Registered: Jul 2019
Posts: 27

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: 19,897

Rep: Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282Reputation: 3282
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: 19,897

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

smbclient -L windows_ip_address
 
Old 05-22-2020, 08:20 PM   #8
seahawkJa
LQ Newbie
 
Registered: May 2020
Posts: 1

Rep: Reputation: Disabled
Hi all:

Been doing Linux/Samba for quite awhile, but recently setup a new Fedora 32 server with Samba 4.12.2.

I have been getting this problem with a Windows 7 64 Pro trying to access a samba share on the new server.
I can see the server and the share from the Windows computer, but when trying login with correct credentials get "Access denied" message. I have researched this problem without finding a solution, so any help would be appreciated

smbclient -L NEHServer -U myusername
Enter NEH\myusername's password:

Sharename Type Comment
--------- ---- -------
netshare Disk Directory for NEH company
IPC$ IPC IPC Service (Samba Server Version 4.12.2)
SMB1 disabled -- no workgroup available

[root@NEHServer /]#

/etc/samba/smb.conf

[global]
unix charset = UTF-8
workgroup = NEH
server string = Samba Server Version %v
netbios name = NEHSERVER
hosts allow = 127. 192.168.15.
hosts deny = 0.0.0.0
protocol = SMB3
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
load printers = yes
cups options = raw

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

[netshare]
comment = Directory for NEH company
path = /home/netshare
public = no
guest ok = no
valid users = @netshare
write list = @netshare
browseable = yes
writable = yes
create mask = 0770
force create mode = 0770
force group = smbgroup

I have used pretty much the same smb.conf up to Fedora 28 without any problems.
I had also tried min protocol = SMB2 with the same results.

[root@NEHServer home]# ls -l
total 24
drwx------. 3 butch butch 4096 May 20 15:00 butch
drwx------. 2 root root 16384 Jan 25 2016 lost+found
drwxrwx---. 2 butch smbgroup 4096 May 19 15:29 netshare
[root@NEHServer home]#

Any thoughts on a solution would be greatly appreciated.

seahawkJa

Last edited by seahawkJa; 05-22-2020 at 08:24 PM. Reason: Additional info
 
Old 05-23-2020, 04:51 AM   #9
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,521

Rep: Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802Reputation: 802
You have a different issue to the one being discussed by the OP. Always best to start your own thread, rather than tacking onto someone else's. Anyway, review blog this to start with.

Last edited by ferrari; 05-23-2020 at 05:08 AM.
 
  


Reply


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
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 07:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration