差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン | 最新のリビジョン両方とも次のリビジョン | ||
linux:samba:setting [2022/05/29 02:00] – [Samba の設定] ともやん | linux:samba:setting [2022/05/29 02:09] – [Samba の設定] ともやん | ||
---|---|---|---|
行 264: | 行 264: | ||
wide links = yes | wide links = yes | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | DietPi の設定例\\ | ||
+ | <WRAP prewrap 100% mincode_long> | ||
+ | <code autoconf / | ||
+ | [global] | ||
+ | unix extensions = no | ||
+ | |||
+ | # UIDとGIDについてUNIX属性の値が反映されるようにする | ||
+ | # | ||
+ | |||
+ | # 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 = / | ||
+ | max log size = 1000 | ||
+ | syslog only = no | ||
+ | syslog = 0 | ||
+ | |||
+ | panic action = / | ||
+ | |||
+ | security = user | ||
+ | encrypt passwords = true | ||
+ | passdb backend = tdbsam | ||
+ | obey pam restrictions = yes | ||
+ | unix password sync = yes | ||
+ | |||
+ | passwd program = / | ||
+ | passwd chat = *Enter\snew\s*\spassword: | ||
+ | pam password change = yes | ||
+ | map to guest = bad user | ||
+ | |||
+ | load printers = no | ||
+ | printcap name = /dev/null | ||
+ | disable spoolss = yes | ||
+ | |||
+ | [homes] | ||
+ | | ||
+ | # | ||
+ | | ||
+ | # read only = yes | ||
+ | read only = no | ||
+ | |||
+ | [DataShare] | ||
+ | comment = Data Share | ||
+ | path = / | ||
+ | browseable = yes | ||
+ | read only = no | ||
+ | wide links = yes | ||
+ | |||
+ | [dietpi] | ||
+ | comment = DietPi Share | ||
+ | path = / | ||
+ | browseable = yes | ||
+ | create mask = 0664 | ||
+ | directory mask = 0775 | ||
+ | valid users = dietpi | ||
+ | writeable = yes | ||
+ | max connections = 2 | ||
</ | </ | ||
</ | </ |