我对设置Samba股票并不陌生,我想让它投入工作还相距一英寸。我正在使用的配置文件如下。当我连接到共享时,可以很好地读取文件并将其复制到本地计算机上,但是当我尝试使用OSX写入共享时,即使设置了用户名和密码,我仍会被要求输入用户名和密码。作为具有访客访问权限的公共共享。

我是否缺少设置?感谢您的帮助!

Killall SMBD
Killall nmbd
睡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没有人/ etc / passwd ||回声'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

最佳答案

尝试类似

;guest only = yes
valid users = @unknown, @guest
guest ok = yes


因此,指示samba使用OS X的本机用户数据库。

关于linux - 公共(public)Samba共享配置-不可写?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6088290/

10-11 23:15