我有 3 个 samba 共享,想用密码保护它们。它们都位于 /media 文件夹中,权限为 777。它们工作正常,直到我尝试用密码保护它们。我搜索了近 2 个小时,但都无济于事。它要么出现登录提示,然后,当我尝试访问它时,Windows 会抛出未知错误。我只想用密码保护它们,用户名:user-xxx,密码:xxxxxxx
欢迎一切帮助:(
顺便说一句:运行最新的 ubuntu-server 和 samba。尝试重新安装 samba,但没有用。
我的smb.conf:
[global]
workgroup = WORKGROUP
security = user
map to guest = Bad Password
[homes]
comment = Home Directories
browsable = no
read only = no
create mode = 0750
[nas]
path = /media/storage/
public = yes
writable = yes
comment = werner-web
printable = no
guest ok = yes
[kodi]
path = /media/kodi/
public = yes
writable = yes
comment = KODI
printable = no
guest ok = yes
[backup]
path = /media/backup/
public = yes
writable = yes
comment = werner-web
printable = no
guest ok = yes
答案1
[global]
workgroup = WORKGROUP
security = user
map to guest = Bad Password
[nas]
path = /media/storage/
public = no
writable = yes
comment = werner-web
create mask=0777
directory mask=0777
[kodi]
path = /media/kodi/
public = no
writable = yes
comment = PLEX
create mask=0777
directory mask=0777
[backup]
path = /media/backup/winbackup
public = yes
writable = yes
comment = werner-web
create mask=0777
directory mask=0777
[Private-Backups]
path = /media/backup
public = no
writable = yes
comment = Closed-Backup
create mask=0777
directory mask=0777
[ROM]
path = /media/backup/ROM
public = yes
writable = no
comment = ROM
create mask=0777
directory mask=0777
顺便说一句:我是个白痴