[global] unix extensions = no # UIDとGIDについてUNIX属性の値が反映されるようにする #idmap_ldb:use rfc2307 = yes # Samba 高速化 #socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 SO_KEEPALIVE socket options = TCP_NODELAY SO_KEEPALIVE TCP_KEEPIDLE=120 TCP_KEEPINTVL=10 TCP_KEEPCNT=5 #max protocol = SMB2 # workgroup = WORKGROUP workgroup = MONSTERS-G server string = %h server dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog only = no syslog = 0 panic action = /usr/share/samba/panic-action %d security = user 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* . pam password change = yes map to guest = bad user load printers = no printcap name = /dev/null disable spoolss = yes [homes] comment = Home Directories # browseable = no browseable = yes # read only = yes read only = no [DataShare] comment = Data Share path = /var/samba/DataShare browseable = yes read only = no wide links = yes [dietpi] comment = DietPi Share path = /mnt/dietpi_userdata browseable = yes create mask = 0664 directory mask = 0775 valid users = dietpi writeable = yes max connections = 2