nmb 不会公布 samba 股票

nmb 不会公布 samba 股票

我在 Fedora Server Edition 上使用 samba。但我不明白为什么任何窗口都看不到它。它连接(直接,使用 IP 地址)。它基本有效,但我在 Linux(使用 nautilus)和 Windows 资源管理器上都看不到它们。

基本:

  • 操作系统:Fedora 服务器版本 32
  • 主机名:bienenstock.local
  • 桑巴:4.12.5-0.fc32.x64_64
  • 防火墙正在运行(允许 Samba - 我可以直接连接)
  • SELinux 正在强制执行(读取/写入共享正常)
$ systemctl status nmb smb
● nmb.service - Samba NMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/nmb.service; enabled; vendor preset: disabled)
     Active: active (running) since Mon 2020-07-13 11:31:32 CEST; 29min ago
       Docs: man:nmbd(8)
             man:samba(7)
             man:smb.conf(5)
   Main PID: 2577 (nmbd)
     Status: "nmbd: ready to serve connections..."
      Tasks: 2 (limit: 4516)
     Memory: 4.0M
        CPU: 568ms
     CGroup: /system.slice/nmb.service
             ├─2577 /usr/sbin/nmbd --foreground --no-process-group
             └─2586 /usr/sbin/nmbd --foreground --no-process-group

Jul 13 11:47:04 bienenstock.local nmbd[2577]: [2020/07/13 11:47:04.016820,  0] ../../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
Jul 13 11:47:04 bienenstock.local nmbd[2577]:   find_domain_master_name_query_fail:
Jul 13 11:47:04 bienenstock.local nmbd[2577]:   Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
Jul 13 11:47:04 bienenstock.local nmbd[2577]:   Unable to sync browse lists in this workgroup.

● smb.service - Samba SMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled)
     Active: active (running) since Mon 2020-07-13 11:31:33 CEST; 29min ago
       Docs: man:smbd(8)
             man:samba(7)
             man:smb.conf(5)
   Main PID: 2587 (smbd)
     Status: "smbd: ready to serve connections..."
      Tasks: 5 (limit: 4516)
     Memory: 9.2M
        CPU: 409ms
     CGroup: /system.slice/smb.service
             ├─2587 /usr/sbin/smbd --foreground --no-process-group
             ├─2598 /usr/sbin/smbd --foreground --no-process-group
             ├─2600 /usr/sbin/smbd --foreground --no-process-group
             ├─2602 /usr/sbin/smbd --foreground --no-process-group
             └─2669 /usr/sbin/smbd --foreground --no-process-group

Jul 13 11:31:32 bienenstock.local systemd[1]: Starting Samba SMB Daemon...
Jul 13 11:31:33 bienenstock.local systemd[1]: Started Samba SMB Daemon.
Jul 13 11:31:33 bienenstock.local smbd[2587]: [2020/07/13 11:31:33.151454,  0] ../../lib/util/become_daemon.c:135(daemon_ready)
Jul 13 11:31:33 bienenstock.local smbd[2587]:   daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
testparm -s
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain master = No
    load printers = No
    logging = systemd
    logon drive = P:
    logon home = \\%L\%U\.9xprofile
    logon path = \\%L\profiles\.msprofile
    map to guest = Bad User
    name resolve order = bcast host
    printcap name = /dev/null
    server min protocol = SMB2
    usershare owner only = No
    wins support = Yes
    idmap config * : backend = tdb
    create mask = 0774
    directory mask = 0774
    hosts allow = localhost 192.168.25.
    include = /etc/samba/dhcp.conf
    invalid users = bin daemon ftp games lp mail man messagebus news ntp postfix root sshd statd usbmux uucp wwwrun avahi plex
    printing = bsd
    valid users = meh bine

[homenet]
    comment = Homenet
    path = /srv/homenet
    write list = meh bine

## and some others, but for sake of length of this writing I reduced the length

如您所见,两个守护进程均已启动并正在运行(但我不明白为什么“域主名称查询”失败...... - 可能相关?)。

遗憾的是,在互联网上查找仅发现与 samba、SELinux 等相关的问题。但这有效,唯一无效的是在 Windows 资源管理器或 Nautilus 上宣布它。我遗漏了什么?

先感谢您!

答案1

您已关闭 SMBv1(应该关闭,因为它非常不安全),而网络浏览需要 SMBv1。请尝试安装此软件: https://github.com/christgau/wsdd 它将允许您的 Windows 客户端使用网络发现查看您的 Samba 机器。

您可能需要阅读“man smb.conf”,其中有相当多的行您不需要,而没有一行您需要;-)

相关内容