#======================= Global Settings ======================= [global] workgroup = {{ smb_workgroup }} server string = %h server dns proxy = no log level = 1 log file = /var/log/samba/log max log size = 1000 logging = syslog panic action = /usr/share/samba/panic-action %d encrypt passwords = true passdb backend = tdbsam obey pam restrictions = no unix password sync = no passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes socket options = TCP_NODELAY IPTOS_LOWDELAY guest account = nobody load printers = no disable spoolss = yes printing = bsd printcap name = /dev/null unix extensions = yes wide links = no create mask = 0777 directory mask = 0777 map to guest = Bad User use sendfile = yes aio read size = 16384 aio write size = 16384 local master = yes time server = no wins support = no acl allow execute always = yes allocation roundup size = 4096 force user = root force group = users #======================= ZFS Snapshots ======================= vfs objects = shadow_copy2 shadow: snapdir = .zfs/snapshot shadow: sort = desc shadow: format = _%Y-%m-%d_%H:%M:%S shadow: snapprefix = ^autosnap shadow: delimiter = _ shadow: localtime = no #======================= Share Definitions ======================= {% for item in smb_freigaben %} [{{ item.freigabename }}] path = {{ item.ordnerpfad }} guest ok = no read only = no browseable = yes inherit acls = yes inherit permissions = no ea support = no store dos attributes = no printable = no create mask = 0664 force create mode = 0664 directory mask = 0775 force directory mode = 0775 hide special files = yes follow symlinks = yes hide dot files = yes valid users = {{ item.lese_nutzer}} {{ item.schreibe_nutzer}} invalid users = read list ={{ item.lese_nutzer}} write list = {{ item.schreibe_nutzer}} {% endfor %}