我有以下 smb.conf:http://pastebin.com/gCchZQvC
情况是,当我映射共享时,我需要使用我的凭据登录才能创建目录和文件。当我使用应用程序将共享用作写入文件夹时,我遇到了写入权限被拒绝的错误。有没有办法设置 smb,以便子网 192.168.0.0/24 中的每台 PC 都具有匿名读/写访问权限而无需进行身份验证?我认为这就是我遇到错误的原因。
答案1
看来您需要使用guest account
配置选项。它决定了哪个本地 *nix 帐户将用于访客访问。
尝试这样的操作:
[global]
workgroup = WORKGROUP
server string = DareFreeBSD
security = share
hosts allow = 127.0.0.1 192.168.0.0/24
load printers = no
log file = /var/log/samba/log.%m
max log size = 50
dns proxy = no
* * * * *
[music]
comment = Music Share
path = /media/music
writable = yes
guest ok = yes
guest account = musicuser
guest only = yes
[downloads]
comment = torrent downloads
path = /home/rtorrent/download
writable = yes
guest ok = yes
guest account = rtorrent
guest only = yes
* * * * *
更多信息 - 适当samba 文档。