2021-01-04 14:07:06 +01:00
---
# Global SMB options
2021-12-14 20:26:49 +01:00
## "smb_global_options" = dict
## -option: "smbd option name" <-- value
## value: "smbd value" <-- value
## neue Optionen konnen einfach angehangen werden bzw. alte entfernt werden
smb_global_options :
2021-12-15 08:23:47 +01:00
- option : min protocol
2021-12-14 20:26:49 +01:00
value : "SMB2_02"
2021-12-15 08:23:47 +01:00
- option : client min protocol
2021-12-14 20:26:49 +01:00
value : "SMB2_02"
2021-12-15 08:23:47 +01:00
- option : client max protocol
2021-12-14 20:26:49 +01:00
value : "SMB3_00"
2021-12-15 08:23:47 +01:00
- option : log level
2021-12-14 20:26:49 +01:00
value : "1"
2021-12-15 08:23:47 +01:00
- option : log file
2021-12-14 20:26:49 +01:00
value : "/var/log/samba/log"
2021-12-15 08:23:47 +01:00
- option : max log size
2021-12-14 20:26:49 +01:00
value : "1000"
- option : logging
value : "syslog"
2021-12-15 08:23:47 +01:00
- option : panic action
2021-12-14 20:26:49 +01:00
value : "/usr/share/samba/panic-action_%d"
2021-12-15 08:23:47 +01:00
- option : passdb backend
2021-12-14 20:26:49 +01:00
value : "tdbsam"
2021-12-15 08:23:47 +01:00
- option : obey pam restrictions
2021-12-14 20:26:49 +01:00
value : "no"
2021-12-15 08:23:47 +01:00
- option : unix password sync
2021-12-14 20:26:49 +01:00
value : "no"
2021-12-15 08:23:47 +01:00
- option : passwd program
2021-12-14 20:26:49 +01:00
value : "/usr/bin/passwd_%u"
2021-12-15 08:23:47 +01:00
- option : passwd chat
2021-12-14 20:26:49 +01:00
value : '*Enter\snew\s*\spassword:*_%n\n_*Retype\snew\s*\spassword:*_%n\n_*password\supdated\ssuccessfully*_.'
2021-12-15 08:23:47 +01:00
- option : pam password change
2021-12-14 20:26:49 +01:00
value : "yes"
2021-12-15 08:23:47 +01:00
- option : guest account
2021-12-14 20:26:49 +01:00
value : "nobody"
2021-12-15 08:23:47 +01:00
- option : load printers
2021-12-14 20:26:49 +01:00
value : "no"
2021-12-15 08:23:47 +01:00
- option : unix extensions
2021-12-14 20:26:49 +01:00
value : "yes"
2021-12-15 08:23:47 +01:00
- option : wide links
2021-12-14 20:26:49 +01:00
value : "no"
2021-12-15 08:23:47 +01:00
- option : create mask
2021-12-14 20:26:49 +01:00
value : "0777"
2021-12-15 08:23:47 +01:00
- option : directory mask
2021-12-14 20:26:49 +01:00
value : "0777"
2021-12-15 08:23:47 +01:00
- option : map to guest
2021-12-14 20:26:49 +01:00
value : "Bad User"
2021-12-15 08:23:47 +01:00
- option : use sendfile
2021-12-14 20:26:49 +01:00
value : "yes"
2021-12-15 08:23:47 +01:00
- option : aio read size
2021-12-14 20:26:49 +01:00
value : "16384"
2021-12-15 08:23:47 +01:00
- option : aio write size
2021-12-14 20:26:49 +01:00
value : "16384"
2021-12-15 08:23:47 +01:00
- option : local master
2021-12-14 20:26:49 +01:00
value : "yes"
2021-12-15 08:23:47 +01:00
- option : time server
2021-12-14 20:26:49 +01:00
value : "no"
2021-12-15 08:23:47 +01:00
- option : wins support
2021-12-14 20:26:49 +01:00
value : "no"
2021-12-15 08:23:47 +01:00
- option : acl allow execute always
2021-12-14 20:26:49 +01:00
value : "yes"
2021-12-15 08:23:47 +01:00
- option : force user
2021-12-14 20:26:49 +01:00
value : "root"
2021-12-15 08:23:47 +01:00
- option : force group
2021-12-14 20:26:49 +01:00
value : "users"
- option : workgroup
value : WORKGROUP
2021-12-15 08:23:47 +01:00
- option : server string
2021-12-14 20:26:49 +01:00
value : "%h_server"
2021-12-14 17:05:09 +01:00
2021-02-20 15:58:23 +01:00
# packages
smb_packages :
- samba
- cifs-utils
- samba-common
- samba-common-bin
- samba-vfs-modules
2021-12-14 17:05:09 +01:00
# zfs-snapshots einbinden
## als <Pfad>\.zfs\snapshot einbinden
## sorgt dafur das statt "A0KDC9~F" die Ordnernamen als "autosnap_2021-11-04_23÷59÷02_daily" angezeigt werden
## https://www.samba.org/samba/docs/current/man-html/vfs_catia.8.html
# aktiv?
smb_enable_snapshots_dir : true
# welche Character/zeichen-Ersetzungen soll catia ausführen
smb_catia_mappings : "0x3a:0xf7" # ersetzt ":" durch "÷"
# als Windows-Shattenkopien einbinden
## https://www.samba.org/samba/docs/current/man-html/vfs_shadow_copy2.8.html
## BUG: Windows sieht die Schattenkopien, kann die Ausgewählte Datei aber nicht öffnen wenn sie seit dem Snapshot gelöscht wurde, vmtl da Windows nicht den kompletten Snapshot-Pfad verwendet
## Format ist passend fur sanoid-Snapshots
# aktiv?
smb_enable_snapshots_shadow : false
# wo liegen die Snapshots
smb_shadow_snapdir : ".zfs/snapshot"
# Sortierung
smb_shadow_sort : "desc"
# Datumsformat der Snapshots
smb_shadow_format : "_%Y-%m-%d_%H:%M:%S"
# Snapshot-Präfix
smb_shadow_snapprefix : "^autosnap"
# Snapshot-"Trenner"
smb_shadow_delimiter : "_"
# zeitformat Snapshots
smb_shadow_localtime : "no"