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