LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Unable to connect with SMB1 No Workgroup available (https://www.linuxquestions.org/questions/linux-networking-3/unable-to-connect-with-smb1-no-workgroup-available-4175670814/)

neuromancer190 03-05-2020 05:55 PM

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

camorri 03-05-2020 06:53 PM

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.

michaelk 03-05-2020 08:44 PM

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

rpenny 03-06-2020 02:21 PM

Quote:

Originally Posted by michaelk (Post 6097640)
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

michaelk 03-06-2020 02:55 PM

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.

neuromancer190 03-09-2020 09:56 PM

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

michaelk 03-10-2020 04:22 AM

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

smbclient -L windows_ip_address


All times are GMT -5. The time now is 12:22 PM.