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