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