Windows

nmb 不會公佈 samba 股票

  • July 13, 2020

我在 Fedora 伺服器版上使用 samba。但我不明白為什麼任何窗戶都看不到它。它可以連接(直接,使用IP地址)。它基本上可以工作,但我在 linux(使用 nautilus)和 Windows 資源管理器上都看不到它們。

基本:

  • 作業系統:Fedora 伺服器版 32
  • 主機名:beehive.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 explorer 或 nautilus 上宣布它。我錯過了什麼?

先感謝您!

您已關閉 SMBv1(應該如此,它非常不安全)並且網路瀏覽需要 SMBv1。嘗試安裝這個: https ://github.com/christgau/wsdd 它將允許您的 Windows 客戶端使用網路發現查看您的 Samba 機器。

您可能想閱讀“man smb.conf”,您有很多不需要的行,也沒有您需要的行;-)

引用自:https://serverfault.com/questions/1025026