我有一台 Linux(Ubuntu)服务器,上面有几个用户,我允许他们的主文件夹通过 smb 访问。
但是,为了让他们访问该文件夹,我需要使用 smbpasswd -a 用户名
这是为什么?在身份验证时,难道不应该只参考他们用于 ssh 进入服务器的实际用户名和密码吗?
我的配置:
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = myserver
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no
wins support = yes
local master = yes
preferred master = yes
server min protocol = SMB2_10
client max protocol = SMB3
client min protocol = SMB2_10
encrypt passwords = true
[homes]
comment = Home Directories
browseable = yes
read only = no
create mask = 0700
directory mask = 0700
valid users = %S