This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
fuss:samba [2017/02/22 18:30] – external edit 127.0.0.1 | fuss:samba [2020/12/11 10:18] – [Enable Synchronization between Shadow and Samba Passwords] office | ||
---|---|---|---|
Line 131: | Line 131: | ||
====== Enable Synchronization between Shadow and Samba Passwords ====== | ====== Enable Synchronization between Shadow and Samba Passwords ====== | ||
+ | |||
+ | <WRAP info> | ||
+ | The Samba-PAM password sync module has been deprecated. An alternative is to [[samba/ | ||
+ | </ | ||
To enable the synchronization between shadow and Samba passwords install the '' | To enable the synchronization between shadow and Samba passwords install the '' | ||
Line 146: | 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 | ||
</ | </ | ||