diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2021-06-05 21:48:17 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-06-05 08:19:07 -0700 |
commit | 2936dfbe67ee6b5c2ebdf8eca089bfb2f7cba44f (patch) | |
tree | fc6b0bae0ea8edc3a5cea9f619e606a27b070850 /meta-networking/recipes-connectivity/samba | |
parent | dd422c5467077c14fadec412750c369d2d273e0b (diff) | |
download | meta-openembedded-2936dfbe67ee6b5c2ebdf8eca089bfb2f7cba44f.tar.gz |
samba: update smb.conf
There are some options are deprecated in smb.conf.
Refer to
https://salsa.debian.org/samba-team/samba/-/blob/master/debian/smb.conf
to update it.
* Remove the deprecated "syslog only" and "syslog" global options and
replace them with the "logging" statement.
* Remove wins support and wins server comments since WINS protocol is
outdated.
* Improve idmap config
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/samba')
-rw-r--r-- | meta-networking/recipes-connectivity/samba/samba/smb.conf | 40 |
1 files changed, 11 insertions, 29 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba/smb.conf b/meta-networking/recipes-connectivity/samba/samba/smb.conf index d6bde417f..588491ee6 100644 --- a/meta-networking/recipes-connectivity/samba/samba/smb.conf +++ b/meta-networking/recipes-connectivity/samba/samba/smb.conf | |||
@@ -32,17 +32,6 @@ | |||
32 | # Change this to the workgroup/NT-domain name your Samba server will part of | 32 | # Change this to the workgroup/NT-domain name your Samba server will part of |
33 | workgroup = WORKGROUP | 33 | workgroup = WORKGROUP |
34 | 34 | ||
35 | # Windows Internet Name Serving Support Section: | ||
36 | # WINS Support - Tells the NMBD component of Samba to enable its WINS Server | ||
37 | # wins support = no | ||
38 | |||
39 | # WINS Server - Tells the NMBD components of Samba to be a WINS Client | ||
40 | # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both | ||
41 | ; wins server = w.x.y.z | ||
42 | |||
43 | # This will prevent nmbd to search for NetBIOS names through DNS. | ||
44 | dns proxy = no | ||
45 | |||
46 | #### Networking #### | 35 | #### Networking #### |
47 | 36 | ||
48 | # The specific set of interfaces / networks to bind to | 37 | # The specific set of interfaces / networks to bind to |
@@ -68,14 +57,9 @@ | |||
68 | # Cap the size of the individual log files (in KiB). | 57 | # Cap the size of the individual log files (in KiB). |
69 | max log size = 1000 | 58 | max log size = 1000 |
70 | 59 | ||
71 | # If you want Samba to only log through syslog then set the following | 60 | # We want Samba to only log to /var/log/samba/log.{smbd,nmbd}. |
72 | # parameter to 'yes'. | 61 | # Append syslog@1 if you want important messages to be sent to syslog too. |
73 | # syslog only = no | 62 | logging = file |
74 | |||
75 | # We want Samba to log a minimum amount of information to syslog. Everything | ||
76 | # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log | ||
77 | # through syslog you should set the following parameter to something higher. | ||
78 | syslog = 0 | ||
79 | 63 | ||
80 | # Do something sensible when Samba crashes: mail the admin a backtrace | 64 | # Do something sensible when Samba crashes: mail the admin a backtrace |
81 | panic action = /usr/share/samba/panic-action %d | 65 | panic action = /usr/share/samba/panic-action %d |
@@ -94,10 +78,6 @@ | |||
94 | # new domain. | 78 | # new domain. |
95 | server role = standalone server | 79 | server role = standalone server |
96 | 80 | ||
97 | # If you are using encrypted passwords, Samba will need to know what | ||
98 | # password database type you are using. | ||
99 | passdb backend = tdbsam | ||
100 | |||
101 | obey pam restrictions = yes | 81 | obey pam restrictions = yes |
102 | 82 | ||
103 | # This boolean parameter controls whether Samba attempts to sync the Unix | 83 | # This boolean parameter controls whether Samba attempts to sync the Unix |
@@ -123,8 +103,8 @@ | |||
123 | ########## Domains ########### | 103 | ########## Domains ########### |
124 | 104 | ||
125 | # | 105 | # |
126 | # The following settings only takes effect if 'server role = primary | 106 | # The following settings only takes effect if 'server role = classic |
127 | # classic domain controller', 'server role = backup domain controller' | 107 | # primary domain controller', 'server role = classic backup domain controller' |
128 | # or 'domain logons' is set | 108 | # or 'domain logons' is set |
129 | # | 109 | # |
130 | 110 | ||
@@ -172,15 +152,17 @@ | |||
172 | 152 | ||
173 | # Some defaults for winbind (make sure you're not using the ranges | 153 | # Some defaults for winbind (make sure you're not using the ranges |
174 | # for something else.) | 154 | # for something else.) |
175 | ; idmap uid = 10000-20000 | 155 | ; idmap config * : backend = tdb |
176 | ; idmap gid = 10000-20000 | 156 | ; idmap config * : range = 3000-7999 |
157 | ; idmap config YOURDOMAINHERE : backend = tdb | ||
158 | ; idmap config YOURDOMAINHERE : range = 100000-999999 | ||
177 | ; template shell = /bin/bash | 159 | ; template shell = /bin/bash |
178 | 160 | ||
179 | # Setup usershare options to enable non-root users to share folders | 161 | # Setup usershare options to enable non-root users to share folders |
180 | # with the net usershare command. | 162 | # with the net usershare command. |
181 | 163 | ||
182 | # Maximum number of usershare. 0 (default) means that usershare is disabled. | 164 | # Maximum number of usershare. 0 means that usershare is disabled. |
183 | ; usershare max shares = 100 | 165 | # usershare max shares = 100 |
184 | 166 | ||
185 | # Allow users who've been granted usershare privileges to create | 167 | # Allow users who've been granted usershare privileges to create |
186 | # public shares, not just authenticated ones | 168 | # public shares, not just authenticated ones |