我是设立Samba股票的新手,我认为距离它的工作还有一英寸的距离。我正在使用的配置文件如下。当我连接到共享时,我可以正确读取文件并将它们复制到我的本地计算机,但是当我尝试写入共享(使用OSX)时,我被要求输入用户名&密码,即使我已将其设置为具有访客访问权限的公共共享。
我错过了一个设置吗?感谢您的帮助!
killall smbd 基拉尔恩布德 睡2个。
mkdir -p / tmp / etc / samba 回声“
[全球]
netbios name = DD-WRT
workgroup = WORKGROUP
server string = DD-WRT
syslog = 10
obey pam restrictions = yes
socket options = TCP_NODELAY
preferred master = no
os level = 20
security = share
guest account = nobody
invalid users = root, mail, deamon, reboot
null passwords = yes
guest only = yes
map to guest = Bad User
private dir = /tmp/etc/samba/
lock directory = /var/lock/
pid directory = /var/run/
unix charset = UTF-8
dos charset = UTF-8
map archive = No
map hidden = No
map system = No
[共享]
path = /mnt/
read only = no
create mask = 0700
directory mask = 0700
writeable = yes
browseable = yes
“> /tmp/etc/samba/smb.conf
grep -q nobody / etc / passwd || echo'nobody:x:65534:65534:nobody:/ mnt:/ bin / false'>> / etc / passwd中
SMBOPTIONS =“ - s /tmp/etc/samba/smb.conf” / usr / sbin / smbd $ SMBOPTIONS / usr / sbin / nmbd $ SMBOPTIONS
答案 0 :(得分:-1)
尝试类似
的内容;guest only = yes
valid users = @unknown, @guest
guest ok = yes
因此,请指示samba使用OS X的本机用户数据库。