Skip to content

Commit c9c6f66

Browse files
committed
Switch to templated smbd.conf
Clean up and remove old settings Pull in recommendations from https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X
1 parent 5bfc3c6 commit c9c6f66

File tree

1 file changed

+17
-24
lines changed

1 file changed

+17
-24
lines changed

samba-timemachine/samba.conf.tmpl

+17-24
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,29 @@ printcap name = /dev/null
1515
disable spoolss = yes
1616
disable netbios = yes
1717

18-
# Time Machine
19-
durable handles = yes
20-
ea support = yes
21-
fruit:aapl = yes
22-
fruit:advertise_fullsync = true
23-
fruit:model = TimeCapsule6
24-
kernel oplocks = no
25-
kernel share modes = no
26-
map acl inherit = yes
27-
posix locking = no
28-
smb2 leases = yes
29-
vfs objects = catia fruit streams_xattr
18+
# Apple configuration
19+
# Taken from: https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X
20+
vfs objects = fruit streams_xattr
21+
fruit:metadata = stream
22+
fruit:model = TimeCapsule6
23+
fruit:posix_rename = yes
24+
fruit:veto_appledouble = no
25+
fruit:nfs_aces = no
26+
fruit:wipe_intentionally_left_blank_rfork = yes
27+
fruit:delete_empty_adfiles = yes
3028

3129
# Security
32-
username map = /etc/samba/users.map
33-
server max protocol = SMB3
34-
server min protocol = SMB2
35-
client min protocol = SMB2
36-
client max protocol = SMB3
37-
idmap config * : backend = tdb
38-
idmap config * : range = 300000-400000
30+
username map = /etc/samba/users.map
31+
client min protocol = SMB2
32+
server min protocol = SMB2
33+
idmap config * : backend = tdb
34+
idmap config * : range = 300000-400000
3935

4036
[Data]
41-
browseable = Yes
42-
comment = Apple TimeMachine Backup Target
43-
vfs objects = catia fruit streams_xattr
44-
fruit:aapl = yes
4537
fruit:time machine = yes
4638
fruit:time machine max size = REPLACE_TM_SIZEB
47-
inherit acls = Yes
39+
browseable = Yes
40+
comment = Apple TimeMachine Backup Target
4841
path = /backups
4942
read only = No
5043
valid users = timemachine

0 commit comments

Comments
 (0)