我尝试在家庭服务器上设置 Samba,但它不要求输入密码。
我做错了什么?
[global]
workgroup = WORKGROUP
security = user
map to guest = Bad User
wins support = no
dns proxy = no
[share]
path = /media/storage/share
guest ok = no
valid users = @securedgroup, @usergroup
browsable = yes
writable = yes
[admin]
path = /media/storage/admin
valid users = @securedgroup
guest ok = no
browsable = yes
writable = yes
答案1
猜测主要是因为你有这个:'map to guest = Bad User',你没有创建任何 Samba 用户。试着读一下: https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server
您实际上并不需要该行,因为您在两个共享上都设置了“映射到访客 = 否”(并且您实际上并不需要它们,它们是默认设置)。
答案2
改变
valid users
用户列表(而非群组列表)选项可能会有所帮助。