######### 动态写入配置选项 ######### 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
######## 我的samba共享设置 ######## [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
mkdir -pm 755 /mnt && chmod +x /etc/samba/smb.conf && tee -a /etc/samba/smb.conf <<'EOF' ######## 我的samba共享设置 ######## [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