Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 377  / 3 Years ago, sun, august 22, 2021, 11:47:14

I have a Ubuntu 20.04 box and a XUbuntu 20.04 box, both with Samba installed. I want to access the Public folder (in my /home directory) on the XUbuntu box from the Ubuntu box. On the XUbuntu box, I've created a share (since the default File Manager - same problem after I installed Nautilus on XUbuntu box - does not give an option for Sharing a Folder) using the Terminal command 'net usershare add Public /home/john/Public' which was accepted. I get the message "Failed to retrieve share list from server: connection timed out" when using Nautilus (on the Ubuntu box, either by clicking on the XUbuntu box name in Networks or Connect to Server). Both boxes have static LAN ip addresses. Help.
PS similar problem when accessing a Folder on the Ubuntu box from the XUbuntu box.


More From » xubuntu

 Answers
4

There is a bug in the gvfs backed of both OS's you are using that forces the initial contact with a server using SMB1. There is no SMB1 on the server since it was disabled for security reasons so it fails.


You have three options:


Reinstate SMB1 ( Samba calls it NT1 ) on both systems.


Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add these two:


server min protocol = NT1
client min protocol = NT1

Then restart the box. Restarting services is not enough you have to reboot.


Bypass the gvfs bug, keep smb.conf as it is, but ask for the server AND it's share explicitly in the file manager:


smb://ip-address-of-the-server/share-name


You can also use the mDNS host name ( host name with a .local attached at the end ) smb://server-host-name.local/share-name


Or you can do a cifs mount which will also bypass the bug since it doesn't use gvfs or the samba client.


I can show you how to do that if you require it.


[#850] Monday, August 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
errettas

Total Points: 160
Total Questions: 118
Total Answers: 91

Location: Laos
Member since Fri, Sep 11, 2020
4 Years ago
;