source: networking/netprogs/samba.xml@ 8dfc5c3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 8dfc5c3 was 8dfc5c3, checked in by Krejzi <krejzi@…>, 7 years ago

Fix some URLs

  • Switch to https:// scheme where possible to avoid redirects
  • Unify all kernel.org, Sourceforge and GNU URLs
  • Fix python and perl module URLs to be consistent
  • Fix github provided URLs to properly download tarballs instead of vFOO.tar.gz
  • Use upstream locations for some packages or better/shorter URLs if available
  • Add https:// URLs for gnupg packages

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19022 af4574ff-66df-0310-9fd7-8a98e5e911e0

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