Can't access SMB server on EndeavourOS

Fluff: Hi, I’m new to both linux and this specific OS, so please be patient with me and tell me the exact commands I need to run to give you help

I can’t access my sambashare, but I’ve been able to on my windows laptop and also my old linuxmint system. Nothing has changed since then, so I need a bit of help setting it up on this device.
I’ve looked at other posts here but I’ve gotten confused. In this one it mentions editing /etc/nsswitch.conf but when I look in that file it doesn’t mention any enable or disable things like the post mentions.

# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.
# mdns_minimal added for local hostname resolution by EndeavourOS

passwd: files systemd
group: files [SUCCESS=merge] systemd
shadow: files systemd
gshadow: files systemd

publickey: files

hosts: mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] file>
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

The other one is more confusing for me because the person is talking about the host computer instead of the client (which I’m struggling to access on) and I don’t believe I need to edit my smb.conf since it worked on 3 other devices (my windows laptop, my old linux mint install, my phone).
To be clear the error is: I can’t find it in the GUI (which happened on my linux mint install so I don’t consider it weird), so I try to join it manually by doing smb://192.[the rest]/sambashare , however, it searches for it for a while and then doesn’t open, saying:

Could not display “smb://[IP]/sambashare/” Error: Failed to mount Windows share: Connection timed out. Please select another viewer and try again.

The host is running on ubuntu if that matters. I can’t think of any more information I should share.

The computer that has the desired files you want to access is the Server. The computer that is requesting data is the client.

It sounds to me like you are trying to use EnOS as a client to access files on a ubuntu based server using SMB.

If you are trying to access files from one Linux machine to another Linux machine, SMB is not the best method and not the most secure method.

IMHO it would be better to use ssh and sshfs to accomplish this.

Pudge

EDIT: try to disable the firewall in the EnOS computer.

sudo systemctl stop firewalld

This should disable the firewall until the next reboot.

See if you can connect with the firewall disabled.

1 Like

Yep that worked.

It sounds to me like you are trying to use EnOS as a client to access files on a ubuntu based server using SMB.
If you are trying to access files from one Linux machine to another Linux machine, SMB is not the best method and not the most secure method.

Out of curiousity what’s your recommendation for file sharing because I wanted to do samba just because I wanted to see the GUI for the files on my end and also be able to access them on my phone. Can you do that with ssh? I assumed you couldn’t.

I guess if I could run both at the same time (just because my phone only supports SMBv2/SMBv3, FTP and SFTP) maybe it could be an option but still I’d prefer GUI, since it’s a lot of images and I’d like to see the preview.

since you want to share across several devices would it not be better to set up a next cloud server?

1 Like

I did try that originally but I couldn’t figure it out, I might try it again. Thank you for reminding me.

I’m sure there are several in here who run a next cloud server that would be willing to help.

How is your Ubuntu server set up? Headless or with keyboard, mouse, and display with a Desktop Environment?

Have you set the firewall on the EnOS machine to allow SMB?
I am not that familiar with SMB but I think to have the firewall active and allow SMB:
Right Click on the firewall icon on the panel. click “Edit FIrewall Settings”
Follow the instructions on Post 8 of this Topic

Pudge

Oh this worked. Thank you so much. I think I will give Nextcloud a go anyway but thanks a lot for the help everyone.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.