source: networking/netprogs/samba.xml@ 89b9739

trunk
Last change on this file since 89b9739 was 89b9739, checked in by Tim Tassonis <stuff@…>, 2 weeks ago

Update to samba-4.20.2

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