Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
fuss:samba [2017/02/22 18:30] – external edit 127.0.0.1fuss: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/ldap_authentication_backend|use LDAP as an authentication backend]].
 +</WRAP>
  
 To enable the synchronization between shadow and Samba passwords install the ''libpam-smbpass'' module: To enable the synchronization between shadow and Samba passwords install the ''libpam-smbpass'' module:
Line 146: 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.