Samba 共享在网络上不可见

Samba 共享在网络上不可见

我正在尝试设置几个 Samba 共享,但它们在我的 Windows 客户端上不可见。我可以从客户端 ping 服务器,反之亦然,我通过 SSH 访问服务器,而且我使用 CUPS 设置的打印服务器仍然运行良好,所以我知道服务器仍然在线。

我将在这里介绍版本号和硬件;我有一个运行 Raspbian 9.6 Stretch headless 的 Raspberry Pi 3B+,我有一个 2tb USB 驱动器作为存储介质,并且我正在运行 Samba 版本 4.5.12-Debian,防火墙已被禁用。

我还应该花点时间提一下,所有这些问题都是在我关闭 Raspberry Pi 并将其转移到外壳中后开始的。

至于客户端,他们都运行 Windows 10 1607 个人版或 LTSB 版。

我的 Samba 配置文件如下;

# "testparm" to check that you have not made any basic syntactic 
# Written for Bistack on Raspberry Pi



#======================= Global Settings =======================
[global]
## Core Networking Options ##
    netbios name        = Bistack
    workgroup           = Cadosphere
    encrypt passwords   = yes
    min protocol        = smb2

## Domain Control Settings ##
    domain master       = yes
    local master        = yes
    preferred master    = yes
    security            = user

## Netbios Name Service Settings ##
    wins support        = yes
    dns proxy       = no

## Debugging/Accounting ##
    log file        = /var/log/samba/log.%m
    log level       = 1
    max log size        = 1000
    panic action        = /usr/share/samba/panic-action %d

## Authentication ##
    server role     = standalone server
    passdb backend      = tdbsam
    obey pam restrictions   = yes
    unix password sync  = no
    passwd program      = /usr/bin/passwd %u
    passwd chat     = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    pam password change = yes
    map to guest        = bad user
    ntlm auth       = true  



#======================= Share Definitions =======================
## Core Samba shares and networked devices ##
[homes]
    comment     = Home Directories  
    browseable  = no
    read only   = yes
    create mask = 0700
    directory mask  = 0700
    valid users = %S

[profiles]
    comment     = Users profiles
    path        = /home/samba/profiles
    guest ok    = no
    browseable  = no
    create mask = 0600
    directory mask  = 0700

[printers]
    comment     = All Printers
    browseable  = no
    path        = /var/spool/samba
    printable   = yes
    guest ok    = no
    read only   = yes
    create mask = 0700

[print$]
    comment     = Pointer for Windows clients to find the proper Printer Drivers
    path        = /var/lib/samba/printers
    browseable  = yes
    read only   = yes
    guest ok    = no

## Multi-User General Shares ##
[cadosphere]
    comment     = Network folder for Cadosphere projects
    path        = /~/nas/cadosphere
    valid users = matt
    admin users = cadosphere
    read only   = no
    browseable  = yes
    public      = yes
    writeable   = yes

[shared]
    comment     = Network folder for anyone on the network
    path        = /~/nas/shared
    gues        = okay
    read ony    = no
    browseable  = yes
    public      = yes
    writeable   = yes

## Single-User Dedicated Shares ##
[matt]
    comment     = Matts network share
    path        = /~/nas/matt
    valid users = matt
    force user  = matt
    read only   = no
    browseable  = yes
    public      = yes
    writeable   = yes

检查那里的日志smbd没有任何异常,也没有任何错误。但是nmbd每次我尝试启动/重新启动时,日志都会出现此错误nmbd

[2019/01/28 10:37:53.650901, 0] ../source3/nmbd/nmbd_browsesync.c:354 (find_domain_master_name_query_fail) 
    find_domain_master_name_query_fail:
    Unable to find the Domain Master Browser name CADOSPHERE<lb> for the workgroup CADOSPHERE.
    Unable to sync browse lists in this workgroup.

到目前为止,我已经尝试用以下方法解决这篇关于 Linux 问题的文章Ubuntu 论坛上的这篇文章以及 Samba 邮件列表中的这篇文章,以及互联网上的其他各种链接。

编辑 #1:如果我在桌面上创建服务器的快捷方式,我就可以访问共享,但您无需任何密码即可访问其中任何一个。此外,我无法将共享映射到系统上的驱动器,也无法通过文件资源管理器访问服务器,只能通过桌面上的快捷方式访问。

相关内容