source: networking/netprogs/samba.xml@ 5761707

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 5761707 was 5761707, checked in by Tim Tassonis <stuff@…>, 11 months ago

Mention how to build samba without dbus.

  • Property mode set to 100644
File size: 49.4 KB
RevLine 
[0931098]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[0931098]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[676876ba]7 <!ENTITY samba-download-http "https://download.samba.org/pub/samba/stable/samba-&samba-version;.tar.gz">
[1c73261]8 <!ENTITY samba-download-ftp " ">
[68cae62]9 <!ENTITY samba-md5sum "4e9695d7b8b714e09e8275b318079a78">
10 <!ENTITY samba-size "40 MB">
11 <!ENTITY samba-buildsize "587 MB (add 73 MB for quicktest)">
[a647555]12 <!ENTITY samba-time "1.7 SBU (using parallelism=4; add 0.3 SBU for quicktest)">
[0931098]13]>
[cdddf067]14
[45f56ac]15<sect1 id="samba" xreflabel="Samba-&samba-version;">
16 <?dbhtml filename="samba.html"?>
[99ef1fc]17
18
[45f56ac]19 <title>Samba-&samba-version;</title>
[99ef1fc]20
[45f56ac]21 <indexterm zone="samba">
[99ef1fc]22 <primary sortas="a-Samba">Samba</primary>
23 </indexterm>
24
[4e82a189]25 <sect2 role="package">
[99ef1fc]26 <title>Introduction to Samba</title>
27
[b51fe6e]28 <para>
29 The <application>Samba</application> package provides file and print
30 services to SMB/CIFS clients and Windows networking to Linux clients.
31 <application>Samba</application> can also be configured as a Windows
32 Domain Controller replacement, a file/print server acting as a member
[cdddf067]33 of a Windows Active Directory domain and a NetBIOS (RFC1001/1002)
[b51fe6e]34 nameserver (which among other things provides LAN browsing support).
35 </para>
[99ef1fc]36
[4b6e2b2]37 &lfs113_checked;
[ee792ef]38
[99ef1fc]39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
[b51fe6e]42 <para>
43 Download (HTTP): <ulink url="&samba-download-http;"/>
44 </para>
[99ef1fc]45 </listitem>
46 <listitem>
[b51fe6e]47 <para>
48 Download (FTP): <ulink url="&samba-download-ftp;"/>
49 </para>
[99ef1fc]50 </listitem>
51 <listitem>
[b51fe6e]52 <para>
53 Download MD5 sum: &samba-md5sum;
54 </para>
[99ef1fc]55 </listitem>
56 <listitem>
[b51fe6e]57 <para>
58 Download size: &samba-size;
59 </para>
[99ef1fc]60 </listitem>
61 <listitem>
[b51fe6e]62 <para>
63 Estimated disk space required: &samba-buildsize;
64 </para>
[99ef1fc]65 </listitem>
66 <listitem>
[b51fe6e]67 <para>
68 Estimated build time: &samba-time;
69 </para>
[99ef1fc]70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Samba Dependencies</bridgehead>
74
[e85edcc]75 <bridgehead renderas="sect4">Required</bridgehead>
[7cae14c]76 <para role="required">
[bfa397b]77 <xref linkend="gnutls"/>,
[7d25056d]78 <xref linkend="jansson"/>,
[1aa7410a]79 <xref linkend="perl-json"/>,
[51f8de3]80 <xref linkend="libtirpc"/>,
[64e4b6f1]81 <xref linkend="lmdb"/>,
82 <xref linkend="perl-parse-yapp"/>, and
[51f8de3]83 <xref linkend="rpcsvc-proto"/>
[7cae14c]84 </para>
[e85edcc]85
[6e08e9c0]86 <bridgehead renderas="sect4">Recommended</bridgehead>
[e242b9a]87 <para role="recommended">
[d514a90]88 <phrase revision="sysv"><xref linkend="dbus"/> (for vfs_snapper, which is
89 useful on systems that support Volume Shadow Copies on Windows),</phrase>
[d38746e]90 <xref linkend="fuse3"/>,
[60d4af1]91 <xref linkend="gpgme"/>,
[c8635a0]92 <xref linkend="icu"/>,
[94bdff09]93 <xref linkend="libtasn1"/>,
[2f81d97a]94 <xref linkend="libxslt"/> (for documentation),
[64e4b6f1]95 <xref linkend="linux-pam"/>, and
[94b42903]96 <xref linkend="openldap"/>
[6e08e9c0]97 </para>
98
[99ef1fc]99 <bridgehead renderas="sect4">Optional</bridgehead>
[7cae14c]100 <para role="optional">
[5f1ca9f]101 <xref linkend="avahi"/>,
[8c602db7]102 <xref linkend="bind"/>,
[7cae14c]103 <xref linkend="cups"/>,
[3fdc9b0]104 <xref linkend="cyrus-sasl"/>,
105 <xref linkend="gdb"/>,
106 <xref linkend="git"/>,
[48771ae]107 <xref linkend="gnupg2"/> (required for ADS and test suite),
[d38746e]108 <xref linkend="libaio"/>,
[64e4b6f1]109 <xref linkend="libarchive"/> (for tar in smbclient),
[5f1ca9f]110 <xref linkend="libcap-pam"/>,
[3fdc9b0]111 <xref linkend="libgcrypt"/>,
[3310eeb1]112 <xref linkend="libnsl"/>,
[d2ec0e0]113 <xref linkend="libunwind"/>,
[5ca14bdd]114 <xref linkend="mitkrb"/>,
[3fdc9b0]115 <xref linkend="nss"/>,
[5f1ca9f]116 <xref linkend="popt"/>,
[e5f33088]117 <xref linkend="talloc"/> (included),
[3fdc9b0]118 <xref linkend="vala"/>,
[5f1ca9f]119 <xref linkend="valgrind"/> (optionally used by the test suite),
[7cae14c]120 <xref linkend="xfsprogs"/>,
[e650cfe9]121 <ulink url="https://cmocka.org/">cmocka</ulink>,
[6e2729c]122 <ulink url="https://cryptography.io/en/latest/">cryptography</ulink>,
[e5f33088]123 <ulink url="https://ctdb.samba.org/">ctdb</ulink> (included),
[8c602db7]124 <ulink url="https://cwrap.org/">cwrap</ulink>,
125 <ulink url="&pypi;/dnspython/">dnspython</ulink>,
[c7b1dcc]126 <ulink url="https://packages.debian.org/stretch/fam">FAM</ulink>,
[6b7a631]127 <ulink url="https://packages.debian.org/sid/gamin">Gamin</ulink>,
[0f5f10b]128 <ulink url="https://www.gluster.org/">GlusterFS</ulink>,
[a5f7042]129 <ulink url="https://github.com/heimdal/">Heimdal</ulink> (included),
[6e2729c]130 <ulink url="https://pypi.org/project/iso8601/">iso8601</ulink>,
[f89b587]131 <ulink url="https://ldb.samba.org/">ldb</ulink> (included),
[e5f33088]132 <ulink url="&pypi;/m2crypto">M2Crypto</ulink> (required for ADS),
[75e3e09]133 <ulink url="https://www.openafs.org/">OpenAFS</ulink>,
[6e2729c]134 <ulink url="https://pypi.org/project/pyasn1/">pyasn1</ulink>,
[e5f33088]135 <ulink url="&pypi;/pygpgme/">PyGPGME</ulink> (recommended for ADS),
[676876ba]136 <ulink url="https://tevent.samba.org/">tevent</ulink> (included),
137 <ulink url="https://tdb.samba.org/">tdb</ulink> (included), and
138 <ulink url="https://download.gnome.org/sources/tracker/2.3/">tracker-2</ulink>
[f1607a4]139 </para>
[6dcdcde]140
[e5f33088]141 <bridgehead renderas="sect4">Optional (for the Developer Test Suite)</bridgehead>
[b51fe6e]142 <para role="optional">
143 Install in listed order:
144 <xref linkend="six"/>,
[8b819c5]145 <xref linkend="pytest"/>,
[b51fe6e]146 <ulink url="&pypi;/argparse/">argparse</ulink>,
147 <ulink url="&pypi;/extras/">extras</ulink>,
148 <ulink url="&pypi;/hypothesis/">hypothesis</ulink>,
149 <ulink url="&pypi;/coverage/">coverage</ulink>,
150 <ulink url="&pypi;/pytest-cov/">pytest-cov</ulink>,
151 <ulink url="&pypi;/doctools/">doctools</ulink>,
152 <ulink url="&pypi;/unittest2/">unittest2</ulink>,
153 <ulink url="&pypi;/testtools/">testtools</ulink>,
154 <ulink url="&pypi;/fixtures/">fixtures</ulink>,
155 <ulink url="&pypi;/python-mimeparse/">python-mimeparse</ulink>,
156 <ulink url="&pypi;/contextlib2/">contextlib2</ulink>,
157 <ulink url="&pypi;/traceback2/">traceback2</ulink>,
158 <ulink url="&pypi;/linecache2/">linecache2</ulink>,
159 <ulink url="&pypi;/testscenarios/">testscenarios</ulink>,
160 <ulink url="&pypi;/testresources/">testresources</ulink>,
161 <ulink url="&pypi;/virtualenv/">virtualenv</ulink>,
162 <ulink url="&pypi;/pbr/">pbr</ulink>, and
163 <ulink url="&pypi;/python-subunit/">python-subunit</ulink>
164 </para>
[e5f33088]165
[42ddc30]166 <para condition="html" role="usernotes">Editor Notes:
[216b521]167 <ulink url="&blfs-wiki;/samba4"/></para>
[3cb0c57]168
[99ef1fc]169 </sect2>
170
171 <sect2 role="installation">
172 <title>Installation of Samba</title>
[2ae8864]173
[6e2729c]174 <para>
[c7f6a7e1]175 To support the test suite, set up a Python virtual environment
176 for some Python modules out of the scope of BLFS:
[6e2729c]177 </para>
178
[c7f6a7e1]179<screen><userinput remap="pre">python3 -m venv pyvenv &amp;&amp;
180./pyvenv/bin/pip3 install cryptography pyasn1 iso8601</userinput></screen>
[6e2729c]181
[b51fe6e]182 <para>
183 Install <application>Samba</application> by running the following
184 commands:
185 </para>
[65dea1b]186
[d1348fd]187<screen revision="sysv"><userinput>PYTHON=$PWD/pyvenv/bin/python3 \
188PATH=$PWD/pyvenv/bin:$PATH \
189./configure \
190 --prefix=/usr \
191 --sysconfdir=/etc \
192 --localstatedir=/var \
193 --with-piddir=/run/samba \
194 --with-pammodulesdir=/usr/lib/security \
195 --enable-fhs \
196 --without-ad-dc \
197 --without-systemd \
198 --enable-selftest &amp;&amp;
[7cae14c]199make</userinput></screen>
[2ae8864]200
[d1348fd]201<screen revision="systemd"><userinput>PYTHON=$PWD/pyvenv/bin/python3 \
202CPPFLAGS="-I/usr/include/tirpc" \
203LDFLAGS="-ltirpc" \
204./configure \
205 --prefix=/usr \
206 --sysconfdir=/etc \
207 --localstatedir=/var \
208 --with-piddir=/run/samba \
209 --with-pammodulesdir=/usr/lib/security \
210 --enable-fhs \
211 --without-ad-dc \
212 --enable-selftest &amp;&amp;
[7b478500]213make</userinput></screen>
214
[b51fe6e]215 <para>
[acb648f]216 To test the results, issue:
[94bdff09]217 <command>PATH=$PWD/pyvenv/bin:$PATH make quicktest</command>. The test
218 suite will produce lines that look like failures, but these are innocuous.
219 The last few lines of output should report <emphasis>"ALL OK"</emphasis>
220 for a good test run. A summary of any failures can be found in
[d2b7cae]221 <filename class="directory">./st/summary</filename>.
[b51fe6e]222 </para>
223
224 <!--
225 If doing a security update or a new minor version (point releases do not
226 apply here), run 'make testenv' before running 'make test' and 'make
[b59e5eb3]227 subunit-test'. This will set up the test environment and make the tests
[b51fe6e]228 run faster, as well as point out any glaring issues that might affect
229 the new Samba installation. With 4.10.4, I got 236 failures, 73 errors,
230 and 2 unexpected successes. These were all known upstream, and you can
231 find them in the knownfail list in their git repo. This is per
232 Upstream's recommendation over IRC.
233 -->
[8c602db7]234
[e5f33088]235 <note>
[b51fe6e]236 <para>
237 Additionally, developer test suites are available. If you've installed
[c7f6a7e1]238 the optional python modules above in the Python virtual environment
239 for building this package, you can run these tests with
[b51fe6e]240 <command>make test</command>. It is not recommended for the average
241 builder at around 290 SBU and over a gigabyte of disk space, and you
242 should expect ~73 errors and ~30 failures from the 3000+ tests.
243 </para>
[e5f33088]244 </note>
[0f53ca47]245
[b51fe6e]246 <para>
[c7f6a7e1]247 Fix a hard coded path to Python 3 interpreter:
248 </para>
249
250<screen><userinput>sed '1s@^.*$@#!/usr/bin/python3@' \
251 -i ./bin/default/source4/scripting/bin/samba-gpupdate.inst</userinput></screen>
252
253 <para>
254 If upgrading from an old version of samba, as the
255 <systemitem class="username">root</systemitem> user, remove the old
[03eca7f9]256 Python support files to prevent some issues:
[c7f6a7e1]257 </para>
258
259<screen role="root"><userinput>rm -rf /usr/lib/python&python3-majorver;/site-packages/samba</userinput></screen>
260
261 <para>
262 Still as the <systemitem class="username">root</systemitem> user,
263 install the package:
[b51fe6e]264 </para>
[38b41c2]265
[214b9ac]266<screen role="root"><userinput>make install &amp;&amp;
267
[b0ed6bdf]268install -v -m644 examples/smb.conf.default /etc/samba &amp;&amp;
[214b9ac]269
[db91d7e]270sed -e "s;log file =.*;log file = /var/log/samba/%m.log;" \
271 -e "s;path = /usr/spool/samba;path = /var/spool/samba;" \
272 -i /etc/samba/smb.conf.default &amp;&amp;
273
[7cae14c]274mkdir -pv /etc/openldap/schema &amp;&amp;
275
276install -v -m644 examples/LDAP/README \
277 /etc/openldap/schema/README.LDAP &amp;&amp;
[f3429309]278
[7cae14c]279install -v -m644 examples/LDAP/samba* \
280 /etc/openldap/schema &amp;&amp;
[f3429309]281
[96770a19]282install -v -m755 examples/LDAP/{get*,ol*} \
[d9e0208]283 /etc/openldap/schema</userinput></screen>
[7cae14c]284
[99ef1fc]285 </sect2>
286
287 <sect2 role="commands">
288 <title>Command Explanations</title>
289
[b51fe6e]290 <para>
291 <parameter>--enable-fhs</parameter>: Assigns all other file paths in
292 a manner compliant with the Filesystem Hierarchy Standard (FHS).
293 </para>
[99ef1fc]294
[b51fe6e]295 <para revision="sysv">
296 <parameter>--without-systemd</parameter>: Disable
297 <application>systemd</application> integration, since it is not built
298 in the System V version of LFS/BLFS.
299 </para>
[5ca14bdd]300
[5761707]301 <para revision="sysv">
302 <parameter>--with-shared-modules='!vfs_snapper'</parameter>: Disable
303 the vfs_snapper module if you want to build samba without <application>dbus</application> support, for setups without graphical user intefaces.
304 </para>
305
[b51fe6e]306 <para>
[204252e]307 <parameter>--without-ad-dc</parameter>: Disables
[b51fe6e]308 Active Directory Domain Controller functionality. See <ulink url=
309 "https://wiki.samba.org/index.php/Setup_a_Samba_Active_Directory_Domain_Controller">
[b59e5eb3]310 Set up a Samba Active Directory Domain Controller</ulink> for detailed
[b51fe6e]311 information. Remove this switch if you've installed the Python modules
312 needed for ADS support. Note that BLFS does not provide a samba bootscript
[65a15acc]313 or systemd unit for an Active Directory domain controller.
[b51fe6e]314 </para>
[6dcdcde]315
[b51fe6e]316 <para>
317 <option>--with-selftest-prefix=SELFTEST_PREFIX</option>: This option
318 specifies the test suite work directory (default=./st).
319 </para>
[99ece5d]320
[b51fe6e]321 <para>
322 <command>install -v -m644 examples/LDAP/* /etc/openldap/schema</command>:
323 These commands are used to copy sample Samba schemas to the OpenLDAP
324 <filename class='directory'>schema</filename> directory.
325 </para>
[99ef1fc]326
[b51fe6e]327 <para>
328 <command>install -v -m644 ../examples/smb.conf.default
329 /etc/samba</command>: This copies a default <filename>smb.conf</filename>
330 file into <filename>/etc/samba</filename>. This sample configuration will
331 not work until you copy it to <filename>/etc/samba/smb.conf</filename> and
332 make the appropriate changes for your installation. See the configuration
333 section for minimum values which must be set.
334 </para>
[99ef1fc]335
336 </sect2>
337
338 <sect2 role="configuration">
339 <title>Configuring Samba</title>
340
[45f56ac]341 <sect3 id="samba-config">
[99ef1fc]342 <title>Config Files</title>
343
[b51fe6e]344 <para>
345 /etc/samba/smb.conf
346 </para>
[99ef1fc]347
[45f56ac]348 <indexterm zone="samba samba-config">
[99ef1fc]349 <primary sortas="e-etc-samba-smb.conf">/etc/samba/smb.conf</primary>
350 </indexterm>
351
352 </sect3>
[e75747d1]353
[2ccb0dc]354 <sect3>
[fc290c7]355 <title>Printing to SMB Clients</title>
[2ccb0dc]356
[b51fe6e]357 <para>
358 If you use <application>CUPS</application> for print services, and you
359 wish to print to a printer attached to an SMB client, you need to
360 create an SMB backend device. To create the device, issue the following
361 command as the <systemitem class="username">root</systemitem> user:
362 </para>
[2ccb0dc]363
[b51fe6e]364<screen role="root"><userinput>install -dvm 755 /usr/lib/cups/backend &amp;&amp;
365ln -v -sf /usr/bin/smbspool /usr/lib/cups/backend/smb</userinput></screen>
[2ccb0dc]366
367 </sect3>
368
[99ef1fc]369 <sect3>
[fc290c7]370 <title>Configuration Information</title>
[99ef1fc]371
[b51fe6e]372 <para>
373 Due to the complexity and the many various uses for
374 <application>Samba</application>, complete configuration for all the
375 package's capabilities is well beyond the scope of the BLFS book. This
376 section provides instructions to configure the
377 <filename>/etc/samba/smb.conf</filename> file for two common scenarios.
378 The complete contents of <filename>/etc/samba/smb.conf</filename> will
379 depend on the purpose of <application>Samba</application>
380 installation.
381 </para>
[fc290c7]382
383 <note>
[b51fe6e]384 <para>
385 You may find it easier to copy the configuration parameters shown
386 below into an empty <filename>/etc/samba/smb.conf</filename> file
387 instead of copying and editing the default file as mentioned in the
388 <quote>Command Explanations</quote> section. How you create/edit the
389 <filename>/etc/samba/smb.conf</filename> file will be left up to
[b9c353b]390 you. Do ensure the file is only writable by the
[b51fe6e]391 <systemitem class="username">root</systemitem> user (mode 644).
392 </para>
[fc290c7]393 </note>
394
395 <sect4>
396 <title>Scenario 1: Minimal Standalone Client-Only Installation</title>
397
[b51fe6e]398 <para>
399 Choose this variant if you only want to transfer files using
400 <command>smbclient</command>, mount Windows shares and print to
401 Windows printers, and don't want to share your files and printers to
402 Windows machines.
403 </para>
[fc290c7]404
[b51fe6e]405 <para>
406 A <filename>/etc/samba/smb.conf</filename> file with the following
407 three parameters is sufficient:
408 </para>
[fc290c7]409
410<screen role='root'><literal>[global]
[acb648f]411 workgroup = <replaceable>WORKGROUP</replaceable>
[fc290c7]412 dos charset = <replaceable>cp850</replaceable>
413 unix charset = <replaceable>ISO-8859-1</replaceable></literal></screen>
414
[b51fe6e]415 <para>
416 The values in this example specify that the computer belongs to a
417 Windows workgroup named
[acb648f]418 <quote><replaceable>WORKGROUP</replaceable></quote>, uses the
[b51fe6e]419 <quote><replaceable>cp850</replaceable></quote> character set on the
420 wire when talking to MS-DOS and MS Windows 9x, and that the filenames
421 are stored in the <quote><replaceable>ISO-8859-1</replaceable></quote>
422 encoding on the disk. Adjust these values appropriately for your
423 installation. The <quote>unix charset</quote> value must be the same
424 as the output of <command>locale charmap</command> when executed with
425 the <envar>LANG</envar> variable set to your preferred locale,
426 otherwise the <command>ls</command> command may not display correct
427 filenames of downloaded files.
428 </para>
429
430 <para>
431 There is no need to run any <application>Samba</application>
432 servers in this scenario, thus you don't need to install the provided
[94bdff09]433 <phrase revision="sysv">bootscripts.</phrase>
434 <phrase revision="systemd">systemd units.</phrase>
[b51fe6e]435 </para>
[fc290c7]436
437 </sect4>
438
439 <sect4>
440 <title>Scenario 2: Standalone File/Print Server</title>
441
[b51fe6e]442 <para>
443 Choose this variant if you want to share your files and printers
444 to Windows machines in your workgroup in addition to the capabilities
445 described in Scenario 1.
446 </para>
447
448 <para>
449 In this case, the <filename>/etc/samba/smb.conf.default</filename>
[d1348fd]450 file may be a good template to start from. Also, you should add the
[b51fe6e]451 <quote>dos charset</quote> and <quote>unix charset</quote> parameters
452 to the <quote>[global]</quote> section as described in Scenario 1 in
453 order to prevent filename corruption. For security reasons, you may
454 wish to define
455 <replaceable>path = /home/alice/shared-files</replaceable>,
456 assuming your user name is <replaceable>alice</replaceable> and you
457 only want to share the files in that directory, instead of your entire
458 home. Then, replace <replaceable>homes</replaceable> by
459 <replaceable>shared-files</replaceable> and change also the
460 <quote><literal>comment</literal></quote> if used the configuration
461 file below or the <filename>/etc/samba/smb.conf.default</filename>
462 to create yours.
463 </para>
464
465 <para>
466 The following configuration file creates a separate share for each
467 user's home directory and also makes all printers available to Windows
468 machines:
469 </para>
[fc290c7]470
471<screen role='root'><literal>[global]
[acb648f]472 workgroup = <replaceable>WORKGROUP</replaceable>
[fc290c7]473 dos charset = <replaceable>cp850</replaceable>
474 unix charset = <replaceable>ISO-8859-1</replaceable>
475
476[homes]
477 comment = Home Directories
478 browseable = no
479 writable = yes
480
481[printers]
482 comment = All Printers
483 path = /var/spool/samba
484 browseable = no
485 guest ok = no
486 printable = yes</literal></screen>
487
[b51fe6e]488 <para>
489 Other parameters you may wish to customize in the
490 <quote>[global]</quote> section include:
491 </para>
[fc290c7]492
493<screen role='root'><literal> server string =
494 security =
495 hosts allow =
496 load printers =
497 log file =
498 max log size =
499 socket options =
500 local master =</literal></screen>
501
[b51fe6e]502 <para>
503 Reference the comments in the
504 <filename>/etc/samba/smb.conf.default</filename> file for information
505 regarding these parameters.
506 </para>
[fc290c7]507
[b51fe6e]508 <para>
509 Since the <command>smbd</command> and <command>nmbd</command> daemons
510 are needed in this case, install the <filename>samba</filename>
[94bdff09]511 <phrase revision="sysv">bootscript.</phrase>
512 <phrase revision="systemd">systemd unit.</phrase>
513 Be sure to run <command>smbpasswd</command> (with the
[b51fe6e]514 <option>-a</option> option to add users) to enable and set passwords
515 for all accounts that need <application>Samba</application> access.
516 Using the default <application>Samba</application> passdb backend,
517 any user you attempt to add will also be required to exist in the
518 <filename>/etc/passwd</filename> file.
519 </para>
[fc290c7]520
521 </sect4>
522
523 <sect4>
524 <title>Advanced Requirements</title>
525
[b51fe6e]526 <para>
527 More complex scenarios involving domain control or membership are
528 possible. Such setups are advanced topics and cannot be adequately
529 covered in BLFS. Many complete books have been written on these topics
530 alone. Note that in some domain membership scenarios, the
[94bdff09]531 <command>winbindd</command> daemon and the corresponding
532 <phrase revision="sysv">bootscript</phrase>
533 <phrase revision="systemd">systemd unit</phrase> are needed.
[b51fe6e]534 </para>
[fc290c7]535
536 </sect4>
[99ef1fc]537
[8c2155e]538 <sect4>
539 <title>Guest account</title>
540
[b51fe6e]541 <para>
542 The default <application>Samba</application> installation uses the
543 <systemitem class='username'>nobody</systemitem> user for guest
544 access to the server. This can be overridden by setting the
545 <option>guest account =</option> parameter in the
546 <filename>/etc/samba/smb.conf</filename> file. If you utilize the
547 <option>guest account =</option> parameter, ensure this user exists
548 in the <filename>/etc/passwd</filename> file.
549 </para>
[8c2155e]550
551 </sect4>
552
[7b478500]553 <sect4 id="samba-init" revision="sysv">
[75f9474f]554 <title>Boot Script</title>
[0d7900a]555
[b51fe6e]556 <para>
557 For your convenience, boot scripts have been provided for
558 <application>Samba</application>. There are two included in the
559 <xref linkend="bootscripts"/> package. The first,
560 <filename>samba</filename>, will start the <command>smbd</command>
561 and <command>nmbd</command> daemons needed to provide SMB/CIFS
562 services. The second script, <filename>winbind</filename>, starts
563 the <command>winbindd</command> daemon, used for providing Windows
564 domain services to Linux clients.
565 </para>
[0d7900a]566
[45f56ac]567 <indexterm zone="samba samba-init">
[75f9474f]568 <primary sortas="f-samba">samba</primary>
[fc290c7]569 </indexterm>
[0d7900a]570
[45f56ac]571 <indexterm zone="samba samba-init">
[75f9474f]572 <primary sortas="f-winbind">winbind</primary>
[fc290c7]573 </indexterm>
[0d7900a]574
[75f9474f]575<screen role="root"><userinput>make install-samba</userinput></screen>
[99ef1fc]576
[97926ab]577<screen role="root"><userinput>make install-winbindd</userinput></screen>
[99ef1fc]578
[7b478500]579 </sect4>
580
581 <sect4 id="samba-init-sysd" revision="systemd">
582 <title>Systemd Units</title>
583
584 <para>
585 To start the <application>Samba</application> daemons at boot,
586 install the systemd units from the <xref linkend="systemd-units"/>
587 package by running the following command as the
588 <systemitem class="username">root</systemitem> user:
589 </para>
590
591 <indexterm zone="samba samba-init-sysd">
592 <primary sortas="f-samba">samba</primary>
593 </indexterm>
594
595<screen role="root"><userinput>make install-samba</userinput></screen>
596
597 <para>
598 To start the <command>winbindd</command> daemon at boot,
599 install the systemd unit from the <xref linkend="systemd-units"/>
600 package by running the following command as the
601 <systemitem class="username">root</systemitem> user:
602 </para>
603
604 <indexterm zone="samba samba-init-sysd">
605 <primary sortas="f-winbindd">winbindd</primary>
606 </indexterm>
607
608<screen role="root"><userinput>make install-winbindd</userinput></screen>
609
610 <note>
[b51fe6e]611 <para>
612 This package comes with two types of units: A service file and a
613 socket file. The service file will start the smbd daemon once at
614 boot and it will keep running until the system shuts down. The
615 socket file will make systemd listen on the smbd port (Default 445,
616 needs to be edited for anything else) and will start the smbd
617 daemon when something tries to connect to that port and stop the
618 daemon when the connection is terminated. This is called socket
619 activation and is analogous to using
620 <application>{,x}inetd</application> on a SysVinit based system.
621 </para>
622
623 <para>
624 By default, the first method is used - the smbd daemon is started
625 at boot and stopped at shutdown. If the socket method is desired,
626 you need to run the following commands as the <systemitem
627 class="username">root</systemitem> user:
628 </para>
[7b478500]629
630<screen role="root"><userinput>systemctl stop smbd &amp;&amp;
631systemctl disable smbd &amp;&amp;
632systemctl enable smbd.socket &amp;&amp;
633systemctl start smbd.socket</userinput></screen>
634
[b51fe6e]635 <para>
636 Note that only the smbd daemon can be socket activated.
637 </para>
[7b478500]638 </note>
639 </sect4>
[99ef1fc]640
[75f9474f]641 </sect3>
[99ef1fc]642
643 </sect2>
644
645 <sect2 role="content">
646 <title>Contents</title>
647
648 <segmentedlist>
649 <segtitle>Installed Programs</segtitle>
650 <segtitle>Installed Libraries</segtitle>
651 <segtitle>Installed Directories</segtitle>
652
653 <seglistitem>
[7cae14c]654
[defca61]655 <seg>
[676876ba]656 cifsdd, dbwrap_tool, dumpmscat, eventlogadm, gentest,
[8558044]657 ldbadd, ldbdel, ldbedit, ldbmodify, ldbrename, ldbsearch, locktest,
[acb648f]658 masktest, mdsearch, mvxattr, ndrdump, net, nmbd, nmblookup, ntlm_auth,
[676876ba]659 oLschema2ldif, pdbedit, profiles, regdiff, regpatch, regshell,
[cdddf067]660 regtree, rpcclient, samba-gpupdate, samba-regedit, samba-tool,
661 sharesec, smbcacls, smbclient, smbcontrol, smbcquotas, smbd, smbget,
662 smbpasswd, smbspool, smbstatus, smbtar, smbtorture, smbtree,
[6f3f40f3]663 tdbbackup, tdbdump, tdbrestore, tdbtool, testparm, wbinfo, and winbindd
[defca61]664 </seg>
665
666 <seg>
[676876ba]667 libdcerpc-binding.so, libdcerpc-samr.so,
[cdddf067]668 libdcerpc-server-core.so, libdcerpc.so,
[676876ba]669 libndr-krb5pac.so, libndr-nbt.so, libndr.so,
[8558044]670 libndr-standard.so, libnetapi.so, libnss_winbind.so, libnss_wins.so,
[676876ba]671 libsamba-credentials.so, libsamba-errors.so,
[3fdc9b0]672 libsamba-hostconfig.so, libsamba-passdb.so,
[acb648f]673 libsamba-policy.cpython-310-x86_64-linux-gnu.so, libsamba-util.so,
[676876ba]674 libsamdb.so, libsmbclient.so,
[8558044]675 libsmbconf.so, libsmbldap.so, libtevent-util.so,
[676876ba]676 libwbclient.so, and filesystem and support modules under
[6f3f40f3]677 /usr/lib/{python&python3-majorver;,samba}
[defca61]678 </seg>
[f3429309]679
[defca61]680 <seg>
681 /etc/samba, /run/samba, /usr/include/samba-4.0,
[9f5acea]682 /usr/lib/python&python3-majorver;/site-packages/samba,
[7a9a7b26]683 /usr/{lib,libexec,share}/samba,
[9f5acea]684 and /var/{cache,lib,lock,log,run}/samba
[defca61]685 </seg>
[7cae14c]686
[99ef1fc]687 </seglistitem>
688 </segmentedlist>
689
690 <variablelist>
691 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
692 <?dbfo list-presentation="list"?>
693 <?dbhtml list-presentation="table"?>
694
[72d90b67]695 <varlistentry id="cifsdd">
696 <term><command>cifsdd</command></term>
697 <listitem>
[b51fe6e]698 <para>
[4c24eb0a]699 is the dd command for SMB
[b51fe6e]700 </para>
[72d90b67]701 <indexterm zone="samba cifsdd">
702 <primary sortas="b-cifsdd">cifsdd</primary>
703 </indexterm>
704 </listitem>
705 </varlistentry>
706
707 <varlistentry id="dbwrap_tool">
708 <term><command>dbwrap_tool</command></term>
709 <listitem>
[b51fe6e]710 <para>
711 is used to read and manipulate TDB/CTDB databases using
[4c24eb0a]712 the dbwrap interface
[b51fe6e]713 </para>
[72d90b67]714 <indexterm zone="samba dbwrap_tool">
715 <primary sortas="b-dbwrap_tool">dbwrap_tool</primary>
716 </indexterm>
717 </listitem>
718 </varlistentry>
719
[676876ba]720 <varlistentry id="dumpmscat">
721 <term><command>dumpmscat</command></term>
[a8ecf657]722 <listitem>
[b51fe6e]723 <para>
[676876ba]724 dumps the content of MS catalog files
[b51fe6e]725 </para>
[676876ba]726 <indexterm zone="samba dumpmscat">
727 <primary sortas="b-dumpmscat">dumpmscat</primary>
[a8ecf657]728 </indexterm>
729 </listitem>
730 </varlistentry>
731
[676876ba]732 <varlistentry id="eventlogadm">
733 <term><command>eventlogadm</command></term>
[a6e9ec1]734 <listitem>
[b51fe6e]735 <para>
[676876ba]736 is used to write records to eventlogs from STDIN, add the
737 specified source and DLL eventlog registry entries and display the
738 active eventlog names (from <filename>smb.conf</filename>)
[b51fe6e]739 </para>
[676876ba]740 <indexterm zone="samba eventlogadm">
741 <primary sortas="b-eventlogadm">eventlogadm</primary>
[a6e9ec1]742 </indexterm>
743 </listitem>
744 </varlistentry>
745
[72d90b67]746 <varlistentry id="gentest">
747 <term><command>gentest</command></term>
748 <listitem>
[b51fe6e]749 <para>
750 is used to run random generic SMB operations against two
[4c24eb0a]751 SMB servers and show the differences in behavior
[b51fe6e]752 </para>
[72d90b67]753 <indexterm zone="samba gentest">
754 <primary sortas="b-gentest">gentest</primary>
755 </indexterm>
756 </listitem>
757 </varlistentry>
758
[f4c0a45]759 <varlistentry id="ldbadd">
760 <term><command>ldbadd</command></term>
761 <listitem>
[b51fe6e]762 <para>
763 is a command-line utility for adding records to an LDB
[4c24eb0a]764 database
[b51fe6e]765 </para>
[45f56ac]766 <indexterm zone="samba ldbadd">
[f4c0a45]767 <primary sortas="b-ldbadd">ldbadd</primary>
768 </indexterm>
769 </listitem>
770 </varlistentry>
771
772 <varlistentry id="ldbdel">
773 <term><command>ldbdel</command></term>
774 <listitem>
[b51fe6e]775 <para>
[cdddf067]776 is a command-line utility for deleting LDB database records
[b51fe6e]777 </para>
[45f56ac]778 <indexterm zone="samba ldbdel">
[f4c0a45]779 <primary sortas="b-ldbdel">ldbdel</primary>
780 </indexterm>
781 </listitem>
782 </varlistentry>
783
784 <varlistentry id="ldbedit">
785 <term><command>ldbedit</command></term>
786 <listitem>
[b51fe6e]787 <para>
[4c24eb0a]788 allows you to edit LDB databases using your preferred editor
[b51fe6e]789 </para>
[45f56ac]790 <indexterm zone="samba ldbedit">
[f4c0a45]791 <primary sortas="b-ldbedit">ldbedit</primary>
792 </indexterm>
793 </listitem>
794 </varlistentry>
795
796 <varlistentry id="ldbmodify">
797 <term><command>ldbmodify</command></term>
798 <listitem>
[b51fe6e]799 <para>
[4c24eb0a]800 allows you to modify records in an LDB database
[b51fe6e]801 </para>
[45f56ac]802 <indexterm zone="samba ldbmodify">
[f4c0a45]803 <primary sortas="b-ldbmodify">ldbmodify</primary>
804 </indexterm>
805 </listitem>
806 </varlistentry>
807
808 <varlistentry id="ldbrename">
809 <term><command>ldbrename</command></term>
810 <listitem>
[b51fe6e]811 <para>
[4c24eb0a]812 allows you to rename LDB databases
[b51fe6e]813 </para>
[45f56ac]814 <indexterm zone="samba ldbrename">
[f4c0a45]815 <primary sortas="b-ldbrename">ldbrename</primary>
816 </indexterm>
817 </listitem>
818 </varlistentry>
819
820 <varlistentry id="ldbsearch">
821 <term><command>ldbsearch</command></term>
822 <listitem>
[b51fe6e]823 <para>
824 searches an LDB database for records matching a specified
[4c24eb0a]825 expression
[b51fe6e]826 </para>
[45f56ac]827 <indexterm zone="samba ldbsearch">
[f4c0a45]828 <primary sortas="b-ldbsearch">ldbsearch</primary>
829 </indexterm>
830 </listitem>
831 </varlistentry>
832
[72d90b67]833 <varlistentry id="locktest">
834 <term><command>locktest</command></term>
835 <listitem>
[b51fe6e]836 <para>
[4c24eb0a]837 is used to find differences in locking between two SMB servers
[b51fe6e]838 </para>
[72d90b67]839 <indexterm zone="samba locktest">
840 <primary sortas="b-locktest">locktest</primary>
841 </indexterm>
842 </listitem>
843 </varlistentry>
844
845 <varlistentry id="masktest">
846 <term><command>masktest</command></term>
847 <listitem>
[b51fe6e]848 <para>
849 is used to find differences in wildcard matching between
[4c24eb0a]850 Samba's implementation and that of a remote server
[b51fe6e]851 </para>
[72d90b67]852 <indexterm zone="samba masktest">
853 <primary sortas="b-masktest">masktest</primary>
[a6e9ec1]854 </indexterm>
855 </listitem>
856 </varlistentry>
857
[acb648f]858 <varlistentry id="mdsearch">
859 <term><command>mdsearch</command></term>
[6f3f40f3]860 <listitem>
861 <para>
862 runs <application>Spotlight</application> searches against a SMB
[4c24eb0a]863 server
[6f3f40f3]864 </para>
[acb648f]865 <indexterm zone="samba mdsearch">
866 <primary sortas="b-mdsearch">mdsearch</primary>
[6f3f40f3]867 </indexterm>
868 </listitem>
869 </varlistentry>
870
[a6e9ec1]871 <varlistentry id="mvxattr">
872 <term><command>mvxattr</command></term>
873 <listitem>
[b51fe6e]874 <para>
[4c24eb0a]875 is used to recursively rename extended attributes
[b51fe6e]876 </para>
[a6e9ec1]877 <indexterm zone="samba mvxattr">
878 <primary sortas="b-mvxattr">mvxattr</primary>
[72d90b67]879 </indexterm>
880 </listitem>
881 </varlistentry>
882
883 <varlistentry id="ndrdump">
884 <term><command>ndrdump</command></term>
885 <listitem>
[b51fe6e]886 <para>
[4c24eb0a]887 is a DCE/RPC Packet Parser and Dumper
[b51fe6e]888 </para>
[72d90b67]889 <indexterm zone="samba ndrdump">
890 <primary sortas="b-ndrdump">ndrdump</primary>
891 </indexterm>
892 </listitem>
893 </varlistentry>
894
[99ef1fc]895 <varlistentry id="net">
896 <term><command>net</command></term>
897 <listitem>
[b51fe6e]898 <para>
899 is a tool for administration of <application>Samba</application>
900 and remote CIFS servers, similar to the <command>net</command>
[4c24eb0a]901 utility for DOS/Windows
[b51fe6e]902 </para>
[45f56ac]903 <indexterm zone="samba net">
[99ef1fc]904 <primary sortas="b-net">net</primary>
905 </indexterm>
906 </listitem>
907 </varlistentry>
908
909 <varlistentry id="nmbd">
910 <term><command>nmbd</command></term>
911 <listitem>
[b51fe6e]912 <para>
[4c24eb0a]913 is the <application>Samba</application> NetBIOS name server
[b51fe6e]914 </para>
[45f56ac]915 <indexterm zone="samba nmbd">
[99ef1fc]916 <primary sortas="b-nmbd">nmbd</primary>
917 </indexterm>
918 </listitem>
919 </varlistentry>
920
921 <varlistentry id="nmblookup">
922 <term><command>nmblookup</command></term>
923 <listitem>
[b51fe6e]924 <para>
[4c24eb0a]925 is used to query NetBIOS names and map them to IP addresses
[b51fe6e]926 </para>
[45f56ac]927 <indexterm zone="samba nmblookup">
[99ef1fc]928 <primary sortas="b-nmblookup">nmblookup</primary>
929 </indexterm>
930 </listitem>
931 </varlistentry>
932
933 <varlistentry id="ntlm_auth">
934 <term><command>ntlm_auth</command></term>
935 <listitem>
[b51fe6e]936 <para>
937 is a tool to allow external access to Winbind's
[4c24eb0a]938 NTLM authentication function
[b51fe6e]939 </para>
[45f56ac]940 <indexterm zone="samba ntlm_auth">
[99ef1fc]941 <primary sortas="b-ntlm_auth">ntlm_auth</primary>
942 </indexterm>
943 </listitem>
944 </varlistentry>
945
[72d90b67]946 <varlistentry id="oLschema2ldif">
947 <term><command>oLschema2ldif</command></term>
948 <listitem>
[b51fe6e]949 <para>
[4c24eb0a]950 converts LDAP schema's to LDB-compatible LDIF
[b51fe6e]951 </para>
[72d90b67]952 <indexterm zone="samba oLschema2ldif">
953 <primary sortas="b-oLschema2ldif">oLschema2ldif</primary>
954 </indexterm>
955 </listitem>
956 </varlistentry>
957
[99ef1fc]958 <varlistentry id="pdbedit">
959 <term><command>pdbedit</command></term>
960 <listitem>
[b51fe6e]961 <para>
[4c24eb0a]962 is a tool used to manage the SAM database
[b51fe6e]963 </para>
[45f56ac]964 <indexterm zone="samba pdbedit">
[99ef1fc]965 <primary sortas="b-pdbedit">pdbedit</primary>
966 </indexterm>
967 </listitem>
968 </varlistentry>
969
970 <varlistentry id="profiles">
971 <term><command>profiles</command></term>
972 <listitem>
[b51fe6e]973 <para>
974 is a utility that reports and changes SIDs in Windows
[cdddf067]975 registry files
[b51fe6e]976 </para>
[45f56ac]977 <indexterm zone="samba profiles">
[99ef1fc]978 <primary sortas="b-profiles">profiles</primary>
979 </indexterm>
980 </listitem>
981 </varlistentry>
982
[72d90b67]983 <varlistentry id="regdiff">
984 <term><command>regdiff</command></term>
985 <listitem>
[b51fe6e]986 <para>
[4c24eb0a]987 is a Diff program for Windows registry files
[b51fe6e]988 </para>
[72d90b67]989 <indexterm zone="samba regdiff">
990 <primary sortas="b-regdiff">regdiff</primary>
991 </indexterm>
992 </listitem>
993 </varlistentry>
994
995 <varlistentry id="regpatch">
996 <term><command>regpatch</command></term>
997 <listitem>
[b51fe6e]998 <para>
[4c24eb0a]999 applies registry patches to registry files
[b51fe6e]1000 </para>
[72d90b67]1001 <indexterm zone="samba regpatch">
1002 <primary sortas="b-regpatch">regpatch</primary>
1003 </indexterm>
1004 </listitem>
1005 </varlistentry>
1006
1007 <varlistentry id="regshell">
1008 <term><command>regshell</command></term>
1009 <listitem>
[b51fe6e]1010 <para>
[4c24eb0a]1011 is a Windows registry file browser using readline
[b51fe6e]1012 </para>
[72d90b67]1013 <indexterm zone="samba regshell">
1014 <primary sortas="b-regshell">regshell</primary>
1015 </indexterm>
1016 </listitem>
1017 </varlistentry>
1018
1019 <varlistentry id="regtree">
1020 <term><command>regtree</command></term>
1021 <listitem>
[b51fe6e]1022 <para>
[4c24eb0a]1023 is a text-mode registry viewer
[b51fe6e]1024 </para>
[72d90b67]1025 <indexterm zone="samba regtree">
1026 <primary sortas="b-regtree">regtree</primary>
1027 </indexterm>
1028 </listitem>
1029 </varlistentry>
1030
[99ef1fc]1031 <varlistentry id="rpcclient">
1032 <term><command>rpcclient</command></term>
1033 <listitem>
[b51fe6e]1034 <para>
[4c24eb0a]1035 is used to execute MS-RPC client side functions
[b51fe6e]1036 </para>
[45f56ac]1037 <indexterm zone="samba rpcclient">
[99ef1fc]1038 <primary sortas="b-rpcclient">rpcclient</primary>
1039 </indexterm>
1040 </listitem>
1041 </varlistentry>
1042
[f07f654]1043<!-- Removed in 4.17.0
[72d90b67]1044 <varlistentry id="samba-prog">
1045 <term><command>samba</command></term>
1046 <listitem>
[b51fe6e]1047 <para>
1048 is a server to provide AD and SMB/CIFS services
[4c24eb0a]1049 to clients
[b51fe6e]1050 </para>
[72d90b67]1051 <indexterm zone="samba samba-prog">
1052 <primary sortas="b-samba-prog">samba</primary>
1053 </indexterm>
1054 </listitem>
1055 </varlistentry>
[f07f654]1056-->
[72d90b67]1057
[7d25056d]1058 <varlistentry id="samba-gpupdate">
1059 <term><command>samba-gpupdate</command></term>
1060 <listitem>
[b51fe6e]1061 <para>
[4c24eb0a]1062 allows you to edit Microsoft Group Policy Objects (GPOs)
[b51fe6e]1063 </para>
[7d25056d]1064 <indexterm zone="samba samba-gpupdate">
1065 <primary sortas="b-samba-gpupdate">samba-gpupdate</primary>
1066 </indexterm>
1067 </listitem>
1068 </varlistentry>
1069
[72d90b67]1070 <varlistentry id="samba-regedit">
1071 <term><command>samba-regedit</command></term>
1072 <listitem>
[b51fe6e]1073 <para>
[4c24eb0a]1074 is a ncurses based tool to manage the Samba registry
[b51fe6e]1075 </para>
[72d90b67]1076 <indexterm zone="samba samba-regedit">
1077 <primary sortas="b-samba-regedit">samba-regedit</primary>
1078 </indexterm>
1079 </listitem>
1080 </varlistentry>
1081
1082 <varlistentry id="samba-tool">
1083 <term><command>samba-tool</command></term>
1084 <listitem>
[b51fe6e]1085 <para>
[4c24eb0a]1086 is the main Samba administration tool
[b51fe6e]1087 </para>
[72d90b67]1088 <indexterm zone="samba samba-tool">
1089 <primary sortas="b-samba-tool">samba-tool</primary>
1090 </indexterm>
1091 </listitem>
1092 </varlistentry>
1093
[f4c0a45]1094 <varlistentry id="sharesec">
1095 <term><command>sharesec</command></term>
1096 <listitem>
[b51fe6e]1097 <para>
[4c24eb0a]1098 manipulates share ACL permissions on SMB file shares
[b51fe6e]1099 </para>
[45f56ac]1100 <indexterm zone="samba sharesec">
[f4c0a45]1101 <primary sortas="b-sharesec">sharesec</primary>
1102 </indexterm>
1103 </listitem>
1104 </varlistentry>
1105
[99ef1fc]1106 <varlistentry id="smbcacls">
1107 <term><command>smbcacls</command></term>
1108 <listitem>
[b51fe6e]1109 <para>
[4c24eb0a]1110 is used to manipulate Windows NT access control lists
[b51fe6e]1111 </para>
[45f56ac]1112 <indexterm zone="samba smbcacls">
[99ef1fc]1113 <primary sortas="b-smbcacls">smbcacls</primary>
1114 </indexterm>
1115 </listitem>
1116 </varlistentry>
1117
1118 <varlistentry id="smbclient">
1119 <term><command>smbclient</command></term>
1120 <listitem>
[b51fe6e]1121 <para>
[4c24eb0a]1122 is a SMB/CIFS access utility, similar to FTP
[b51fe6e]1123 </para>
[45f56ac]1124 <indexterm zone="samba smbclient">
[99ef1fc]1125 <primary sortas="b-smbclient">smbclient</primary>
1126 </indexterm>
1127 </listitem>
1128 </varlistentry>
1129
1130 <varlistentry id="smbcontrol">
1131 <term><command>smbcontrol</command></term>
1132 <listitem>
[b51fe6e]1133 <para>
1134 is used to control running <command>smbd</command>,
[4c24eb0a]1135 <command>nmbd</command> and <command>winbindd</command> daemons
[b51fe6e]1136 </para>
[45f56ac]1137 <indexterm zone="samba smbcontrol">
[99ef1fc]1138 <primary sortas="b-smbcontrol">smbcontrol</primary>
1139 </indexterm>
1140 </listitem>
1141 </varlistentry>
1142
1143 <varlistentry id="smbcquotas">
1144 <term><command>smbcquotas</command></term>
1145 <listitem>
[b51fe6e]1146 <para>
[4c24eb0a]1147 is used to manipulate Windows NT quotas on SMB file shares
[b51fe6e]1148 </para>
[45f56ac]1149 <indexterm zone="samba smbcquotas">
[99ef1fc]1150 <primary sortas="b-smbcquotas">smbcquotas</primary>
1151 </indexterm>
1152 </listitem>
1153 </varlistentry>
1154
1155 <varlistentry id="smbd">
1156 <term><command>smbd</command></term>
1157 <listitem>
[b51fe6e]1158 <para>
1159 is the main <application>Samba</application> daemon which
[4c24eb0a]1160 provides SMB/CIFS services to clients
[b51fe6e]1161 </para>
[45f56ac]1162 <indexterm zone="samba smbd">
[99ef1fc]1163 <primary sortas="b-smbd">smbd</primary>
1164 </indexterm>
1165 </listitem>
1166 </varlistentry>
1167
[a8ecf657]1168 <varlistentry id="smbget">
1169 <term><command>smbget</command></term>
1170 <listitem>
[b51fe6e]1171 <para>
1172 is a simple utility with <command>wget</command>-like semantics,
1173 that can download files from SMB servers. You can specify the
[4c24eb0a]1174 files you would like to download on the command-line
[b51fe6e]1175 </para>
[45f56ac]1176 <indexterm zone="samba smbget">
[a8ecf657]1177 <primary sortas="b-smbget">smbget</primary>
1178 </indexterm>
1179 </listitem>
1180 </varlistentry>
1181
[99ef1fc]1182 <varlistentry id="smbpasswd">
1183 <term><command>smbpasswd</command></term>
1184 <listitem>
[b51fe6e]1185 <para>
[4c24eb0a]1186 changes a user's <application>Samba</application> password
[b51fe6e]1187 </para>
[45f56ac]1188 <indexterm zone="samba smbpasswd">
[99ef1fc]1189 <primary sortas="b-smbpasswd">smbpasswd</primary>
1190 </indexterm>
1191 </listitem>
1192 </varlistentry>
1193
1194 <varlistentry id="smbspool">
1195 <term><command>smbspool</command></term>
1196 <listitem>
[b51fe6e]1197 <para>
[831c4508]1198 sends a print job to a SMB printer
[b51fe6e]1199 </para>
[45f56ac]1200 <indexterm zone="samba smbspool">
[99ef1fc]1201 <primary sortas="b-smbspool">smbspool</primary>
1202 </indexterm>
1203 </listitem>
1204 </varlistentry>
1205
1206 <varlistentry id="smbstatus">
1207 <term><command>smbstatus</command></term>
1208 <listitem>
[b51fe6e]1209 <para>
[4c24eb0a]1210 reports current <application>Samba</application> connections
[b51fe6e]1211 </para>
[45f56ac]1212 <indexterm zone="samba smbstatus">
[99ef1fc]1213 <primary sortas="b-smbstatus">smbstatus</primary>
1214 </indexterm>
1215 </listitem>
1216 </varlistentry>
1217
1218 <varlistentry id="smbtar">
1219 <term><command>smbtar</command></term>
1220 <listitem>
[b51fe6e]1221 <para>
1222 is a shell script used for backing up SMB/CIFS shares
[831c4508]1223 directly to Linux tape drives or to a file
[b51fe6e]1224 </para>
[45f56ac]1225 <indexterm zone="samba smbtar">
[99ef1fc]1226 <primary sortas="b-smbtar">smbtar</primary>
1227 </indexterm>
1228 </listitem>
1229 </varlistentry>
1230
[72d90b67]1231 <varlistentry id="smbtorture">
1232 <term><command>smbtorture</command></term>
1233 <listitem>
[b51fe6e]1234 <para>
[48771ae]1235 is a test suite that runs several tests against a SMB server
[b51fe6e]1236 </para>
[72d90b67]1237 <indexterm zone="samba smbtorture">
1238 <primary sortas="b-smbtorture">smbtorture</primary>
1239 </indexterm>
1240 </listitem>
1241 </varlistentry>
1242
[99ef1fc]1243 <varlistentry id="smbtree">
1244 <term><command>smbtree</command></term>
1245 <listitem>
[b51fe6e]1246 <para>
[4c24eb0a]1247 is a text-based SMB network browser
[b51fe6e]1248 </para>
[45f56ac]1249 <indexterm zone="samba smbtree">
[99ef1fc]1250 <primary sortas="b-smbtree">smbtree</primary>
1251 </indexterm>
1252 </listitem>
1253 </varlistentry>
1254
1255 <varlistentry id="tdbbackup">
1256 <term><command>tdbbackup</command></term>
1257 <listitem>
[b51fe6e]1258 <para>
1259 is a tool for backing up or validating the integrity of
[4c24eb0a]1260 <application>Samba</application> <filename>.tdb</filename> files
[b51fe6e]1261 </para>
[45f56ac]1262 <indexterm zone="samba tdbbackup">
[99ef1fc]1263 <primary sortas="b-tdbbackup">tdbbackup</primary>
1264 </indexterm>
1265 </listitem>
1266 </varlistentry>
1267
1268 <varlistentry id="tdbdump">
1269 <term><command>tdbdump</command></term>
1270 <listitem>
[b51fe6e]1271 <para>
1272 is a tool used to print the contents of a
[4c24eb0a]1273 <application>Samba</application> <filename>.tdb</filename> file
[b51fe6e]1274 </para>
[45f56ac]1275 <indexterm zone="samba tdbdump">
[99ef1fc]1276 <primary sortas="b-tdbdump">tdbdump</primary>
1277 </indexterm>
[72d90b67]1278 </listitem>
1279 </varlistentry>
1280
1281 <varlistentry id="tdbrestore">
1282 <term><command>tdbrestore</command></term>
1283 <listitem>
[b51fe6e]1284 <para>
1285 is a tool for creating a <application>Samba</application>
[4c24eb0a]1286 <filename>.tdb</filename> file out of a ntdbdump
[b51fe6e]1287 </para>
[72d90b67]1288 <indexterm zone="samba tdbrestore">
1289 <primary sortas="b-tdbrestore">tdbrestore</primary>
1290 </indexterm>
[99ef1fc]1291 </listitem>
1292 </varlistentry>
1293
1294 <varlistentry id="tdbtool">
1295 <term><command>tdbtool</command></term>
1296 <listitem>
[b51fe6e]1297 <para>
1298 is a tool which allows simple database manipulation from the
[4c24eb0a]1299 command line
[b51fe6e]1300 </para>
[45f56ac]1301 <indexterm zone="samba tdbtool">
[99ef1fc]1302 <primary sortas="b-tdbtool">tdbtool</primary>
1303 </indexterm>
1304 </listitem>
1305 </varlistentry>
1306
1307 <varlistentry id="testparm">
1308 <term><command>testparm</command></term>
1309 <listitem>
[b51fe6e]1310 <para>
[cdddf067]1311 checks a <filename>smb.conf</filename> file for proper syntax
[b51fe6e]1312 </para>
[45f56ac]1313 <indexterm zone="samba testparm">
[99ef1fc]1314 <primary sortas="b-testparm">testparm</primary>
1315 </indexterm>
1316 </listitem>
1317 </varlistentry>
1318
1319 <varlistentry id="wbinfo">
1320 <term><command>wbinfo</command></term>
1321 <listitem>
[b51fe6e]1322 <para>
[4c24eb0a]1323 queries a running <command>winbindd</command> daemon
[b51fe6e]1324 </para>
[45f56ac]1325 <indexterm zone="samba wbinfo">
[99ef1fc]1326 <primary sortas="b-wbinfo">wbinfo</primary>
1327 </indexterm>
1328 </listitem>
1329 </varlistentry>
1330
1331 <varlistentry id="winbindd">
1332 <term><command>winbindd</command></term>
1333 <listitem>
[b51fe6e]1334 <para>
[4c24eb0a]1335 resolves names from Windows NT servers
[b51fe6e]1336 </para>
[45f56ac]1337 <indexterm zone="samba winbindd">
[99ef1fc]1338 <primary sortas="b-winbindd">winbindd</primary>
1339 </indexterm>
1340 </listitem>
1341 </varlistentry>
1342
[f4c0a45]1343 <varlistentry id="libnss_winbind">
[4c24eb0a]1344 <term><filename class="libraryfile">libnss_winbind.so</filename></term>
[f4c0a45]1345 <listitem>
[b51fe6e]1346 <para>
1347 provides Name Service Switch API functions for resolving names
[4c24eb0a]1348 from NT servers
[b51fe6e]1349 </para>
[45f56ac]1350 <indexterm zone="samba libnss_winbind">
[f4c0a45]1351 <primary sortas="c-libnss_winbind">libnss_winbind.so</primary>
1352 </indexterm>
1353 </listitem>
1354 </varlistentry>
1355
1356 <varlistentry id="libnss_wins">
[4c24eb0a]1357 <term><filename class="libraryfile">libnss_wins.so</filename></term>
[f4c0a45]1358 <listitem>
[b51fe6e]1359 <para>
1360 provides API functions for Samba's implementation of the
[4c24eb0a]1361 Windows Internet Naming Service
[b51fe6e]1362 </para>
[45f56ac]1363 <indexterm zone="samba libnss_wins">
[f4c0a45]1364 <primary sortas="c-libnss_wins">libnss_wins.so</primary>
1365 </indexterm>
1366 </listitem>
1367 </varlistentry>
1368
1369 <varlistentry id="libnetapi">
[4c24eb0a]1370 <term><filename class="libraryfile">libnetapi.so</filename></term>
[f4c0a45]1371 <listitem>
[b51fe6e]1372 <para>
[94bdff09]1373 provides API functions for the administration tools used
[4c24eb0a]1374 for Samba and remote CIFS servers
[b51fe6e]1375 </para>
[45f56ac]1376 <indexterm zone="samba libnetapi">
[f4c0a45]1377 <primary sortas="c-libnetapi">libnetapi.so</primary>
1378 </indexterm>
1379 </listitem>
1380 </varlistentry>
1381
1382 <varlistentry id="libsmbclient">
[4c24eb0a]1383 <term><filename class="libraryfile">libsmbclient.so</filename></term>
[f4c0a45]1384 <listitem>
[b51fe6e]1385 <para>
[94bdff09]1386 provides API functions for the Samba SMB client tools
[b51fe6e]1387 </para>
[45f56ac]1388 <indexterm zone="samba libsmbclient">
[f4c0a45]1389 <primary sortas="c-libsmbclient">libsmbclient.so</primary>
1390 </indexterm>
1391 </listitem>
1392 </varlistentry>
[defca61]1393<!--
[f4c0a45]1394 <varlistentry id="libsmbsharemodes">
[4c24eb0a]1395 <term><filename class="libraryfile">libsmbsharemodes.so</filename></term>
[f4c0a45]1396 <listitem>
[b51fe6e]1397 <para>
1398 provides API functions for accessing SMB share modes (locks etc.)
1399 </para>
[45f56ac]1400 <indexterm zone="samba libsmbsharemodes">
[f4c0a45]1401 <primary sortas="c-libsmbsharemodes">libsmbsharemodes.so</primary>
1402 </indexterm>
1403 </listitem>
[defca61]1404 </varlistentry>-->
[f4c0a45]1405
1406 <varlistentry id="libwbclient">
[4c24eb0a]1407 <term><filename class="libraryfile">libwbclient.so</filename></term>
[f4c0a45]1408 <listitem>
[b51fe6e]1409 <para>
[4c24eb0a]1410 provides API functions for Windows domain client services
[b51fe6e]1411 </para>
[45f56ac]1412 <indexterm zone="samba libwbclient">
[f4c0a45]1413 <primary sortas="c-libwbclient">libwbclient.so</primary>
1414 </indexterm>
1415 </listitem>
1416 </varlistentry>
1417
[99ef1fc]1418 </variablelist>
1419
1420 </sect2>
1421
1422</sect1>
Note: See TracBrowser for help on using the repository browser.