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
| [global] # Apple extensions ("AAPL") run under SMB2/3 protocol, make that the minimum (probably shouldn't be running SMB1 anyway...) min protocol = SMB2 # 支持macOS系统的拓展属性 ea support = yes
[home] # 隐藏文件共享的用户登陆后显示家目录 available = no
[foo] comment = foo user samba # 设置 samba 文件目录 path = /tmp/samba # 对其他用户隐藏 hide unreadable = yes access based share enum = yes public = no writable = yes create mask = 0700 # 设置文件共享用户名 valid users = foo
[TimeMachine] comment = TimeMachine Backup path = /raid0/TimeMachine browseable = yes public = no writable = yes create mask = 0700 # 设置 time machine 用户名 valid users = timemachine # 加载模块以支持AAPL拓展,注意顺序很重要! vfs objects = catia fruit streams_xattr # 支持AAPL fruit:aapl = yes # 存储macOS的元数据 fruit:metadata = stream # 设置服务器在finder中的图标 fruit:model = MacSamba # 设置支持Time Machine fruit:time machine = yes # 文件清理相关配置 fruit:posix_rename = yes fruit:veto_appledouble = no fruit:wipe_intentionally_left_blank_rfork = yes fruit:delete_empty_adfiles = yes
|