Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
fuss:samba [2018/02/11 09:48] – [Enable Synchronization between Shadow and Samba Passwords] officefuss:samba [2020/12/11 10:18] – [Enable Synchronization between Shadow and Samba Passwords] office
Line 150: Line 150:
 passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
 pam password change = yes pam password change = yes
 +</code>
 +
 +====== 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 ''zfs-auto-snapshot'':
 +<code bash>
 +aptitude install zfs-auto-snapshot
 +</code>
 +
 +and then enable the ''shadow_copy2'' vfs object:
 +<code>
 +[global]
 +...
 +    vfs_objects = shadow_copy2
 +    shadow: snapdir = .zfs/snapshot
 +    shadow: sort = desc
 +    shadow: format = zfs-auto-snap_%S-%Y-%m-%d-%H%M
 +    shadow:localtime = no
 +</code>
 +
 +====== 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:
 +<code>
 +use sendfile = no
 </code> </code>
  

fuss/samba.txt · Last modified: 2024/02/22 05:35 by office

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.