после dist-upgrade до 20.04 перестал работать общий доступ к файлам
, теперь когда я попробуйте подключиться к другому компьютеру Ubuntu, он показывает «Не удается смонтировать расположение - Не удалось получить список общих ресурсов с сервера: недопустимый аргумент»
, как можно устранить неполадки и исправить это как можно проще и проще? и как предотвратить это снова в следующем dist-upgrade? Я думаю, что у меня установлены и samba, и smbclient
(я думаю, что до сих пор использовал только samba, я понятия не имею, как настроить nfs, afp или другие в качестве альтернативных сетевых протоколов, поскольку я никогда использовали их дома)
Are we talking about one Ubuntu 20.04 machine trying to connect to another 20.04 machine?
The problem is somewhat convoluted I'm afraid. Because of a bug in gvfsd-smb-browse the initial contact between client and server is with SMB1. But the version of samba in Ubuntu 20.04 disables SMB1 for security reasons. That is the reference to "invalid argument".
You have two choices:
[1] You could just override the default settings and re-enable SMB1 ( what samba calls NT1 ) on both machines:
Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP
line add:
client min protocol = NT1
server min protocol = NT1
Then reboot the machine
[2] Or, you can leave things as they are by default and bypass gvfsd-smb-browse and connect to the server and its share directly in Connect to Server :
smb://hostname.local/share-name
The connection will be with SMB3.
There is actually a third option and that is a CIFS mount which you can add to /etc/fstab so that it mounts on access of its mount point. If you are interested I can show you how to do that.