source: networking/netprogs/samba.xml@ 84231e06

11.2 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/soup3 xry111/xf86-video-removal
Last change on this file since 84231e06 was 1201c9f, checked in by Douglas R. Reno <renodr@…>, 2 years ago

Tag

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