我在 Ubuntu 22.02 服务器上设置了 Samba。我无法使用 Windows 访问共享,但可以使用 Linux。端口 139 和 445 已打开并监听环回和 LAN 接口。我甚至将共享设为公开,以便在没有凭据和连接的情况下对其进行测试。我觉得我错过了什么。我可以从 Windows PC ping 服务器。我在下面包含了 smb.conf。任何帮助都将不胜感激。
[全球的]
workgroup = WORKGROUP netbios name = WORKGROUP passdb backend = smbpasswd security = user client min protocol = NT1 server min protocol = NT1 server string = %h server server role = standalone server interfaces = lo bond0 bind interfaces only = yes disable netbios = yes smb ports = 445, 139 log file = /var/log/samba/smb.log.%m max log size = 10000 log level = 3 passdb:5 auth:5
===== 分享定义 =====
[文件存档]
path = /share/archive/filearchive browseable = yes read only = no force create mode = 0660 force create mode = 2770 valid users = filebackupuser, root public = yes