由于共享仅在我的本地网络上可用,因此我想设置一个不需要用户名/密码的共享。
我正在尝试从我的 Mac Pro 映射共享。我在映射共享与用户身份验证方面没有任何问题。
感谢您的帮助/建议。
这是我的 smb4.conf
[global]
load printers = no
workgroup = myworkgroup
bind interfaces only = yes
interfaces = em0 em1
hosts allow = 192.168.1.0/24 192.168.3.0/24
hosts deny = all
security = user
log file = /var/log/samba4/log.%m
max log size = 1000
interfaces = em0 em1
passdb backend = tdbsam
dns proxy = no
min receivefile size=16384
socket options=IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
use sendfile=true
unix extensions = no
nt acl support = yes
inherit acls = no
map acl inherit = yes
vfs objects = zfsacl
[myshare]
path = /Volumes/storage
public = yes
mag to guest = Bad User
writable = yes
printable = no
create mask = 0664
directory mask = 0775
这是我的文件夹设置。来宾至少应该能够列出文件夹内容。
答案1
我认为你需要添加“guest ok = yes”(参见https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#GUESTOK)