[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[0931098] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[18f2584] | 7 | <!ENTITY samba-download-http "https://download.samba.org/pub/samba/stable/samba-&samba-version;.tar.gz">
|
---|
[1c73261] | 8 | <!ENTITY samba-download-ftp " ">
|
---|
[d6cc89f] | 9 | <!ENTITY samba-md5sum "614b4c7b9bbc70cff4cb56956f565741">
|
---|
[defca61] | 10 | <!ENTITY samba-size "20 MB">
|
---|
[d6cc89f] | 11 | <!ENTITY samba-buildsize "487 MB (additional 400 MB for the quicktest, reputedly up to 500 MB additional for all tests)">
|
---|
| 12 | <!ENTITY samba-time "2.1 SBU, using parallelism=4 (additional 7.3 SBU for the quicktest, reputedly up to 110 SBU to run all tests)">
|
---|
[0931098] | 13 | ]>
|
---|
| 14 |
|
---|
[45f56ac] | 15 | <sect1 id="samba" xreflabel="Samba-&samba-version;">
|
---|
| 16 | <?dbhtml filename="samba.html"?>
|
---|
[99ef1fc] | 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[45f56ac] | 23 | <title>Samba-&samba-version;</title>
|
---|
[99ef1fc] | 24 |
|
---|
[45f56ac] | 25 | <indexterm zone="samba">
|
---|
[99ef1fc] | 26 | <primary sortas="a-Samba">Samba</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
[4e82a189] | 29 | <sect2 role="package">
|
---|
[99ef1fc] | 30 | <title>Introduction to Samba</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>Samba</application> package provides file and print
|
---|
| 33 | services to SMB/CIFS clients and Windows networking to Linux clients.
|
---|
[7cae14c] | 34 | <application>Samba</application> can also be configured as a Windows Domain
|
---|
| 35 | Controller replacement, a file/print server acting as a member of a Windows
|
---|
[99ef1fc] | 36 | Active Directory domain and a NetBIOS (rfc1001/1002) nameserver (which
|
---|
[7cae14c] | 37 | among other things provides LAN browsing support).</para>
|
---|
[99ef1fc] | 38 |
|
---|
[80d6d7d5] | 39 | &lfs77_checked;
|
---|
[ee792ef] | 40 |
|
---|
[99ef1fc] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[45f56ac] | 44 | <para>Download (HTTP): <ulink url="&samba-download-http;"/></para>
|
---|
[99ef1fc] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[45f56ac] | 47 | <para>Download (FTP): <ulink url="&samba-download-ftp;"/></para>
|
---|
[99ef1fc] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[45f56ac] | 50 | <para>Download MD5 sum: &samba-md5sum;</para>
|
---|
[99ef1fc] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[45f56ac] | 53 | <para>Download size: &samba-size;</para>
|
---|
[99ef1fc] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[45f56ac] | 56 | <para>Estimated disk space required: &samba-buildsize;</para>
|
---|
[99ef1fc] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[45f56ac] | 59 | <para>Estimated build time: &samba-time;</para>
|
---|
[99ef1fc] | 60 | </listitem>
|
---|
| 61 | </itemizedlist>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect3">Samba Dependencies</bridgehead>
|
---|
| 64 |
|
---|
[e85edcc] | 65 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[7cae14c] | 66 | <para role="required">
|
---|
[fe15290] | 67 | <xref linkend="python2"/>
|
---|
[7cae14c] | 68 | </para>
|
---|
[e85edcc] | 69 |
|
---|
[6e08e9c0] | 70 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[e242b9a] | 71 | <para role="recommended">
|
---|
[defca61] | 72 | <xref linkend="libxslt"/> (for documentation) and
|
---|
| 73 | <xref linkend="openldap"/>
|
---|
[6e08e9c0] | 74 | </para>
|
---|
| 75 |
|
---|
[99ef1fc] | 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[7cae14c] | 77 | <para role="optional">
|
---|
[5f1ca9f] | 78 | <xref linkend="avahi"/>,
|
---|
[7cae14c] | 79 | <xref linkend="cups"/>,
|
---|
[2ae8864] | 80 | <xref linkend="gnutls"/>,
|
---|
[defca61] | 81 | <xref linkend="libarchive"/>,
|
---|
[5f1ca9f] | 82 | <xref linkend="libcap-pam"/>,
|
---|
[2ae8864] | 83 | <xref linkend="libgpg-error"/>,
|
---|
[5f1ca9f] | 84 | <xref linkend="linux-pam"/>,
|
---|
| 85 | <xref linkend="mitkrb"/>,
|
---|
| 86 | <xref linkend="popt"/>,
|
---|
| 87 | <xref linkend="valgrind"/> (optionally used by the test suite),
|
---|
[7cae14c] | 88 | <xref linkend="xfsprogs"/>,
|
---|
[defca61] | 89 | <ulink url="https://ctdb.samba.org/">ctdb</ulink>,
|
---|
[5f1ca9f] | 90 | <ulink url="https://people.gnome.org/~veillard/gamin/">Gamin</ulink>,
|
---|
[defca61] | 91 | <ulink url="http://www.h5l.org/">Heimdal</ulink>,
|
---|
[2ae8864] | 92 | <ulink url="http://ftp.de.debian.org/debian/pool/main/liba/libaio/">libaio</ulink>,
|
---|
[7cae14c] | 93 | <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>,
|
---|
[defca61] | 94 | <ulink url="https://www.samba.org/ftp/ldb/">ldb</ulink>,
|
---|
| 95 | <ulink url="http://www.openafs.org/">OpenAFS</ulink>,
|
---|
| 96 | <ulink url="https://tevent.samba.org/">tevent</ulink>, and
|
---|
| 97 | <ulink url="https://tdb.samba.org/">tdb</ulink>
|
---|
[f1607a4] | 98 | </para>
|
---|
[6dcdcde] | 99 |
|
---|
[3cb0c57] | 100 | <para condition="html" role="usernotes">User Notes:
|
---|
[216b521] | 101 | <ulink url="&blfs-wiki;/samba4"/></para>
|
---|
[3cb0c57] | 102 |
|
---|
[99ef1fc] | 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2 role="installation">
|
---|
| 106 | <title>Installation of Samba</title>
|
---|
[2ae8864] | 107 |
|
---|
[22320b4c] | 108 | <note>
|
---|
[defca61] | 109 | <para>If you wish to run the test suite after the binaries are built, you
|
---|
| 110 | must add the <option>--enable-selftest</option> parameter to the
|
---|
| 111 | <command>configure</command> script below. You may want to run
|
---|
| 112 | <command>configure</command> with the <option>--help</option> parameter
|
---|
| 113 | first. There may be other parameters needed to take advantage of optional
|
---|
| 114 | dependencies.</para>
|
---|
[2ae8864] | 115 | </note>
|
---|
[22320b4c] | 116 |
|
---|
[b9abcb5] | 117 | <para>Fix some code when building with gnutls-3.4 and later:</para>
|
---|
| 118 |
|
---|
| 119 | <screen><userinput>sed -e 's/.*set_priority.*/ gnutls_priority_set_direct(tls->session, "NORMAL:+CTYPE-OPENPGP", NULL);/' \
|
---|
| 120 | -e '/cert_type_priority/d' \
|
---|
| 121 | -i source4/lib/tls/tls.c &&
|
---|
| 122 | sed -e 's/.*set_priority.*/ gnutls_priority_set_direct(tlss->tls_session, "NORMAL:+CTYPE-OPENPGP", NULL);/' \
|
---|
| 123 | -e '/t cert_type_priority/ s:^:/*:' \
|
---|
| 124 | -e '/t cert_type_priority/{n;N;N;N;s:$:*/:}' \
|
---|
| 125 | -i source4/lib/tls/tls_tstream.c</userinput></screen>
|
---|
| 126 |
|
---|
[65dea1b6] | 127 | <para>Install <application>Samba</application> by running the following
|
---|
| 128 | commands:</para>
|
---|
| 129 |
|
---|
[b45d8f3] | 130 | <screen><userinput>./configure \
|
---|
[67e58a5] | 131 | --prefix=/usr \
|
---|
| 132 | --sysconfdir=/etc \
|
---|
| 133 | --localstatedir=/var \
|
---|
| 134 | --with-piddir=/run/samba \
|
---|
| 135 | --with-pammodulesdir=/lib/security \
|
---|
[99ece5d] | 136 | --without-systemd \
|
---|
[defca61] | 137 | --enable-fhs &&
|
---|
[38b41c2] | 138 |
|
---|
[7cae14c] | 139 | make</userinput></screen>
|
---|
[2ae8864] | 140 |
|
---|
[99ece5d] | 141 | <para>According to <application>Samba</application> developers, the
|
---|
| 142 | limitation to 108 characters of the path length of a unix named pipe socket
|
---|
| 143 | may be the cause of errors, so that over 1/3 of the tests might fail. For
|
---|
[80d6d7d5] | 144 | this reason, the switch <option>--with-selftest-prefix=/tmp/quick</option>
|
---|
[99ece5d] | 145 | (or another path with small number of characters) can be used with
|
---|
| 146 | configure. Even so, the
|
---|
| 147 | <quote><replaceable>samba3.raw.eas</replaceable></quote> test may fail,
|
---|
| 148 | apparently for the same reason. If one quicktest fails, it can be disabled.
|
---|
| 149 | For example, <quote><replaceable>samba3.raw.eas</replaceable></quote> may
|
---|
| 150 | be disabled with the following command:</para>
|
---|
| 151 |
|
---|
| 152 | <screen><userinput>sed -i "/samba3.blackbox.failure.failure/i \^samba3.raw.eas" selftest/knownfail</userinput></screen>
|
---|
| 153 |
|
---|
[99c32731] | 154 | <para>To test the results, as the
|
---|
| 155 | <systemitem class="username">root</systemitem> user, issue:
|
---|
| 156 | <command>make quicktest 2>&1 | tee quicktest.log</command>. Summary of
|
---|
| 157 | the test results and some other information may be obtained with
|
---|
| 158 | <command>grep -A5 testsuites quicktest.log</command>. There are other
|
---|
| 159 | targets (test, subunit-test) available, but take a very long time
|
---|
| 160 | (over 100 SBU).</para>
|
---|
[0f53ca47] | 161 |
|
---|
[99ef1fc] | 162 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[38b41c2] | 163 |
|
---|
[214b9ac] | 164 | <screen role="root"><userinput>make install &&
|
---|
| 165 |
|
---|
[7cae14c] | 166 | mv -v /usr/lib/libnss_win{s,bind}.so* /lib &&
|
---|
| 167 | ln -v -sf ../../lib/libnss_winbind.so.2 /usr/lib/libnss_winbind.so &&
|
---|
| 168 | ln -v -sf ../../lib/libnss_wins.so.2 /usr/lib/libnss_wins.so &&
|
---|
[214b9ac] | 169 |
|
---|
[b0ed6bdf] | 170 | install -v -m644 examples/smb.conf.default /etc/samba &&
|
---|
[214b9ac] | 171 |
|
---|
[7cae14c] | 172 | mkdir -pv /etc/openldap/schema &&
|
---|
| 173 |
|
---|
| 174 | install -v -m644 examples/LDAP/README \
|
---|
| 175 | /etc/openldap/schema/README.LDAP &&
|
---|
[b0ed6bdf] | 176 |
|
---|
[7cae14c] | 177 | install -v -m644 examples/LDAP/samba* \
|
---|
| 178 | /etc/openldap/schema &&
|
---|
[b0ed6bdf] | 179 |
|
---|
[96770a19] | 180 | install -v -m755 examples/LDAP/{get*,ol*} \
|
---|
[7cae14c] | 181 | /etc/openldap/schema &&
|
---|
[f4c0a45] | 182 |
|
---|
[45f56ac] | 183 | install -v -m755 -d /usr/share/doc/samba-&samba-version; &&
|
---|
[7cae14c] | 184 |
|
---|
| 185 | install -v -m644 lib/ntdb/doc/design.pdf \
|
---|
[96770a19] | 186 | /usr/share/doc/samba-&samba-version;</userinput></screen>
|
---|
[7cae14c] | 187 |
|
---|
[99ef1fc] | 188 | </sect2>
|
---|
| 189 |
|
---|
| 190 | <sect2 role="commands">
|
---|
| 191 | <title>Command Explanations</title>
|
---|
| 192 |
|
---|
[d18b639] | 193 | <para><parameter>--enable-fhs</parameter>: Assigns all other file paths in
|
---|
[99ef1fc] | 194 | a manner compliant with the Filesystem Hierarchy Standard (FHS).</para>
|
---|
| 195 |
|
---|
[99ece5d] | 196 | <para><parameter>--without-systemd</parameter>: Disable
|
---|
| 197 | <application>systemd</application> integration, which is not part of
|
---|
| 198 | LFS/BLFS. If you use <application>systemd</application>, replace by
|
---|
| 199 | <parameter>--with-systemd</parameter>.</para>
|
---|
[48467f3] | 200 | <!--
|
---|
| 201 | <para><option>-/-enable-socket-wrapper</option> and
|
---|
| 202 | <option>-/-enable-selftest</option>: These options are required to run
|
---|
[08bb11c1] | 203 | the test suite.</para>-->
|
---|
[6dcdcde] | 204 |
|
---|
[08bb11c1] | 205 | <para><option>--with-selftest-prefix=SELFTEST_PREFIX</option>: This option
|
---|
| 206 | specify the test suite work directory (default=./st).</para>
|
---|
[99ece5d] | 207 |
|
---|
[7cae14c] | 208 | <para><command>mv -v /usr/lib/libnss_win{s,bind}.so* /lib</command>:
|
---|
| 209 | The nss libraries are installed in /usr/lib by default. Move them to
|
---|
| 210 | /lib.</para>
|
---|
[e85edcc] | 211 |
|
---|
[7cae14c] | 212 | <para><command>ln -v -sf ../../lib/libnss_winbind.so.2 /usr/lib/libnss_winbind.so</command>
|
---|
| 213 | and <command>ln -v -sf ../../lib/libnss_wins.so.2 /usr/lib/libnss_wins.so</command>:
|
---|
| 214 | These symlinks are required when applicates build against these libraries.</para>
|
---|
[5e8ab95] | 215 |
|
---|
[7cae14c] | 216 | <para><command>install -v -m644 examples/LDAP/* /etc/openldap/schema</command>:
|
---|
| 217 | These commands are used to copy sample Samba schemas to the OpenLDAP
|
---|
[f4c0a45] | 218 | <filename class='directory'>schema</filename> directory.</para>
|
---|
[99ef1fc] | 219 |
|
---|
| 220 | <para><command>install -v -m644 ../examples/smb.conf.default
|
---|
| 221 | /etc/samba</command>: This copies a default <filename>smb.conf</filename>
|
---|
[2ccb0dc] | 222 | file into <filename>/etc/samba</filename>. This sample configuration will
|
---|
| 223 | not work until you copy it to <filename>/etc/samba/smb.conf</filename> and
|
---|
| 224 | make the appropriate changes for your installation. See the configuration
|
---|
| 225 | section for minimum values which must be set.</para>
|
---|
[99ef1fc] | 226 |
|
---|
| 227 | </sect2>
|
---|
| 228 |
|
---|
| 229 | <sect2 role="configuration">
|
---|
| 230 | <title>Configuring Samba</title>
|
---|
| 231 |
|
---|
[45f56ac] | 232 | <sect3 id="samba-config">
|
---|
[99ef1fc] | 233 | <title>Config Files</title>
|
---|
| 234 |
|
---|
| 235 | <para>/etc/samba/smb.conf</para>
|
---|
| 236 |
|
---|
[45f56ac] | 237 | <indexterm zone="samba samba-config">
|
---|
[99ef1fc] | 238 | <primary sortas="e-etc-samba-smb.conf">/etc/samba/smb.conf</primary>
|
---|
| 239 | </indexterm>
|
---|
| 240 |
|
---|
| 241 | </sect3>
|
---|
[e75747d1] | 242 |
|
---|
[2ccb0dc] | 243 | <sect3>
|
---|
[fc290c7] | 244 | <title>Printing to SMB Clients</title>
|
---|
[2ccb0dc] | 245 |
|
---|
[fc290c7] | 246 | <para>If you use <application>CUPS</application> for print services,
|
---|
| 247 | and you wish to print to a printer attached to an SMB client, you
|
---|
| 248 | need to create an SMB backend device. To create the device, issue the
|
---|
| 249 | following command as the <systemitem class="username">root</systemitem>
|
---|
| 250 | user:</para>
|
---|
[2ccb0dc] | 251 |
|
---|
[fc290c7] | 252 | <screen role="root"><userinput>ln -v -sf /usr/bin/smbspool /usr/lib/cups/backend/smb</userinput></screen>
|
---|
[2ccb0dc] | 253 |
|
---|
| 254 | </sect3>
|
---|
| 255 |
|
---|
[99ef1fc] | 256 | <sect3>
|
---|
[fc290c7] | 257 | <title>Configuration Information</title>
|
---|
[99ef1fc] | 258 |
|
---|
| 259 | <para>Due to the complexity and the many various uses for
|
---|
[fc290c7] | 260 | <application>Samba</application>, complete configuration for all the
|
---|
[e59bdce] | 261 | package's capabilities is well beyond the scope of the BLFS book. This
|
---|
[fc290c7] | 262 | section provides instructions to configure the
|
---|
| 263 | <filename>/etc/samba/smb.conf</filename> file for two common scenarios.
|
---|
| 264 | The complete contents of <filename>/etc/samba/smb.conf</filename> will
|
---|
[bccbdaea] | 265 | depend on the purpose of <application>Samba</application>
|
---|
[fc290c7] | 266 | installation.</para>
|
---|
| 267 |
|
---|
| 268 | <note>
|
---|
| 269 | <para>You may find it easier to copy the configuration parameters shown
|
---|
| 270 | below into an empty <filename>/etc/samba/smb.conf</filename> file
|
---|
| 271 | instead of copying and editing the default file as mentioned in the
|
---|
| 272 | <quote>Command Explanations</quote> section. How you create/edit the
|
---|
| 273 | <filename>/etc/samba/smb.conf</filename> file will be left up to
|
---|
| 274 | you. Do ensure the file is only writeable by the
|
---|
| 275 | <systemitem class="username">root</systemitem> user (mode 644).</para>
|
---|
| 276 | </note>
|
---|
| 277 |
|
---|
| 278 | <sect4>
|
---|
| 279 | <title>Scenario 1: Minimal Standalone Client-Only Installation</title>
|
---|
| 280 |
|
---|
[bccbdaea] | 281 | <para>Choose this variant if you only want to transfer files using
|
---|
[fc290c7] | 282 | <command>smbclient</command>, mount Windows shares and print to Windows
|
---|
[bccbdaea] | 283 | printers, and don't want to share your files and printers to Windows
|
---|
[fc290c7] | 284 | machines.</para>
|
---|
| 285 |
|
---|
| 286 | <para>A <filename>/etc/samba/smb.conf</filename> file with the following
|
---|
| 287 | three parameters is sufficient:</para>
|
---|
| 288 |
|
---|
| 289 | <screen role='root'><literal>[global]
|
---|
| 290 | workgroup = <replaceable>MYGROUP</replaceable>
|
---|
| 291 | dos charset = <replaceable>cp850</replaceable>
|
---|
| 292 | unix charset = <replaceable>ISO-8859-1</replaceable></literal></screen>
|
---|
| 293 |
|
---|
| 294 | <para>The values in this example specify that the computer belongs to a
|
---|
| 295 | Windows workgroup named
|
---|
| 296 | <quote><replaceable>MYGROUP</replaceable></quote>, uses the
|
---|
| 297 | <quote><replaceable>cp850</replaceable></quote> character set on the
|
---|
| 298 | wire when talking to MS-DOS and MS Windows 9x, and that the filenames
|
---|
| 299 | are stored in the <quote><replaceable>ISO-8859-1</replaceable></quote>
|
---|
| 300 | encoding on the disk. Adjust these values appropriately for your
|
---|
| 301 | installation. The <quote>unix charset</quote> value must be the same as
|
---|
| 302 | the output of <command>locale charmap</command> when executed with the
|
---|
| 303 | <envar>LANG</envar> variable set to your preferred locale, otherwise the
|
---|
| 304 | <command>ls</command> command may not display correct filenames of
|
---|
| 305 | downloaded files.</para>
|
---|
| 306 |
|
---|
| 307 | <para>There is no need to run any <application>Samba</application>
|
---|
| 308 | servers in this scenario, thus you don't need to install the provided
|
---|
| 309 | bootscripts.</para>
|
---|
| 310 |
|
---|
| 311 | </sect4>
|
---|
| 312 |
|
---|
| 313 | <sect4>
|
---|
| 314 | <title>Scenario 2: Standalone File/Print Server</title>
|
---|
| 315 |
|
---|
| 316 | <para>Choose this variant if you want to share your files and printers
|
---|
| 317 | to Windows machines in your workgroup in addition to the capabilities
|
---|
| 318 | described in Scenario 1.</para>
|
---|
| 319 |
|
---|
| 320 | <para>In this case, the <filename>/etc/samba/smb.conf.default</filename>
|
---|
[bccbdaea] | 321 | file may be a good template to start from. Also add
|
---|
[fc290c7] | 322 | <quote>dos charset</quote> and <quote>unix charset</quote> parameters
|
---|
| 323 | to the <quote>[global]</quote> section as described in Scenario 1 in
|
---|
[0f53ca47] | 324 | order to prevent filename corruption. For security reasons, you may
|
---|
| 325 | wish to define
|
---|
| 326 | <replaceable>path = /home/alice/shared-files</replaceable>,
|
---|
| 327 | assuming your user name is <replaceable>alice</replaceable> and you
|
---|
| 328 | only want to share the files in that directory, instead of your entire
|
---|
| 329 | home. Then, replace <replaceable>homes</replaceable> by
|
---|
| 330 | <replaceable>shared-files</replaceable> and change also the
|
---|
| 331 | <quote><literal>comment</literal></quote> if used the configuration
|
---|
| 332 | file below or the <filename>/etc/samba/smb.conf.default</filename>
|
---|
| 333 | to create yours.</para>
|
---|
[fc290c7] | 334 |
|
---|
| 335 | <para>The following configuration file creates a separate share for each
|
---|
| 336 | user's home directory and also makes all printers available to Windows
|
---|
| 337 | machines:</para>
|
---|
| 338 |
|
---|
| 339 | <screen role='root'><literal>[global]
|
---|
| 340 | workgroup = <replaceable>MYGROUP</replaceable>
|
---|
| 341 | dos charset = <replaceable>cp850</replaceable>
|
---|
| 342 | unix charset = <replaceable>ISO-8859-1</replaceable>
|
---|
| 343 |
|
---|
| 344 | [homes]
|
---|
| 345 | comment = Home Directories
|
---|
| 346 | browseable = no
|
---|
| 347 | writable = yes
|
---|
| 348 |
|
---|
| 349 | [printers]
|
---|
| 350 | comment = All Printers
|
---|
| 351 | path = /var/spool/samba
|
---|
| 352 | browseable = no
|
---|
| 353 | guest ok = no
|
---|
| 354 | printable = yes</literal></screen>
|
---|
| 355 |
|
---|
[bccbdaea] | 356 | <para>Other parameters you may wish to customize in the
|
---|
[fc290c7] | 357 | <quote>[global]</quote> section include:</para>
|
---|
| 358 |
|
---|
| 359 | <screen role='root'><literal> server string =
|
---|
| 360 | security =
|
---|
| 361 | hosts allow =
|
---|
| 362 | load printers =
|
---|
| 363 | log file =
|
---|
| 364 | max log size =
|
---|
| 365 | socket options =
|
---|
| 366 | local master =</literal></screen>
|
---|
| 367 |
|
---|
| 368 | <para>Reference the comments in the
|
---|
| 369 | <filename>/etc/samba/smb.conf.default</filename> file for information
|
---|
| 370 | regarding these parameters.</para>
|
---|
| 371 |
|
---|
| 372 | <para>Since the <command>smbd</command> and <command>nmbd</command>
|
---|
| 373 | daemons are needed in this case, install the <filename>samba</filename>
|
---|
| 374 | bootscript. Be sure to run <command>smbpasswd</command> (with the
|
---|
| 375 | <option>-a</option> option to add users) to enable and
|
---|
| 376 | set passwords for all accounts that need
|
---|
[96770a19] | 377 | <application>Samba</application> access. Using the default
|
---|
[fc290c7] | 378 | <application>Samba</application> passdb backend, any user you attempt
|
---|
| 379 | to add will also be required to exist in the
|
---|
| 380 | <filename>/etc/passwd</filename> file.</para>
|
---|
| 381 |
|
---|
| 382 | </sect4>
|
---|
| 383 |
|
---|
| 384 | <sect4>
|
---|
| 385 | <title>Advanced Requirements</title>
|
---|
| 386 |
|
---|
| 387 | <para>More complex scenarios involving domain control or membership are
|
---|
[7cae14c] | 388 | possible. Such setups are advanced topics and cannot be adequately
|
---|
| 389 | covered in BLFS. Many complete books have been written on these topics
|
---|
| 390 | alone. Note that in some domain membership scenarios, the
|
---|
| 391 | <command>winbindd</command> daemon and the corresponding bootscript are
|
---|
| 392 | needed.</para>
|
---|
[fc290c7] | 393 |
|
---|
| 394 | <para>There is quite a bit of documentation available which covers many
|
---|
| 395 | of these advanced configurations. Point your web browser to the links
|
---|
| 396 | below to view some of the documentation included with the
|
---|
| 397 | <application>Samba</application> package:</para>
|
---|
| 398 |
|
---|
| 399 | <itemizedlist spacing='compact'>
|
---|
| 400 | <listitem>
|
---|
| 401 | <para>Using Samba, 2nd Edition; a popular book published by O'Reilly
|
---|
[7cae14c] | 402 | <ulink url="http://www.samba.org/samba/docs/using_samba/toc.html"/></para>
|
---|
[fc290c7] | 403 | </listitem>
|
---|
| 404 | <listitem>
|
---|
| 405 | <para>The Official Samba HOWTO and Reference Guide <ulink
|
---|
[7cae14c] | 406 | url="http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/"/>
|
---|
[fc290c7] | 407 | </para>
|
---|
| 408 | </listitem>
|
---|
| 409 | <listitem>
|
---|
| 410 | <para>Samba-3 by Example
|
---|
[7cae14c] | 411 | <ulink url="http://www.samba.org/samba/docs/man/Samba-Guide/"/>
|
---|
[fc290c7] | 412 | </para>
|
---|
| 413 | </listitem>
|
---|
| 414 | </itemizedlist>
|
---|
| 415 |
|
---|
| 416 | </sect4>
|
---|
[99ef1fc] | 417 |
|
---|
[45f56ac] | 418 | <sect4 id="samba-init">
|
---|
[75f9474f] | 419 | <title>Boot Script</title>
|
---|
[0d7900a] | 420 |
|
---|
[75f9474f] | 421 | <para>For your convenience, boot scripts have been provided for
|
---|
| 422 | <application>Samba</application>. There are two included in the
|
---|
| 423 | <xref linkend="bootscripts"/> package. The first,
|
---|
| 424 | <filename>samba</filename>, will start the <command>smbd</command>
|
---|
| 425 | and <command>nmbd</command> daemons needed to provide SMB/CIFS
|
---|
| 426 | services. The second script, <filename>winbind</filename>, starts
|
---|
| 427 | the <command>winbindd</command> daemon, used for providing Windows
|
---|
| 428 | domain services to Linux clients.</para>
|
---|
[0d7900a] | 429 |
|
---|
[45f56ac] | 430 | <indexterm zone="samba samba-init">
|
---|
[75f9474f] | 431 | <primary sortas="f-samba">samba</primary>
|
---|
[fc290c7] | 432 | </indexterm>
|
---|
[0d7900a] | 433 |
|
---|
[45f56ac] | 434 | <indexterm zone="samba samba-init">
|
---|
[75f9474f] | 435 | <primary sortas="f-winbind">winbind</primary>
|
---|
[fc290c7] | 436 | </indexterm>
|
---|
[0d7900a] | 437 |
|
---|
[75f9474f] | 438 | <para>The default <application>Samba</application> installation uses the
|
---|
| 439 | <systemitem class='username'>nobody</systemitem> user for guest access
|
---|
| 440 | to the server. This can be overridden by setting the
|
---|
| 441 | <option>guest account =</option> parameter in the
|
---|
| 442 | <filename>/etc/samba/smb.conf</filename> file. If you utilize the
|
---|
| 443 | <option>guest account =</option> parameter, ensure this user exists in
|
---|
| 444 | the <filename>/etc/passwd</filename> file. To use the default user,
|
---|
| 445 | issue the following commands as the
|
---|
| 446 | <systemitem class='username'>root</systemitem> user:</para>
|
---|
[fc290c7] | 447 |
|
---|
[56be1485] | 448 | <screen role="root"><userinput>groupadd -g 99 nogroup &&
|
---|
[75f9474f] | 449 | useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
|
---|
| 450 | -s /bin/false -u 99 nobody</userinput></screen>
|
---|
[99ef1fc] | 451 |
|
---|
[75f9474f] | 452 | <para>Install the <filename>samba</filename> script with the following
|
---|
| 453 | command issued as the <systemitem class="username">root</systemitem>
|
---|
| 454 | user:</para>
|
---|
[99ef1fc] | 455 |
|
---|
[75f9474f] | 456 | <screen role="root"><userinput>make install-samba</userinput></screen>
|
---|
[99ef1fc] | 457 |
|
---|
[97926ab] | 458 | <para>If you also need the <filename>winbindd</filename>
|
---|
| 459 | script to resolve names from Windows clients, run:</para>
|
---|
[99ef1fc] | 460 |
|
---|
[97926ab] | 461 | <screen role="root"><userinput>make install-winbindd</userinput></screen>
|
---|
[99ef1fc] | 462 |
|
---|
[75f9474f] | 463 | </sect4>
|
---|
[99ef1fc] | 464 |
|
---|
[75f9474f] | 465 | </sect3>
|
---|
[99ef1fc] | 466 |
|
---|
| 467 | </sect2>
|
---|
| 468 |
|
---|
| 469 | <sect2 role="content">
|
---|
| 470 | <title>Contents</title>
|
---|
| 471 |
|
---|
| 472 | <segmentedlist>
|
---|
| 473 | <segtitle>Installed Programs</segtitle>
|
---|
| 474 | <segtitle>Installed Libraries</segtitle>
|
---|
| 475 | <segtitle>Installed Directories</segtitle>
|
---|
| 476 |
|
---|
| 477 | <seglistitem>
|
---|
[7cae14c] | 478 |
|
---|
[defca61] | 479 | <seg>
|
---|
| 480 | cifsdd, dbwrap_tool, eventlogadm, gentest, ldbadd, ldbdel, ldbedit,
|
---|
| 481 | ldbmodify, ldbrename, ldbsearch, locktest, masktest, ndrdump, net,
|
---|
[d6cc89f] | 482 | nmbd, nmblookup, ntdbbackup, ntdbdump, ntdbrestore, ntdbtool,
|
---|
| 483 | ntlm_auth, oLschema2ldif, pdbedit, pidl, profiles, regdiff, regpatch,
|
---|
| 484 | regshell, regtree, rpcclient, samba, samba_dnsupdate, samba_kcc,
|
---|
| 485 | samba-regedit, samba_spnupdate, samba-tool, samba_upgradedns,
|
---|
| 486 | sharesec, smbcacls, smbclient, smbcontrol, smbcquotas, smbd, smbget,
|
---|
| 487 | smbpasswd, smbspool, smbstatus, smbtar, smbta-util, smbtorture,
|
---|
| 488 | smbtree, tdbbackup, tdbdump, tdbrestore, tdbtool, testparm, wbinfo,
|
---|
| 489 | and winbindd
|
---|
[defca61] | 490 | </seg>
|
---|
| 491 |
|
---|
| 492 | <seg>
|
---|
| 493 | libdcerpc-atsvc.so, libdcerpc-binding.so, libdcerpc-samr.so,
|
---|
| 494 | libdcerpc-server.so, libdcerpc.so, libgensec.so, libndr-krb5pac.so,
|
---|
| 495 | libndr-nbt.so, libndr.so, libndr-standard.so, libnetapi.so,
|
---|
| 496 | libnss_winbind.so, libnss_wins.so, libregistry.so,
|
---|
| 497 | libsamba-credentials.so, libsamba-hostconfig.so, libsamba-passdb.so,
|
---|
| 498 | libsamba-policy.so, libsamba-util.so, libsamdb.so,
|
---|
| 499 | libsmbclient-raw.so, libsmbclient.so, libsmbconf.so, libsmbldap.so,
|
---|
| 500 | libtevent-util.so, libtorture.so, libwbclient.so, mit_samba.so, and
|
---|
| 501 | winbind_krb5_locator.so; the pam_winbind.so and pam_smbpass.so PAM
|
---|
| 502 | libraries; and assorted character set, filesystem and support modules
|
---|
| 503 | under /usr/lib/{python&python2-majorver;,samba}
|
---|
| 504 | </seg>
|
---|
[7cae14c] | 505 |
|
---|
[defca61] | 506 | <seg>
|
---|
| 507 | /etc/samba, /run/samba, /usr/include/samba-4.0,
|
---|
| 508 | /usr/lib/perl5/vendor_perl/5.x.y/Parse/Pidl/{Samba{3,4},Wireshark},
|
---|
| 509 | /usr/lib/python&python2-majorver;/site-packages/samba,
|
---|
| 510 | /usr/lib/samba, /usr/share/doc/samba-&samba-version;,
|
---|
| 511 | /usr/share/samba, and /var/{cache,lib,lock,log,run}/samba
|
---|
| 512 | </seg>
|
---|
[7cae14c] | 513 |
|
---|
[99ef1fc] | 514 | </seglistitem>
|
---|
| 515 | </segmentedlist>
|
---|
| 516 |
|
---|
| 517 | <variablelist>
|
---|
| 518 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 519 | <?dbfo list-presentation="list"?>
|
---|
| 520 | <?dbhtml list-presentation="table"?>
|
---|
| 521 |
|
---|
[a8ecf657] | 522 | <varlistentry id="eventlogadm">
|
---|
| 523 | <term><command>eventlogadm</command></term>
|
---|
| 524 | <listitem>
|
---|
| 525 | <para>is used to write records to eventlogs from STDIN, add the
|
---|
| 526 | specified source and DLL eventlog registry entries and display the
|
---|
| 527 | active eventlog names (from <filename>smb.conf</filename>).</para>
|
---|
[45f56ac] | 528 | <indexterm zone="samba eventlogadm">
|
---|
[a8ecf657] | 529 | <primary sortas="b-eventlogadm">eventlogadm</primary>
|
---|
| 530 | </indexterm>
|
---|
| 531 | </listitem>
|
---|
| 532 | </varlistentry>
|
---|
| 533 |
|
---|
[f4c0a45] | 534 | <varlistentry id="ldbadd">
|
---|
| 535 | <term><command>ldbadd</command></term>
|
---|
| 536 | <listitem>
|
---|
| 537 | <para>is a command-line utility for adding records to an LDB
|
---|
| 538 | database.</para>
|
---|
[45f56ac] | 539 | <indexterm zone="samba ldbadd">
|
---|
[f4c0a45] | 540 | <primary sortas="b-ldbadd">ldbadd</primary>
|
---|
| 541 | </indexterm>
|
---|
| 542 | </listitem>
|
---|
| 543 | </varlistentry>
|
---|
| 544 |
|
---|
| 545 | <varlistentry id="ldbdel">
|
---|
| 546 | <term><command>ldbdel</command></term>
|
---|
| 547 | <listitem>
|
---|
| 548 | <para>is a command-line program for deleting LDB database
|
---|
| 549 | records.</para>
|
---|
[45f56ac] | 550 | <indexterm zone="samba ldbdel">
|
---|
[f4c0a45] | 551 | <primary sortas="b-ldbdel">ldbdel</primary>
|
---|
| 552 | </indexterm>
|
---|
| 553 | </listitem>
|
---|
| 554 | </varlistentry>
|
---|
| 555 |
|
---|
| 556 | <varlistentry id="ldbedit">
|
---|
| 557 | <term><command>ldbedit</command></term>
|
---|
| 558 | <listitem>
|
---|
| 559 | <para>allows you to edit LDB databases using your preferred
|
---|
| 560 | editor.</para>
|
---|
[45f56ac] | 561 | <indexterm zone="samba ldbedit">
|
---|
[f4c0a45] | 562 | <primary sortas="b-ldbedit">ldbedit</primary>
|
---|
| 563 | </indexterm>
|
---|
| 564 | </listitem>
|
---|
| 565 | </varlistentry>
|
---|
| 566 |
|
---|
| 567 | <varlistentry id="ldbmodify">
|
---|
| 568 | <term><command>ldbmodify</command></term>
|
---|
| 569 | <listitem>
|
---|
| 570 | <para>allows you to modify records in an LDB database.</para>
|
---|
[45f56ac] | 571 | <indexterm zone="samba ldbmodify">
|
---|
[f4c0a45] | 572 | <primary sortas="b-ldbmodify">ldbmodify</primary>
|
---|
| 573 | </indexterm>
|
---|
| 574 | </listitem>
|
---|
| 575 | </varlistentry>
|
---|
| 576 |
|
---|
| 577 | <varlistentry id="ldbrename">
|
---|
| 578 | <term><command>ldbrename</command></term>
|
---|
| 579 | <listitem>
|
---|
| 580 | <para>allows you to edit LDB databases using your preferred
|
---|
| 581 | editor.</para>
|
---|
[45f56ac] | 582 | <indexterm zone="samba ldbrename">
|
---|
[f4c0a45] | 583 | <primary sortas="b-ldbrename">ldbrename</primary>
|
---|
| 584 | </indexterm>
|
---|
| 585 | </listitem>
|
---|
| 586 | </varlistentry>
|
---|
| 587 |
|
---|
| 588 | <varlistentry id="ldbsearch">
|
---|
| 589 | <term><command>ldbsearch</command></term>
|
---|
| 590 | <listitem>
|
---|
| 591 | <para>searches an LDB database for records matching a specified
|
---|
| 592 | expression.</para>
|
---|
[45f56ac] | 593 | <indexterm zone="samba ldbsearch">
|
---|
[f4c0a45] | 594 | <primary sortas="b-ldbsearch">ldbsearch</primary>
|
---|
| 595 | </indexterm>
|
---|
| 596 | </listitem>
|
---|
| 597 | </varlistentry>
|
---|
| 598 |
|
---|
[99ef1fc] | 599 | <varlistentry id="net">
|
---|
| 600 | <term><command>net</command></term>
|
---|
| 601 | <listitem>
|
---|
| 602 | <para>is a tool for administration of
|
---|
| 603 | <application>Samba</application> and remote CIFS servers, similar
|
---|
| 604 | to the <command>net</command> utility for DOS/Windows.</para>
|
---|
[45f56ac] | 605 | <indexterm zone="samba net">
|
---|
[99ef1fc] | 606 | <primary sortas="b-net">net</primary>
|
---|
| 607 | </indexterm>
|
---|
| 608 | </listitem>
|
---|
| 609 | </varlistentry>
|
---|
| 610 |
|
---|
| 611 | <varlistentry id="nmbd">
|
---|
| 612 | <term><command>nmbd</command></term>
|
---|
| 613 | <listitem>
|
---|
| 614 | <para>is the <application>Samba</application>
|
---|
| 615 | NetBIOS name server.</para>
|
---|
[45f56ac] | 616 | <indexterm zone="samba nmbd">
|
---|
[99ef1fc] | 617 | <primary sortas="b-nmbd">nmbd</primary>
|
---|
| 618 | </indexterm>
|
---|
| 619 | </listitem>
|
---|
| 620 | </varlistentry>
|
---|
| 621 |
|
---|
| 622 | <varlistentry id="nmblookup">
|
---|
| 623 | <term><command>nmblookup</command></term>
|
---|
| 624 | <listitem>
|
---|
| 625 | <para>is used to query NetBIOS names and map
|
---|
| 626 | them to IP addresses.</para>
|
---|
[45f56ac] | 627 | <indexterm zone="samba nmblookup">
|
---|
[99ef1fc] | 628 | <primary sortas="b-nmblookup">nmblookup</primary>
|
---|
| 629 | </indexterm>
|
---|
| 630 | </listitem>
|
---|
| 631 | </varlistentry>
|
---|
| 632 |
|
---|
| 633 | <varlistentry id="ntlm_auth">
|
---|
| 634 | <term><command>ntlm_auth</command></term>
|
---|
| 635 | <listitem>
|
---|
| 636 | <para>is a tool to allow external access to Winbind's
|
---|
| 637 | NTLM authentication function.</para>
|
---|
[45f56ac] | 638 | <indexterm zone="samba ntlm_auth">
|
---|
[99ef1fc] | 639 | <primary sortas="b-ntlm_auth">ntlm_auth</primary>
|
---|
| 640 | </indexterm>
|
---|
| 641 | </listitem>
|
---|
| 642 | </varlistentry>
|
---|
| 643 |
|
---|
| 644 | <varlistentry id="pdbedit">
|
---|
| 645 | <term><command>pdbedit</command></term>
|
---|
| 646 | <listitem>
|
---|
| 647 | <para>is a tool used to manage the SAM database.</para>
|
---|
[45f56ac] | 648 | <indexterm zone="samba pdbedit">
|
---|
[99ef1fc] | 649 | <primary sortas="b-pdbedit">pdbedit</primary>
|
---|
| 650 | </indexterm>
|
---|
| 651 | </listitem>
|
---|
| 652 | </varlistentry>
|
---|
| 653 |
|
---|
| 654 | <varlistentry id="profiles">
|
---|
| 655 | <term><command>profiles</command></term>
|
---|
| 656 | <listitem>
|
---|
| 657 | <para>is a utility that reports and changes SIDs in Windows
|
---|
| 658 | registry files. It currently only supports Windows NT.</para>
|
---|
[45f56ac] | 659 | <indexterm zone="samba profiles">
|
---|
[99ef1fc] | 660 | <primary sortas="b-profiles">profiles</primary>
|
---|
| 661 | </indexterm>
|
---|
| 662 | </listitem>
|
---|
| 663 | </varlistentry>
|
---|
| 664 |
|
---|
| 665 | <varlistentry id="rpcclient">
|
---|
| 666 | <term><command>rpcclient</command></term>
|
---|
| 667 | <listitem>
|
---|
| 668 | <para>is used to execute MS-RPC client side functions.</para>
|
---|
[45f56ac] | 669 | <indexterm zone="samba rpcclient">
|
---|
[99ef1fc] | 670 | <primary sortas="b-rpcclient">rpcclient</primary>
|
---|
| 671 | </indexterm>
|
---|
| 672 | </listitem>
|
---|
| 673 | </varlistentry>
|
---|
| 674 |
|
---|
[f4c0a45] | 675 | <varlistentry id="sharesec">
|
---|
| 676 | <term><command>sharesec</command></term>
|
---|
| 677 | <listitem>
|
---|
| 678 | <para>manipulates share ACL permissions on SMB file shares.</para>
|
---|
[45f56ac] | 679 | <indexterm zone="samba sharesec">
|
---|
[f4c0a45] | 680 | <primary sortas="b-sharesec">sharesec</primary>
|
---|
| 681 | </indexterm>
|
---|
| 682 | </listitem>
|
---|
| 683 | </varlistentry>
|
---|
| 684 |
|
---|
[99ef1fc] | 685 | <varlistentry id="smbcacls">
|
---|
| 686 | <term><command>smbcacls</command></term>
|
---|
| 687 | <listitem>
|
---|
| 688 | <para>is used to manipulate Windows NT access control lists.</para>
|
---|
[45f56ac] | 689 | <indexterm zone="samba smbcacls">
|
---|
[99ef1fc] | 690 | <primary sortas="b-smbcacls">smbcacls</primary>
|
---|
| 691 | </indexterm>
|
---|
| 692 | </listitem>
|
---|
| 693 | </varlistentry>
|
---|
| 694 |
|
---|
| 695 | <varlistentry id="smbclient">
|
---|
| 696 | <term><command>smbclient</command></term>
|
---|
| 697 | <listitem>
|
---|
| 698 | <para>is a SMB/CIFS access utility, similar to FTP.</para>
|
---|
[45f56ac] | 699 | <indexterm zone="samba smbclient">
|
---|
[99ef1fc] | 700 | <primary sortas="b-smbclient">smbclient</primary>
|
---|
| 701 | </indexterm>
|
---|
| 702 | </listitem>
|
---|
| 703 | </varlistentry>
|
---|
| 704 |
|
---|
| 705 | <varlistentry id="smbcontrol">
|
---|
| 706 | <term><command>smbcontrol</command></term>
|
---|
| 707 | <listitem>
|
---|
| 708 | <para>is used to control running <command>smbd</command>,
|
---|
| 709 | <command>nmbd</command> and <command>winbindd</command>
|
---|
| 710 | daemons.</para>
|
---|
[45f56ac] | 711 | <indexterm zone="samba smbcontrol">
|
---|
[99ef1fc] | 712 | <primary sortas="b-smbcontrol">smbcontrol</primary>
|
---|
| 713 | </indexterm>
|
---|
| 714 | </listitem>
|
---|
| 715 | </varlistentry>
|
---|
| 716 |
|
---|
| 717 | <varlistentry id="smbcquotas">
|
---|
| 718 | <term><command>smbcquotas</command></term>
|
---|
| 719 | <listitem>
|
---|
| 720 | <para>is used to manipulate Windows NT quotas on
|
---|
| 721 | SMB file shares.</para>
|
---|
[45f56ac] | 722 | <indexterm zone="samba smbcquotas">
|
---|
[99ef1fc] | 723 | <primary sortas="b-smbcquotas">smbcquotas</primary>
|
---|
| 724 | </indexterm>
|
---|
| 725 | </listitem>
|
---|
| 726 | </varlistentry>
|
---|
| 727 |
|
---|
| 728 | <varlistentry id="smbd">
|
---|
| 729 | <term><command>smbd</command></term>
|
---|
| 730 | <listitem>
|
---|
| 731 | <para>is the main <application>Samba</application> daemon which
|
---|
| 732 | provides SMB/CIFS services to clients.</para>
|
---|
[45f56ac] | 733 | <indexterm zone="samba smbd">
|
---|
[99ef1fc] | 734 | <primary sortas="b-smbd">smbd</primary>
|
---|
| 735 | </indexterm>
|
---|
| 736 | </listitem>
|
---|
| 737 | </varlistentry>
|
---|
| 738 |
|
---|
[a8ecf657] | 739 | <varlistentry id="smbget">
|
---|
| 740 | <term><command>smbget</command></term>
|
---|
| 741 | <listitem>
|
---|
| 742 | <para>is a simple utility with <command>wget</command>-like
|
---|
| 743 | semantics, that can download files from SMB servers. You can specify
|
---|
| 744 | the files you would like to download on the command-line.</para>
|
---|
[45f56ac] | 745 | <indexterm zone="samba smbget">
|
---|
[a8ecf657] | 746 | <primary sortas="b-smbget">smbget</primary>
|
---|
| 747 | </indexterm>
|
---|
| 748 | </listitem>
|
---|
| 749 | </varlistentry>
|
---|
| 750 |
|
---|
[99ef1fc] | 751 | <varlistentry id="smbpasswd">
|
---|
| 752 | <term><command>smbpasswd</command></term>
|
---|
| 753 | <listitem>
|
---|
| 754 | <para>changes a user's <application>Samba</application>
|
---|
| 755 | password.</para>
|
---|
[45f56ac] | 756 | <indexterm zone="samba smbpasswd">
|
---|
[99ef1fc] | 757 | <primary sortas="b-smbpasswd">smbpasswd</primary>
|
---|
| 758 | </indexterm>
|
---|
| 759 | </listitem>
|
---|
| 760 | </varlistentry>
|
---|
| 761 |
|
---|
| 762 | <varlistentry id="smbspool">
|
---|
| 763 | <term><command>smbspool</command></term>
|
---|
| 764 | <listitem>
|
---|
| 765 | <para>sends a print job to an SMB printer.</para>
|
---|
[45f56ac] | 766 | <indexterm zone="samba smbspool">
|
---|
[99ef1fc] | 767 | <primary sortas="b-smbspool">smbspool</primary>
|
---|
| 768 | </indexterm>
|
---|
| 769 | </listitem>
|
---|
| 770 | </varlistentry>
|
---|
| 771 |
|
---|
| 772 | <varlistentry id="smbstatus">
|
---|
| 773 | <term><command>smbstatus</command></term>
|
---|
| 774 | <listitem>
|
---|
| 775 | <para>reports current <application>Samba</application>
|
---|
| 776 | connections.</para>
|
---|
[45f56ac] | 777 | <indexterm zone="samba smbstatus">
|
---|
[99ef1fc] | 778 | <primary sortas="b-smbstatus">smbstatus</primary>
|
---|
| 779 | </indexterm>
|
---|
| 780 | </listitem>
|
---|
| 781 | </varlistentry>
|
---|
| 782 |
|
---|
| 783 | <varlistentry id="smbtar">
|
---|
| 784 | <term><command>smbtar</command></term>
|
---|
| 785 | <listitem>
|
---|
| 786 | <para>is a shell script used for backing up SMB/CIFS shares
|
---|
| 787 | directly to Linux tape drives or a file.</para>
|
---|
[45f56ac] | 788 | <indexterm zone="samba smbtar">
|
---|
[99ef1fc] | 789 | <primary sortas="b-smbtar">smbtar</primary>
|
---|
| 790 | </indexterm>
|
---|
| 791 | </listitem>
|
---|
| 792 | </varlistentry>
|
---|
| 793 |
|
---|
| 794 | <varlistentry id="smbtree">
|
---|
| 795 | <term><command>smbtree</command></term>
|
---|
| 796 | <listitem>
|
---|
| 797 | <para>is a text-based SMB network browser.</para>
|
---|
[45f56ac] | 798 | <indexterm zone="samba smbtree">
|
---|
[99ef1fc] | 799 | <primary sortas="b-smbtree">smbtree</primary>
|
---|
| 800 | </indexterm>
|
---|
| 801 | </listitem>
|
---|
| 802 | </varlistentry>
|
---|
| 803 |
|
---|
| 804 | <varlistentry id="tdbbackup">
|
---|
| 805 | <term><command>tdbbackup</command></term>
|
---|
| 806 | <listitem>
|
---|
| 807 | <para>is a tool for backing up or validating the integrity of
|
---|
| 808 | <application>Samba</application> <filename>.tdb</filename>
|
---|
| 809 | files.</para>
|
---|
[45f56ac] | 810 | <indexterm zone="samba tdbbackup">
|
---|
[99ef1fc] | 811 | <primary sortas="b-tdbbackup">tdbbackup</primary>
|
---|
| 812 | </indexterm>
|
---|
| 813 | </listitem>
|
---|
| 814 | </varlistentry>
|
---|
| 815 |
|
---|
| 816 | <varlistentry id="tdbdump">
|
---|
| 817 | <term><command>tdbdump</command></term>
|
---|
| 818 | <listitem>
|
---|
| 819 | <para> is a tool used to print the contents of a
|
---|
| 820 | <application>Samba</application> <filename>.tdb</filename>
|
---|
| 821 | file.</para>
|
---|
[45f56ac] | 822 | <indexterm zone="samba tdbdump">
|
---|
[99ef1fc] | 823 | <primary sortas="b-tdbdump">tdbdump</primary>
|
---|
| 824 | </indexterm>
|
---|
| 825 | </listitem>
|
---|
| 826 | </varlistentry>
|
---|
| 827 |
|
---|
| 828 | <varlistentry id="tdbtool">
|
---|
| 829 | <term><command>tdbtool</command></term>
|
---|
| 830 | <listitem>
|
---|
| 831 | <para>is a tool which allows simple database manipulation from the
|
---|
| 832 | command line.</para>
|
---|
[45f56ac] | 833 | <indexterm zone="samba tdbtool">
|
---|
[99ef1fc] | 834 | <primary sortas="b-tdbtool">tdbtool</primary>
|
---|
| 835 | </indexterm>
|
---|
| 836 | </listitem>
|
---|
| 837 | </varlistentry>
|
---|
| 838 |
|
---|
| 839 | <varlistentry id="testparm">
|
---|
| 840 | <term><command>testparm</command></term>
|
---|
| 841 | <listitem>
|
---|
| 842 | <para>checks an <filename>smb.conf</filename> file for proper
|
---|
| 843 | syntax.</para>
|
---|
[45f56ac] | 844 | <indexterm zone="samba testparm">
|
---|
[99ef1fc] | 845 | <primary sortas="b-testparm">testparm</primary>
|
---|
| 846 | </indexterm>
|
---|
| 847 | </listitem>
|
---|
| 848 | </varlistentry>
|
---|
| 849 |
|
---|
| 850 | <varlistentry id="wbinfo">
|
---|
| 851 | <term><command>wbinfo</command></term>
|
---|
| 852 | <listitem>
|
---|
| 853 | <para>queries a running <command>winbindd</command> daemon.</para>
|
---|
[45f56ac] | 854 | <indexterm zone="samba wbinfo">
|
---|
[99ef1fc] | 855 | <primary sortas="b-wbinfo">wbinfo</primary>
|
---|
| 856 | </indexterm>
|
---|
| 857 | </listitem>
|
---|
| 858 | </varlistentry>
|
---|
| 859 |
|
---|
| 860 | <varlistentry id="winbindd">
|
---|
| 861 | <term><command>winbindd</command></term>
|
---|
| 862 | <listitem>
|
---|
| 863 | <para>resolves names from Windows NT servers.</para>
|
---|
[45f56ac] | 864 | <indexterm zone="samba winbindd">
|
---|
[99ef1fc] | 865 | <primary sortas="b-winbindd">winbindd</primary>
|
---|
| 866 | </indexterm>
|
---|
| 867 | </listitem>
|
---|
| 868 | </varlistentry>
|
---|
| 869 |
|
---|
[f4c0a45] | 870 | <varlistentry id="libnss_winbind">
|
---|
| 871 | <term><filename class='libraryfile'>libnss_winbind.so</filename></term>
|
---|
| 872 | <listitem>
|
---|
| 873 | <para>provides Name Service Switch API functions for resolving names
|
---|
| 874 | from NT servers.</para>
|
---|
[45f56ac] | 875 | <indexterm zone="samba libnss_winbind">
|
---|
[f4c0a45] | 876 | <primary sortas="c-libnss_winbind">libnss_winbind.so</primary>
|
---|
| 877 | </indexterm>
|
---|
| 878 | </listitem>
|
---|
| 879 | </varlistentry>
|
---|
| 880 |
|
---|
| 881 | <varlistentry id="libnss_wins">
|
---|
| 882 | <term><filename class='libraryfile'>libnss_wins.so</filename></term>
|
---|
| 883 | <listitem>
|
---|
| 884 | <para>provides API functions for Samba's implementation of the
|
---|
| 885 | Windows Internet Naming Service.</para>
|
---|
[45f56ac] | 886 | <indexterm zone="samba libnss_wins">
|
---|
[f4c0a45] | 887 | <primary sortas="c-libnss_wins">libnss_wins.so</primary>
|
---|
| 888 | </indexterm>
|
---|
| 889 | </listitem>
|
---|
| 890 | </varlistentry>
|
---|
| 891 |
|
---|
| 892 | <varlistentry id="libnetapi">
|
---|
| 893 | <term><filename class='libraryfile'>libnetapi.so</filename></term>
|
---|
| 894 | <listitem>
|
---|
| 895 | <para>provides the API functions for the administration tools used
|
---|
| 896 | for Samba and remote CIFS servers.</para>
|
---|
[45f56ac] | 897 | <indexterm zone="samba libnetapi">
|
---|
[f4c0a45] | 898 | <primary sortas="c-libnetapi">libnetapi.so</primary>
|
---|
| 899 | </indexterm>
|
---|
| 900 | </listitem>
|
---|
| 901 | </varlistentry>
|
---|
| 902 |
|
---|
| 903 | <varlistentry id="libsmbclient">
|
---|
| 904 | <term><filename class='libraryfile'>libsmbclient.so</filename></term>
|
---|
| 905 | <listitem>
|
---|
| 906 | <para>provides the API functions for the Samba SMB client tools.</para>
|
---|
[45f56ac] | 907 | <indexterm zone="samba libsmbclient">
|
---|
[f4c0a45] | 908 | <primary sortas="c-libsmbclient">libsmbclient.so</primary>
|
---|
| 909 | </indexterm>
|
---|
| 910 | </listitem>
|
---|
| 911 | </varlistentry>
|
---|
[defca61] | 912 | <!--
|
---|
[f4c0a45] | 913 | <varlistentry id="libsmbsharemodes">
|
---|
| 914 | <term><filename class='libraryfile'>libsmbsharemodes.so</filename></term>
|
---|
| 915 | <listitem>
|
---|
| 916 | <para>provides API functions for accessing SMB share modes
|
---|
| 917 | (locks etc.)</para>
|
---|
[45f56ac] | 918 | <indexterm zone="samba libsmbsharemodes">
|
---|
[f4c0a45] | 919 | <primary sortas="c-libsmbsharemodes">libsmbsharemodes.so</primary>
|
---|
| 920 | </indexterm>
|
---|
| 921 | </listitem>
|
---|
[defca61] | 922 | </varlistentry>-->
|
---|
[f4c0a45] | 923 |
|
---|
| 924 | <varlistentry id="libwbclient">
|
---|
| 925 | <term><filename class='libraryfile'>libwbclient.so</filename></term>
|
---|
| 926 | <listitem>
|
---|
| 927 | <para>provides API functions for Windows domain client services.</para>
|
---|
[45f56ac] | 928 | <indexterm zone="samba libwbclient">
|
---|
[f4c0a45] | 929 | <primary sortas="c-libwbclient">libwbclient.so</primary>
|
---|
| 930 | </indexterm>
|
---|
| 931 | </listitem>
|
---|
| 932 | </varlistentry>
|
---|
| 933 |
|
---|
[99ef1fc] | 934 | </variablelist>
|
---|
| 935 |
|
---|
| 936 | </sect2>
|
---|
| 937 |
|
---|
| 938 | </sect1>
|
---|