AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1550232
Accepted
KidACrimson
KidACrimson
Asked: 2020-05-10 09:33:45 +0800 CST2020-05-10 09:33:45 +0800 CST 2020-05-10 09:33:45 +0800 CST

SMB 共享连接错误:“出现系统错误 53。找不到网络路径。” 但仅在某台Win10机器上,其他机器正常

  • 772

我的 RPie3 上有一个 SMB“samba”共享设置。我所有其他机器都可以正常连接,但我的主要 Win10 机器不能。我已经排除了 DNS,也排除了 SMB 版本(正在使用 SMB2),所以我很难过。

更新:这只是一个复古游戏系统。我根本不希望或不需要它是安全的,我只是希望它能够工作。

这是我在工作机器上得到的,通过 CMD.exe 进行测试:

C:\>ping RetroPie -4

Pinging RetroPie.myDomain.local [192.168.3.56] with 32 bytes of data:
Reply from 192.168.3.56: bytes=32 time=6ms TTL=64
Reply from 192.168.3.56: bytes=32 time=10ms TTL=64
Reply from 192.168.3.56: bytes=32 time=8ms TTL=64
Reply from 192.168.3.56: bytes=32 time=5ms TTL=64

Ping statistics for 192.168.3.56:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 5ms, Maximum = 10ms, Average = 7ms

C:\>net view \\RetroPie
Shared resources at \\RetroPie

Samba 4.9.5-Debian

Share name     Type  Used as  Comment

-------------------------------------------------------------------------------
configs        Disk           configs
homes          Disk           Home Directories
roms           Disk           roms
splashscreens  Disk           splashscreens
The command completed successfully.

...这是我的非工作 Win10 机器的相同测试:

PS C:\> ping -4 RetroPie                                                                                             
Pinging RetroPie.MyDomain.local [192.168.3.56] with 32 bytes of data:
Reply from 192.168.3.56: bytes=32 time=5ms TTL=64
Reply from 192.168.3.56: bytes=32 time=7ms TTL=64
Reply from 192.168.3.56: bytes=32 time=5ms TTL=64
Reply from 192.168.3.56: bytes=32 time=5ms TTL=64

Ping statistics for 192.168.3.56:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 5ms, Maximum = 7ms, Average = 5ms
PS C:\> net view \\RetroPie
System error 53 has occurred.

The network path was not found.

PS C:\> net view \\192.168.3.56
System error 53 has occurred.

The network path was not found.

EDIT1:我已经排除的事情:

  1. Windows 防火墙
  2. Windows Defender 防病毒软件
  3. SMB1 正在使用中(在我的 Win10 机器上暂时启用它)

EDIT2 - 这是我的smb.conf文件(有 2 个,不清楚需要哪个,所以我将两者都包括在内 - 请注意,#为简洁起见,所有以注释开头的行都已删除):

pi@retropie:/ $ 猫。/etc/samba/smb.conf

[global]
   workgroup = drewz.local
   client max protocol = SMB3
   client min protocol = SMB2
   server max protocol = SMB2
;   interfaces = 127.0.0.0/8 eth0
;   bind interfaces only = yes
   log file = /var/log/samba/log.%m
   max log size = 1000
   logging = file
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   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
;   logon path = \\%N\profiles\%U
;   logon drive = H:
;   logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
; add group script = /usr/sbin/addgroup --force-badname %g
;   include = /home/samba/etc/smb.conf.%m
;   idmap config * :              backend = tdb
;   idmap config * :              range   = 3000-7999
;   idmap config YOURDOMAINHERE : backend = tdb
;   idmap config YOURDOMAINHERE : range   = 100000-999999
;   template shell = /bin/bash
   usershare allow guests = yes
[homes]
   comment = Home Directories
   browseable = yes
   read only = yes
   create mask = 0700
   directory mask = 0700
   valid users = %S
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700
;   write list = root, @lpadmin
[roms]
comment = roms
path = "/home/pi/RetroPie/roms"
browsable = yes
writeable = yes
guest ok = yes
read only = no
create mask = 0644
directory mask = 0755
force user = pi
[configs]
comment = configs
path = "/opt/retropie/configs"
writeable = yes
guest ok = yes
create mask = 0644
directory mask = 0755
force user = pi
[splashscreens]
comment = splashscreens
path = "/home/pi/RetroPie/splashscreens"
writeable = yes
guest ok = yes
create mask = 0644
directory mask = 0755
force user = pi

pi@retropie:/ $ cat /usr/share/samba/smb.conf

[global]
   workgroup = drewz.local
   client max protocol = SMB3
   client min protocol = SMB2
   server max protocol = SMB2
;   interfaces = 127.0.0.0/8 eth0
;   bind interfaces only = yes
   log file = /var/log/samba/log.%m
   max log size = 1000
   logging = file
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   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
;   logon path = \\%N\profiles\%U
;   logon drive = H:
;   logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
; add group script = /usr/sbin/addgroup --force-badname %g
;   include = /home/samba/etc/smb.conf.%m
;   idmap config * :              backend = tdb
;   idmap config * :              range   = 3000-7999
;   idmap config YOURDOMAINHERE : backend = tdb
;   idmap config YOURDOMAINHERE : range   = 100000-999999
;   template shell = /bin/bash
   usershare allow guests = yes
[homes]
   comment = Home Directories
   browseable = no
   read only = yes
   create mask = 0700
   directory mask = 0700
   valid users = %S
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes
;[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 = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
;   write list = root, @lpadmin
windows-10 networking
  • 2 2 个回答
  • 4404 Views

2 个回答

  • Voted
  1. Best Answer
    harrymc
    2020-05-17T22:29:13+08:002020-05-17T22:29:13+08:00

    该问题的解决方案基于对帖子 无法连接到共享(系统错误 1272)的答案,尽管只需要该答案的一部分。

    以下行需要更新smb.conf:

       [global]
       client min protocol = SMB3
       client max protocol = SMB3
       restrict anonymous = 2
       encrypt passwords = true
    

    答案建议删除 的行map to guest = bad user,尽管对于没有此行的海报,无法访问网络共享。

    • 5
  2. Rob
    2021-12-11T05:30:58+08:002021-12-11T05:30:58+08:00

    补充一点——Windows net 命令中的错误消息 53 并不是很有帮助。有一些与 Netbios 等相关的旧页面,这里不是这种情况。如果您使用 Ubuntu 或类似的设备来挂载 nfsd,您应该使用谷歌搜索。即这个页面 https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-20-04

    对我来说 /etc/exports 配置不正确。我需要添加这个(并重新启动 linux 系统)

    /mnt/TestFiles 172.16.16.0/24(rw,no_subtree_check,no_root_squash)

    此外,默认情况下没有 nfs 日志记录。为此,请运行此命令。

    rpcdebug -m nfsd -s proc

    从这个页面:https ://www.serverstack.com/blog/2012/11/21/debugging-nfs-file-access-on-server-and-client-side/index.html

    “您现在可以通过在 NFS 客户端创建和删除文件来测试服务器上的日志记录:

    [root@nfs-client ~]# cd /mnt/nfs && touch test && rm -rf test

    默认情况下,调试消息将记录在 NFS 服务器上的 /var/log/messages 中。"

    • 1

相关问题

  • VMware Workstation USB 仲裁服务无法自动启动

  • 如何在域和 Linux 活动目录中启用指纹传感器

  • 资源管理器侧面板中的桌面外壳快捷方式

  • 为什么我不能将文件从 Android 发送到 Windows 10?

  • 在多个文件上打开方式?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    v15 为什么通过电缆(同轴电缆)的千兆位/秒 Internet 连接不能像光纤一样提供对称速度? 2020-01-25 08:53:31 +0800 CST
  • Martin Hope
    fixer1234 “HTTPS Everywhere”仍然相关吗? 2019-10-27 18:06:25 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve