On Linux mint 20 Cinnamon
Unable to connect to samba share.
BTW: Same share is easily accessible on another pc running windows 7.
On Linux mint 20 Cinnamon
Unable to connect to samba share.
BTW: Same share is easily accessible on another pc running windows 7.
It would help us a lot in helping you, if you would provide a very detailed and elaborate step by step description of what exactly you tried to do and what exactly the results of those actions were.
Step 1: Open Nemo (File Browser version 4.6.5) available by default in Statusbar Panel
Step 2: Select Menu βFileβ
Step 3: Select Sub Menu βConnect to Serverβ
Step 4: Enter all required details on next window regarding the windows shares.
Step 5: Click Connect Button availabe on window.
Step 6: Read the error that has prompted on top.
Those are the steps I perform every time.
Thanks for responding.
Is it correct, that no port has to be explicitly provided?
Can you connect to this IP address (and port?) with ncat
or telnet
?
Can you connect to this Samba share with the same details from a different computer, perhaps even with Windows on it?
Dear Akito, Below are the answers.
Is it correct, that no port has to be explicitly provided? >>> Yes
Can you connect to this IP address (and port?) with ncat
or telnet
? >>> I have no idea about these tools and how to use them. But I can confirm that ping is working.
Also, I am able to access a web server running on same machine through web browser firefox and hence I believe that connectivity is not a problem.
Can you connect to this Samba share with the same details from a different computer, perhaps even with Windows on it? >>> Yes, they are working fine on another, same network, windows PC
These answers help a lot, thank you.
This article shows a couple of possible ports of which one is most likely used for your Samba share.
To check what ports are accessible from your machine, first install netcat
:
sudo apt update
sudo apt install -y netcat
Then save the following script, run it and post its results in this thread.
#!/bin/bash
## https://www.cyberciti.biz/faq/what-ports-need-to-be-open-for-samba-to-communicate-with-other-windowslinux-systems/
declare -r address="192.168.29.6"
declare -a port_list=( \
137 \
138 \
139 \
389 \
445 \
901
)
for port in "${port_list[@]}"; do
nc -vzw5 "${address}" "${port}" && \
echo "Successfully connected to \"${address}:${port}\"!" || \
echo "Failed to connect to \"${address}:${port}\"."
done
echo "Done."
nc: connect to 192.168.29.6 port 137 (tcp) failed: Connection refused
Failed to connect to β192.168.29.6:137β.
nc: connect to 192.168.29.6 port 138 (tcp) failed: Connection refused
Failed to connect to β192.168.29.6:138β.
Connection to 192.168.29.6 139 port [tcp/netbios-ssn] succeeded!
Successfully connected to β192.168.29.6:139β!
nc: connect to 192.168.29.6 port 389 (tcp) failed: Connection refused
Failed to connect to β192.168.29.6:389β.
Connection to 192.168.29.6 445 port [tcp/microsoft-ds] succeeded!
Successfully connected to β192.168.29.6:445β!
nc: connect to 192.168.29.6 port 901 (tcp) failed: Connection refused
Failed to connect to β192.168.29.6:901β.
Done.
All this is very weird. Perhaps a nemo
specific issue.
If you are fine with using something else, perhaps you should try a client different from nemo
.
Thanks.
The reddit link did the work.
"edit the file /etc/samba/smb.conf
Under [global] section, add the following:
client min protocol = CORE
Save smb.conf and exit."