source: networking/netprogs/samba.xml@ 6e8afde

11.1 11.2 11.3 12.0 12.1 12.2 gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6e8afde was ff0b8752, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Reformat a sed

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