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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 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 nosym 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 2dbb5526 was 2dbb5526, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Added PCRE2
Update to grilo-0.3.2
Update to Samba-4.5.0
Added GNOME-3.22 entity
Typo fixes

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

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