1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| [global] #支持文件的软连接 allow insecure wide links = yes wide links = yes unix extensions = no
#照顾老版本windows7 min protocol = SMB2 max protocol = SMB3 client min protocol = SMB2 client max protocol = SMB3
# 每个用户 使用自己独立的配置文件 include = /etc/samba/smb.conf.%U
# 对IOS的特殊支持 # 否则无法将数据上传到SAMBA vfs objects = fruit streams_xattr
#限定产生文件扩展属性+ 限(ACL权限会有一个 "+") #-rw-rw-rw-+ 1 chunli chunli #-rw-rw-rw-+ 1 book book #drwxrwxrwx+ 2 book book fruit:metadata = stream fruit:model = MacSamba fruit:posix_rename = yes fruit:veto_appledouble = no fruit:wipe_intentionally_left_blank_rfork = yes fruit:delete_empty_adfiles = yes fruit:aapl = yes
# visual studio 2019 无法工作在基于SAMBA挂载的磁盘 veto oplock files = /*.mdb/*.MDB/*.dbf/*.DBF/
#防止Windows 客户端 修改文件变成 可执行权限(ACL权限会有一个 "+") # -rw-rwxr--+ 1 root root 8.7K Apr 16 11:43 context.c nt acl support = no
# MACOS 访问Samba 会留下 这种文件 #./chunli/media/01_音乐/.DS_Store #./chunli/media/01_音乐/._.DS_Store veto files = /._*/.DS_Store/ delete veto files = yes
#打开的PDF, 第二天显示无法渲染问题 socket options = SO_KEEPALIVE
# END OF CONFIGURE # END OF CONFIGURE # END OF CONFIGURE
|