Nei*_*eil 22 linux file-sharing samba
我设置了这样的共享:
[global]
security = user
map to guest = Bad Password
usershare allow guests = yes
[vms]
comment = VirtualBox Virtual Machines
path = /home/neil/VirtualBox/HardDisks
guest ok = yes
read only = yes
Run Code Online (Sandbox Code Playgroud)
当我以自己的身份访问共享并输入我的密码时,它工作正常:
$ smbclient //neil-ubuntu/vms -U neil
Enter neil's password:
Domain=[SHUTTERSTOCK] OS=[Unix] Server=[Samba 3.4.0]
smb: \>
Run Code Online (Sandbox Code Playgroud)
但是当我以访客身份访问它时,它不起作用:
$ smbclient //neil-ubuntu/vms -U guest
Enter guest's password:
Domain=[SHUTTERSTOCK] OS=[Unix] Server=[Samba 3.4.0]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Run Code Online (Sandbox Code Playgroud)
不管我输入什么密码。
有谁知道为什么?
另外,为什么 smbclient 会打印这些无用的错误消息?
use*_*517 15
我记得有一个这样的问题。我认为这是由路径中某处缺少读取的目录权限引起的。检查路径的目录权限是否为 755。
如果路径不存在,也会返回此错误。