smb.conf.5: add clarification how configuration changes reflected by Samba
authorAlexander Bokovoy <ab@samba.org>
Sat, 17 Oct 2020 07:58:12 +0000 (10:58 +0300)
committerKarolin Seeger <kseeger@samba.org>
Fri, 30 Oct 2020 13:54:18 +0000 (13:54 +0000)
Users of Linux distributions know to read smb.conf(5) manual page but
apparently not many of them read smbd(8) and winbindd(8) to understand
how changes to smb.conf file are reflected in the running processes.

Add a small section that makes it clear where to find relevant
information. Also correct the information in smbd, nmbd, and winbindd
manual pages.

The interval at which smbd does check for smb.conf changes was increased
from 60 seconds to 180 seconds in 1999 with commit 3db52feb1f3b.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14538

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Tue Oct 20 08:50:13 UTC 2020 on sn-devel-184

(cherry picked from commit e32846f0692df44b4ee929c5ed6ba1de88ec4bd2)

docs-xml/manpages/nmbd.8.xml
docs-xml/manpages/smb.conf.5.xml
docs-xml/manpages/smbd.8.xml
docs-xml/manpages/winbindd.8.xml

index c145e820770d0c3cf10ab0fefae3277b8a8aa4e8..4ece42f3ca6bb4462ae3841fe54703bebb4deded 100644 (file)
        directory (or the <filename>var/locks</filename> directory configured
        under wherever Samba was configured to install itself). This will also
        cause <command>nmbd</command> to dump out its server database in
-       the <filename>log.nmb</filename> file.</para>
+       the <filename>log.nmb</filename> file. Additionally, the signal will
+       cause reloading <command>nmbd</command> configuration.</para>
+
+        <para>
+        Instead of sending a SIGHUP signal, a request to dump namelists
+        into the file and reload a configuration file may be sent using
+        <citerefentry><refentrytitle>smbcontrol</refentrytitle>
+       <manvolnum>1</manvolnum></citerefentry> program.
+        </para>
 
        <para>The debug log level of nmbd may be raised or lowered
        using <citerefentry><refentrytitle>smbcontrol</refentrytitle>
index f72833c003fdd267a701f73d08dca38c696fc653..c4387187ecc5803cf038617715d1b5daf6c928be 100644 (file)
        </para>
 </refsect1>
 
+<refsect1>
+       <title>HOW CONFIGURATION CHANGES ARE APPLIED</title>
+
+       <para>
+       The Samba suite includes a number of different programs. Some of them operate in a client mode, others are
+       server daemons that provide various services to its clients. The <filename moreinfo="none">smb.conf
+        </filename> file is processed in the following way:
+        </para>
+
+       <itemizedlist>
+               <listitem><para>
+               The Samba suite's client applications read their configuration only once. Any changes made after start aren't
+               reflected in the context of already running client code.
+               </para></listitem>
+
+               <listitem><para>
+               The Samba suite's server daemons reload their configuration when requested. However, already active connections
+               do not change their configuration. More detailed information can be found in
+               <citerefentry><refentrytitle>smbd</refentrytitle><manvolnum>8</manvolnum></citerefentry> and <citerefentry>
+               <refentrytitle>winbindd</refentrytitle><manvolnum>8</manvolnum></citerefentry> manual pages.
+                </para></listitem>
+       </itemizedlist>
+
+       <para>
+       To request Samba server daemons to refresh their configuration, please use
+       <citerefentry><refentrytitle>smbcontrol</refentrytitle><manvolnum>1</manvolnum></citerefentry> utility.
+        </para>
+
+</refsect1>
+
 <refsect1 id="FILEFORMATSECT">
        <title>FILE FORMAT</title>
 
index deba2cad9e2a69a2d4102f75eb8567ac6a25e1ed..73d808c70b735eeb08ca497027d5fb601d90aaf7 100644 (file)
        the copy of the server for that client terminates.</para>
 
        <para>The configuration file, and any files that it includes, 
-       are automatically reloaded every minute, if they change.  You 
-       can force a reload by sending a SIGHUP to the server.  Reloading 
+       are automatically reloaded every three minutes, if they change.
+       One can force a reload by sending a SIGHUP to the server. Reloading
        the configuration file will not affect connections to any service 
        that is already established.  Either the user will have to 
-       disconnect from the service, or <command>smbd</command> killed and restarted.</para>
+       disconnect from the service, or <command>smbd</command> killed and restarted.
+        </para>
+
+        <para>Instead of sending a SIGHUP signal, a request to reload configuration
+       file may be sent using <citerefentry><refentrytitle>smbcontrol</refentrytitle>
+       <manvolnum>1</manvolnum></citerefentry> program.
+        </para>
+
 </refsect1>
 
 <refsect1>
index 71fb248c2041909fb76c88d46803342e44e6f7bc..99c00388c20339a5ad892190d1973dee63788023 100644 (file)
@@ -390,7 +390,12 @@ auth  required    /lib/security/pam_unix.so \
                apply any parameter changes to the running
                version of winbindd.  This signal also clears any cached
                user and group information.  The list of other domains trusted
-               by winbindd is also reloaded.  </para></listitem>
+               by winbindd is also reloaded.
+               </para>
+               <para>Instead of sending a SIGHUP signal, a request to reload configuration
+               file may be sent using <citerefentry><refentrytitle>smbcontrol</refentrytitle>
+               <manvolnum>1</manvolnum></citerefentry> program.
+               </para></listitem>
                </varlistentry>
 
                <varlistentry>