我在从 Windows PC 访问 Samba 共享时遇到以下问题。Samba 共享旨在无需用户输入用户名或密码即可访问。如果具有 Samba 共享的 PC 在域中,则它可以正常工作。
如果具有 samba 共享的 PC 点对点连接到 Windows PC,则 Windows PC 上需要用户名/密码。更有趣的是,情况并非总是如此,对于某些 PC 来说需要密码,而对于其他 PC 则不需要。
所以我的问题是:为什么当我想通过点对点连接访问 samba 共享时有时需要输入密码?
Samba 配置:
[global]
max log size = 128
load printers = No
show add printer wizard = No
disable spoolss = Yes
domain master = No
security = share
netbios name = %h
server string = %h
workgroup = lgwg
guest account = nobody
invalid users = root
wins support = No
passdb backend = smbpasswd
keep alive = 10
[autologger]
comment = blabla
path = /share
force user = nobody
guest ok = Yes
guest only = Yes
public = Yes
available = Yes
browsable = Yes
writable = Yes
printable = No
read only = No
hide files = /.empty*/.dontremove*
veto files = /.empty*/.dontremove*
hide unreadable = Yes
hide dot files = Yes
hide special files = Yes
答案1
设置来宾帐户 = nobody 至来宾帐户 = ftp 已知这在某些发行版上有效