# 生成新配置 cat > /etc/samba/smb.conf <<'EOF' [global] netbios name = ARS2 interfaces = br-lan server string = Samba on OpenWRT unix charset = UTF-8 workgroup = WORKGROUP bind interfaces only = yes deadtime = 15 enable core files = no security = user map to guest = Bad User null passwords = yes passdb backend = smbpasswd socket options = IPTOS_LOWDELAY TCP_NODELAY load printers = No printcap name = /dev/null disable spoolss = yes printing = bsd mdns name = mdns veto files = /Thumbs.db/.DS_Store/._.DS_Store/.apdisk/ delete veto files = yes
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE max xmit = 131072 min receivefile size = 131072 fake oplocks = Yes use sendfile = Yes aio read size = 0 aio write size = 0 server min protocol = NT1 lanman auth = yes ntlm auth = ntlmv1-permitted
[ARS2] path = /mnt/mydisk force user = root force group = root valid users = root create mask = 0777 directory mask = 0777 read only = no guest ok = no fruit:encoding = native fruit:metadata = stream fruit:veto_appledouble = no vfs objects = catia fruit streams_xattr
[media] path = /mnt/mydisk/media force user = root force group = root valid users = admin create mask = 0777 directory mask = 0777 read only = no guest ok = no fruit:encoding = native fruit:metadata = stream fruit:veto_appledouble = no vfs objects = catia fruit streams_xattr
[TV] path = /mnt/mydisk/TV force user = root force group = root valid users = admin create mask = 0777 directory mask = 0777 read only = no guest ok = no fruit:encoding = native fruit:metadata = stream fruit:veto_appledouble = no fruit:time machine = yes vfs objects = catia fruit streams_xattr EOF
[ARS2] path = /mnt/mydisk force user = root force group = root valid users = root create mask = 0777 directory mask = 0777 read only = no guest ok = no fruit:encoding = native fruit:metadata = stream fruit:veto_appledouble = no vfs objects = catia fruit streams_xattr EOF