[global] # --- Βελτιστοποίηση για Raspberry Pi 5 & Windows Clients --- # Κατάργηση παλιών buffers για αυτόματο TCP tuning του Linux Kernel socket options = TCP_NODELAY # Βελτίωση ταχύτητας για χιλιάδες μικρά αρχεία και καταλόγους getwd cache = yes #directory name cache size = 2048 # Βελτιστοποίηση I/O και Latency use sendfile = yes min receivefile size = 16384 aio read size = 16384 aio write size = 16384 # Διαχείριση Sessions και Timeouts (Κρίσιμο για αποφυγή αποσυνδέσεων) keepalive = 30 deadtime = 15 max connections = 100 # Συμβατότητα και Guest Access map to guest = bad user server min protocol = SMB2_10 server max protocol = SMB3 # ----------------------------------------------------------- workgroup = WORKGROUP server string = %h server (Samba, Ubuntu) dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . # 'passwd program'. The default is 'no'. pam password change = yes # This option controls how unsuccessful authentication attempts are mapped # to anonymous connections map to guest = bad user usershare allow guests = yes [printers] comment = All Printers browseable = no path = /var/spool/samba printable = yes guest ok = no read only = yes create mask = 0700 # Windows clients look for this share name as a source of downloadable # printer drivers [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no [Company2025] comment = TaPantaOla path = /mnt/DDE browseable = yes read only = no guest ok = yes public = yes force user = nobody force group = nogroup create mask = 0777 directory mask = 0777 sync always = yes [Backup] comment = Palio path = /mnt/backup/DDE browseable = yes writable = yes read only = no guest ok = yes public = yes force user = nobody force group = nogroup create mask = 0777 directory mask = 0777