This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
fuss:samba [2018/02/11 09:48] – [Enable Synchronization between Shadow and Samba Passwords] office | fuss:samba [2020/12/11 10:18] – [Enable Synchronization between Shadow and Samba Passwords] office | ||
---|---|---|---|
Line 150: | Line 150: | ||
passwd chat = *Enter\snew\s*\spassword: | passwd chat = *Enter\snew\s*\spassword: | ||
pam password change = yes | pam password change = yes | ||
+ | </ | ||
+ | |||
+ | ====== Enable Volume Shadow Copies with ZFS ====== | ||
+ | |||
+ | If the underlying filesystem supports shadow copies then Samba can be made to utilize shadow copies. On Debian, first install '' | ||
+ | <code bash> | ||
+ | aptitude install zfs-auto-snapshot | ||
+ | </ | ||
+ | |||
+ | and then enable the '' | ||
+ | < | ||
+ | [global] | ||
+ | ... | ||
+ | vfs_objects = shadow_copy2 | ||
+ | shadow: snapdir = .zfs/ | ||
+ | shadow: sort = desc | ||
+ | shadow: format = zfs-auto-snap_%S-%Y-%m-%d-%H%M | ||
+ | shadow: | ||
+ | </ | ||
+ | |||
+ | ====== Performance with ZFS ====== | ||
+ | |||
+ | At the time of writing, ZFS does not have sendfile support, so make sure to disable it for a performance boost and particularly if timeouts are to be observed: | ||
+ | < | ||
+ | use sendfile = no | ||
</ | </ | ||