source: networking/netprogs/samba.xml@ 2b4ea67

11.3 12.0 12.1 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/llvm18 xry111/xf86-video-removal
Last change on this file since 2b4ea67 was ece8654e, checked in by Douglas R. Reno <renodr@…>, 19 months ago

Update to samba-4.17.4 (security update)

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