[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 |
|
---|
[ac38e9dc] | 7 | <!ENTITY samba-download-http "https://download.samba.org/pub/samba/stable/samba-&samba-version;.tar.gz">
|
---|
| 8 | <!ENTITY samba-download-ftp " ">
|
---|
[f080ae0e] | 9 | <!ENTITY samba-md5sum "83b1af8a9899ab4de99f155fc42c83dd">
|
---|
[b91aa96] | 10 | <!ENTITY samba-size "20 MB">
|
---|
[f080ae0e] | 11 | <!ENTITY samba-buildsize "464 MB (add 15 MB for the quicktest, reputedly up to 500 MB additional for all tests)">
|
---|
[b91aa96] | 12 | <!ENTITY samba-time "2.2 SBU, using parallelism=4 (additional 23.5 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 |
|
---|
[d8aa38f0] | 39 | &lfs79_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>
|
---|
[ac38e9dc] | 62 |
|
---|
[99ef1fc] | 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 |
|
---|
[e9e0e8a1] | 70 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 71 | <para role="recommended">
|
---|
[ac38e9dc] | 72 | <xref linkend="libxslt"/> (for documentation) and
|
---|
| 73 | <xref linkend="openldap"/>
|
---|
[e9e0e8a1] | 74 | </para>
|
---|
| 75 |
|
---|
[99ef1fc] | 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[7cae14c] | 77 | <para role="optional">
|
---|
[df282778] | 78 | <xref linkend="avahi"/>,
|
---|
[7cae14c] | 79 | <xref linkend="cups"/>,
|
---|
[ac38e9dc] | 80 | <xref linkend="gnutls"/>,
|
---|
| 81 | <xref linkend="libarchive"/>,
|
---|
[b91aa96] | 82 | <xref linkend="libcap-pam"/>,
|
---|
[ac38e9dc] | 83 | <xref linkend="libgpg-error"/>,
|
---|
[df282778] | 84 | <xref linkend="linux-pam"/>,
|
---|
[37191af] | 85 | <xref linkend="mitkrb"/>,
|
---|
[df282778] | 86 | <xref linkend="popt"/>,
|
---|
[b91aa96] | 87 | <xref linkend="python3"/>,
|
---|
| 88 | <xref linkend="talloc"/>,
|
---|
[df282778] | 89 | <xref linkend="valgrind"/> (optionally used by the test suite),
|
---|
[7cae14c] | 90 | <xref linkend="xfsprogs"/>,
|
---|
[ac38e9dc] | 91 | <ulink url="https://ctdb.samba.org/">ctdb</ulink>,
|
---|
[df282778] | 92 | <ulink url="https://people.gnome.org/~veillard/gamin/">Gamin</ulink>,
|
---|
[ac38e9dc] | 93 | <ulink url="http://www.h5l.org/">Heimdal</ulink>,
|
---|
| 94 | <ulink url="http://ftp.de.debian.org/debian/pool/main/liba/libaio/">libaio</ulink>,
|
---|
[7cae14c] | 95 | <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>,
|
---|
[ac38e9dc] | 96 | <ulink url="https://www.samba.org/ftp/ldb/">ldb</ulink>,
|
---|
| 97 | <ulink url="http://www.openafs.org/">OpenAFS</ulink>,
|
---|
| 98 | <ulink url="https://tevent.samba.org/">tevent</ulink>, and
|
---|
| 99 | <ulink url="https://tdb.samba.org/">tdb</ulink>
|
---|
[f1607a4] | 100 | </para>
|
---|
[6dcdcde] | 101 |
|
---|
[3cb0c57] | 102 | <para condition="html" role="usernotes">User Notes:
|
---|
[216b521] | 103 | <ulink url="&blfs-wiki;/samba4"/></para>
|
---|
[3cb0c57] | 104 |
|
---|
[99ef1fc] | 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="installation">
|
---|
| 108 | <title>Installation of Samba</title>
|
---|
| 109 |
|
---|
[ac38e9dc] | 110 | <note>
|
---|
| 111 | <para>If you wish to run the test suite after the binaries are built, you
|
---|
| 112 | must add the <option>--enable-selftest</option> parameter to the
|
---|
| 113 | <command>configure</command> script below. You may want to run
|
---|
| 114 | <command>configure</command> with the <option>--help</option> parameter
|
---|
| 115 | first. There may be other parameters needed to take advantage of optional
|
---|
| 116 | dependencies.</para>
|
---|
| 117 | </note>
|
---|
[7a5b5aa3] | 118 |
|
---|
[65dea1b6] | 119 | <para>Install <application>Samba</application> by running the following
|
---|
| 120 | commands:</para>
|
---|
| 121 |
|
---|
[abf03a85] | 122 | <screen><userinput>./configure \
|
---|
[67e58a5] | 123 | --prefix=/usr \
|
---|
| 124 | --sysconfdir=/etc \
|
---|
| 125 | --localstatedir=/var \
|
---|
| 126 | --with-piddir=/run/samba \
|
---|
| 127 | --with-pammodulesdir=/lib/security \
|
---|
[ac38e9dc] | 128 | --enable-fhs &&
|
---|
[38b41c2] | 129 |
|
---|
[7cae14c] | 130 | make</userinput></screen>
|
---|
[4e9f28df] | 131 |
|
---|
[f080ae0e] | 132 | <!--
|
---|
[ac38e9dc] | 133 | <para>According to <application>Samba</application> developers, the
|
---|
[99ece5d] | 134 | limitation to 108 characters of the path length of a unix named pipe socket
|
---|
| 135 | may be the cause of errors, so that over 1/3 of the tests might fail. For
|
---|
[f080ae0e] | 136 | this reason, the switch <option>- -with-selftest-prefix=/tmp/quick</option>
|
---|
[99ece5d] | 137 | (or another path with small number of characters) can be used with
|
---|
[b91aa96] | 138 | configure. Even so, the
|
---|
[99ece5d] | 139 | <quote><replaceable>samba3.raw.eas</replaceable></quote> test may fail,
|
---|
| 140 | apparently for the same reason. If one quicktest fails, it can be disabled.
|
---|
| 141 | For example, <quote><replaceable>samba3.raw.eas</replaceable></quote> may
|
---|
| 142 | be disabled with the following command:</para>
|
---|
| 143 |
|
---|
| 144 | <screen><userinput>sed -i "/samba3.blackbox.failure.failure/i \^samba3.raw.eas" selftest/knownfail</userinput></screen>
|
---|
[f080ae0e] | 145 | -->
|
---|
[99ece5d] | 146 |
|
---|
[b91aa96] | 147 | <para>To test the results, as the
|
---|
| 148 | <systemitem class="username">root</systemitem> user, issue:
|
---|
| 149 | <command>make quicktest 2>&1 | tee quicktest.log</command>. Summary of
|
---|
| 150 | the test results and some other information may be obtained with
|
---|
| 151 | <command>grep -A5 testsuites quicktest.log</command>. There are other
|
---|
| 152 | targets (test, subunit-test) available, but take a very long time
|
---|
| 153 | (over 100 SBU).</para>
|
---|
[0f53ca47] | 154 |
|
---|
[99ef1fc] | 155 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[38b41c2] | 156 |
|
---|
[214b9ac] | 157 | <screen role="root"><userinput>make install &&
|
---|
| 158 |
|
---|
[b91aa96] | 159 | mv -v /usr/lib/libnss_win{s,bind}.so* /lib &&
|
---|
| 160 | ln -v -sf ../../lib/libnss_winbind.so.2 /usr/lib/libnss_winbind.so &&
|
---|
| 161 | ln -v -sf ../../lib/libnss_wins.so.2 /usr/lib/libnss_wins.so &&
|
---|
| 162 |
|
---|
| 163 | install -v -m644 examples/smb.conf.default /etc/samba &&
|
---|
| 164 |
|
---|
| 165 | mkdir -pv /etc/openldap/schema &&
|
---|
[214b9ac] | 166 |
|
---|
[b91aa96] | 167 | install -v -m644 examples/LDAP/README \
|
---|
| 168 | /etc/openldap/schema/README.LDAP &&
|
---|
[214b9ac] | 169 |
|
---|
[b91aa96] | 170 | install -v -m644 examples/LDAP/samba* \
|
---|
| 171 | /etc/openldap/schema &&
|
---|
[7cae14c] | 172 |
|
---|
[b91aa96] | 173 | install -v -m755 examples/LDAP/{get*,ol*} \
|
---|
| 174 | /etc/openldap/schema</userinput></screen>
|
---|
[7cae14c] | 175 |
|
---|
[99ef1fc] | 176 | </sect2>
|
---|
| 177 |
|
---|
| 178 | <sect2 role="commands">
|
---|
| 179 | <title>Command Explanations</title>
|
---|
| 180 |
|
---|
[d18b639] | 181 | <para><parameter>--enable-fhs</parameter>: Assigns all other file paths in
|
---|
[99ef1fc] | 182 | a manner compliant with the Filesystem Hierarchy Standard (FHS).</para>
|
---|
[ac38e9dc] | 183 | <!--
|
---|
| 184 | <para><option>-/-enable-socket-wrapper</option> and
|
---|
| 185 | <option>-/-enable-selftest</option>: These options are required to run
|
---|
| 186 | the test suite.</para>-->
|
---|
[99ef1fc] | 187 |
|
---|
[ac38e9dc] | 188 | <para><option>--with-selftest-prefix=SELFTEST_PREFIX</option>: This option
|
---|
| 189 | specify the test suite work directory (default=./st).</para>
|
---|
[99ece5d] | 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 |
|
---|
[b91aa96] | 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>:
|
---|
[7cae14c] | 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 |
|
---|
[b91aa96] | 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">
|
---|
[0da88ea3] | 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
|
---|
[ac38e9dc] | 410 | the <filename>/etc/passwd</filename> file.<!-- To use the default user,
|
---|
[75f9474f] | 411 | issue the following commands as the
|
---|
[ac38e9dc] | 412 | <systemitem class='username'>root</systemitem> user:--></para>
|
---|
[fc290c7] | 413 |
|
---|
[ac38e9dc] | 414 | <!--
|
---|
[56be1485] | 415 | <screen role="root"><userinput>groupadd -g 99 nogroup &&
|
---|
[75f9474f] | 416 | useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
|
---|
| 417 | -s /bin/false -u 99 nobody</userinput></screen>
|
---|
[ac38e9dc] | 418 | -->
|
---|
[0da88ea3] | 419 | <para>
|
---|
| 420 | To start the <application>Samba</application> daemons at boot,
|
---|
| 421 | install the systemd units from the <xref linkend="bootscripts"/>
|
---|
| 422 | package by running the following command as the
|
---|
| 423 | <systemitem class="username">root</systemitem> user:
|
---|
| 424 | </para>
|
---|
| 425 |
|
---|
| 426 | <indexterm zone="samba samba-init">
|
---|
| 427 | <primary sortas="f-samba">samba</primary>
|
---|
| 428 | </indexterm>
|
---|
[99ef1fc] | 429 |
|
---|
[75f9474f] | 430 | <screen role="root"><userinput>make install-samba</userinput></screen>
|
---|
[99ef1fc] | 431 |
|
---|
[0da88ea3] | 432 | <para>
|
---|
| 433 | To start the <command>winbindd</command> daemon at boot,
|
---|
| 434 | install the systemd unit from the <xref linkend="bootscripts"/>
|
---|
| 435 | package by running the following command as the
|
---|
| 436 | <systemitem class="username">root</systemitem> user:
|
---|
| 437 | </para>
|
---|
| 438 |
|
---|
| 439 | <indexterm zone="samba samba-init">
|
---|
| 440 | <primary sortas="f-winbindd">winbindd</primary>
|
---|
| 441 | </indexterm>
|
---|
[99ef1fc] | 442 |
|
---|
[97926ab] | 443 | <screen role="root"><userinput>make install-winbindd</userinput></screen>
|
---|
[99ef1fc] | 444 |
|
---|
[0da88ea3] | 445 | <note>
|
---|
| 446 | <para>
|
---|
| 447 | This package comes with two types of units: A service file and a socket file.
|
---|
| 448 | The service file will start smbd daemon once at boot and it will keep running until the
|
---|
| 449 | system shuts down. The socket file will make systemd listen on smbd port (Default 445, needs
|
---|
| 450 | to be edited for anything else) and will start smbd daemon when something tries to connect
|
---|
| 451 | to that port and stop the daemon when the connection is terminated. This is
|
---|
| 452 | called socket activation.
|
---|
| 453 |
|
---|
| 454 | By default, the first method is used - smbd daemon is started at boot and stopped at shutdown.
|
---|
| 455 | If the socket method is desired, you need to run as the
|
---|
| 456 | <systemitem class="username">root</systemitem> user:
|
---|
| 457 |
|
---|
| 458 | <screen role="root"><userinput>systemctl stop smbd &&
|
---|
| 459 | systemctl disable smbd &&
|
---|
| 460 | systemctl enable smbd.socket &&
|
---|
| 461 | systemctl start smbd.socket</userinput></screen>
|
---|
| 462 |
|
---|
| 463 | Note that only smbd daemon can be socket activated.
|
---|
| 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 |
|
---|
[ac38e9dc] | 483 | <seg>
|
---|
[b91aa96] | 484 | cifsdd, dbwrap_tool, eventlogadm, gentest, ldbadd, ldbdel,
|
---|
| 485 | ldbedit, ldbmodify, ldbrename, ldbsearch, locktest, masktest,
|
---|
| 486 | ndrdump, net, nmbd, nmblookup, ntlm_auth, oLschema2ldif,
|
---|
| 487 | pdbedit, pidl, profiles, regdiff, regpatch, regshell, regtree,
|
---|
| 488 | rpcclient, samba, samba_dnsupdate, samba_kcc, samba-regedit,
|
---|
| 489 | samba_spnupdate, samba-tool, samba_upgradedns, sharesec,
|
---|
| 490 | smbcacls, smbclient, smbcontrol, smbcquotas, smbd, smbget,
|
---|
| 491 | smbpasswd, smbspool, smbstatus, smbtar, smbta-util,
|
---|
| 492 | smbtorture, smbtree, tdbbackup, tdbdump, tdbrestore, tdbtool,
|
---|
| 493 | testparm, wbinfo, and winbindd
|
---|
[ac38e9dc] | 494 | </seg>
|
---|
| 495 |
|
---|
| 496 | <seg>
|
---|
| 497 | libdcerpc-atsvc.so, libdcerpc-binding.so, libdcerpc-samr.so,
|
---|
| 498 | libdcerpc-server.so, libdcerpc.so, libgensec.so, libndr-krb5pac.so,
|
---|
| 499 | libndr-nbt.so, libndr.so, libndr-standard.so, libnetapi.so,
|
---|
| 500 | libnss_winbind.so, libnss_wins.so, libregistry.so,
|
---|
| 501 | libsamba-credentials.so, libsamba-hostconfig.so, libsamba-passdb.so,
|
---|
| 502 | libsamba-policy.so, libsamba-util.so, libsamdb.so,
|
---|
| 503 | libsmbclient-raw.so, libsmbclient.so, libsmbconf.so, libsmbldap.so,
|
---|
[b91aa96] | 504 | libtevent-util.so, libtorture.so, libwbclient.so, <!--mit_samba.so,
|
---|
| 505 | --> and winbind_krb5_locator.so; the pam_winbind.so and pam_smbpass.so
|
---|
| 506 | PAM libraries; and assorted character set, filesystem and support
|
---|
| 507 | modules under /usr/lib/{python&python2-majorver;,samba}
|
---|
[ac38e9dc] | 508 | </seg>
|
---|
[b91aa96] | 509 |
|
---|
[ac38e9dc] | 510 | <seg>
|
---|
| 511 | /etc/samba, /run/samba, /usr/include/samba-4.0,
|
---|
| 512 | /usr/lib/perl5/vendor_perl/5.x.y/Parse/Pidl/{Samba{3,4},Wireshark},
|
---|
| 513 | /usr/lib/python&python2-majorver;/site-packages/samba,
|
---|
[b91aa96] | 514 | /usr/{lib,share}/samba, and /var/{cache,lib,lock,log,run}/samba
|
---|
[ac38e9dc] | 515 | </seg>
|
---|
[7cae14c] | 516 |
|
---|
[99ef1fc] | 517 | </seglistitem>
|
---|
| 518 | </segmentedlist>
|
---|
| 519 |
|
---|
| 520 | <variablelist>
|
---|
| 521 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 522 | <?dbfo list-presentation="list"?>
|
---|
| 523 | <?dbhtml list-presentation="table"?>
|
---|
| 524 |
|
---|
[cb0bbd2] | 525 | <varlistentry id="cifsdd">
|
---|
| 526 | <term><command>cifsdd</command></term>
|
---|
| 527 | <listitem>
|
---|
| 528 | <para>is the dd command for SMB.</para>
|
---|
| 529 | <indexterm zone="samba cifsdd">
|
---|
| 530 | <primary sortas="b-cifsdd">cifsdd</primary>
|
---|
| 531 | </indexterm>
|
---|
| 532 | </listitem>
|
---|
| 533 | </varlistentry>
|
---|
| 534 |
|
---|
| 535 | <varlistentry id="dbwrap_tool">
|
---|
| 536 | <term><command>dbwrap_tool</command></term>
|
---|
| 537 | <listitem>
|
---|
| 538 | <para>is used to read and manipulate TDB/CTDB databases using
|
---|
| 539 | the dbwrap interface.</para>
|
---|
| 540 | <indexterm zone="samba dbwrap_tool">
|
---|
| 541 | <primary sortas="b-dbwrap_tool">dbwrap_tool</primary>
|
---|
| 542 | </indexterm>
|
---|
| 543 | </listitem>
|
---|
| 544 | </varlistentry>
|
---|
| 545 |
|
---|
[a8ecf657] | 546 | <varlistentry id="eventlogadm">
|
---|
| 547 | <term><command>eventlogadm</command></term>
|
---|
| 548 | <listitem>
|
---|
| 549 | <para>is used to write records to eventlogs from STDIN, add the
|
---|
| 550 | specified source and DLL eventlog registry entries and display the
|
---|
| 551 | active eventlog names (from <filename>smb.conf</filename>).</para>
|
---|
[45f56ac] | 552 | <indexterm zone="samba eventlogadm">
|
---|
[a8ecf657] | 553 | <primary sortas="b-eventlogadm">eventlogadm</primary>
|
---|
| 554 | </indexterm>
|
---|
| 555 | </listitem>
|
---|
| 556 | </varlistentry>
|
---|
| 557 |
|
---|
[cb0bbd2] | 558 | <varlistentry id="gentest">
|
---|
| 559 | <term><command>gentest</command></term>
|
---|
| 560 | <listitem>
|
---|
| 561 | <para>is used to run random generic SMB operations against two
|
---|
| 562 | SMB servers and show the differences in behavior.</para>
|
---|
| 563 | <indexterm zone="samba gentest">
|
---|
| 564 | <primary sortas="b-gentest">gentest</primary>
|
---|
| 565 | </indexterm>
|
---|
| 566 | </listitem>
|
---|
| 567 | </varlistentry>
|
---|
| 568 |
|
---|
[f4c0a45] | 569 | <varlistentry id="ldbadd">
|
---|
| 570 | <term><command>ldbadd</command></term>
|
---|
| 571 | <listitem>
|
---|
| 572 | <para>is a command-line utility for adding records to an LDB
|
---|
| 573 | database.</para>
|
---|
[45f56ac] | 574 | <indexterm zone="samba ldbadd">
|
---|
[f4c0a45] | 575 | <primary sortas="b-ldbadd">ldbadd</primary>
|
---|
| 576 | </indexterm>
|
---|
| 577 | </listitem>
|
---|
| 578 | </varlistentry>
|
---|
| 579 |
|
---|
| 580 | <varlistentry id="ldbdel">
|
---|
| 581 | <term><command>ldbdel</command></term>
|
---|
| 582 | <listitem>
|
---|
| 583 | <para>is a command-line program for deleting LDB database
|
---|
| 584 | records.</para>
|
---|
[45f56ac] | 585 | <indexterm zone="samba ldbdel">
|
---|
[f4c0a45] | 586 | <primary sortas="b-ldbdel">ldbdel</primary>
|
---|
| 587 | </indexterm>
|
---|
| 588 | </listitem>
|
---|
| 589 | </varlistentry>
|
---|
| 590 |
|
---|
| 591 | <varlistentry id="ldbedit">
|
---|
| 592 | <term><command>ldbedit</command></term>
|
---|
| 593 | <listitem>
|
---|
| 594 | <para>allows you to edit LDB databases using your preferred
|
---|
| 595 | editor.</para>
|
---|
[45f56ac] | 596 | <indexterm zone="samba ldbedit">
|
---|
[f4c0a45] | 597 | <primary sortas="b-ldbedit">ldbedit</primary>
|
---|
| 598 | </indexterm>
|
---|
| 599 | </listitem>
|
---|
| 600 | </varlistentry>
|
---|
| 601 |
|
---|
| 602 | <varlistentry id="ldbmodify">
|
---|
| 603 | <term><command>ldbmodify</command></term>
|
---|
| 604 | <listitem>
|
---|
| 605 | <para>allows you to modify records in an LDB database.</para>
|
---|
[45f56ac] | 606 | <indexterm zone="samba ldbmodify">
|
---|
[f4c0a45] | 607 | <primary sortas="b-ldbmodify">ldbmodify</primary>
|
---|
| 608 | </indexterm>
|
---|
| 609 | </listitem>
|
---|
| 610 | </varlistentry>
|
---|
| 611 |
|
---|
| 612 | <varlistentry id="ldbrename">
|
---|
| 613 | <term><command>ldbrename</command></term>
|
---|
| 614 | <listitem>
|
---|
| 615 | <para>allows you to edit LDB databases using your preferred
|
---|
| 616 | editor.</para>
|
---|
[45f56ac] | 617 | <indexterm zone="samba ldbrename">
|
---|
[f4c0a45] | 618 | <primary sortas="b-ldbrename">ldbrename</primary>
|
---|
| 619 | </indexterm>
|
---|
| 620 | </listitem>
|
---|
| 621 | </varlistentry>
|
---|
| 622 |
|
---|
| 623 | <varlistentry id="ldbsearch">
|
---|
| 624 | <term><command>ldbsearch</command></term>
|
---|
| 625 | <listitem>
|
---|
| 626 | <para>searches an LDB database for records matching a specified
|
---|
| 627 | expression.</para>
|
---|
[45f56ac] | 628 | <indexterm zone="samba ldbsearch">
|
---|
[f4c0a45] | 629 | <primary sortas="b-ldbsearch">ldbsearch</primary>
|
---|
| 630 | </indexterm>
|
---|
| 631 | </listitem>
|
---|
| 632 | </varlistentry>
|
---|
| 633 |
|
---|
[cb0bbd2] | 634 | <varlistentry id="locktest">
|
---|
| 635 | <term><command>locktest</command></term>
|
---|
| 636 | <listitem>
|
---|
| 637 | <para>is used to find differences in locking between two SMB
|
---|
| 638 | servers.</para>
|
---|
| 639 | <indexterm zone="samba locktest">
|
---|
| 640 | <primary sortas="b-locktest">locktest</primary>
|
---|
| 641 | </indexterm>
|
---|
| 642 | </listitem>
|
---|
| 643 | </varlistentry>
|
---|
| 644 |
|
---|
| 645 | <varlistentry id="masktest">
|
---|
| 646 | <term><command>masktest</command></term>
|
---|
| 647 | <listitem>
|
---|
| 648 | <para>is used to find differences in wildcard matching between
|
---|
| 649 | Samba's implementation and that of a remote server.</para>
|
---|
| 650 | <indexterm zone="samba masktest">
|
---|
| 651 | <primary sortas="b-masktest">masktest</primary>
|
---|
| 652 | </indexterm>
|
---|
| 653 | </listitem>
|
---|
| 654 | </varlistentry>
|
---|
| 655 |
|
---|
| 656 | <varlistentry id="ndrdump">
|
---|
| 657 | <term><command>ndrdump</command></term>
|
---|
| 658 | <listitem>
|
---|
| 659 | <para>is a DCE/RPC Packet Parser and Dumper.</para>
|
---|
| 660 | <indexterm zone="samba ndrdump">
|
---|
| 661 | <primary sortas="b-ndrdump">ndrdump</primary>
|
---|
| 662 | </indexterm>
|
---|
| 663 | </listitem>
|
---|
| 664 | </varlistentry>
|
---|
| 665 |
|
---|
[99ef1fc] | 666 | <varlistentry id="net">
|
---|
| 667 | <term><command>net</command></term>
|
---|
| 668 | <listitem>
|
---|
| 669 | <para>is a tool for administration of
|
---|
| 670 | <application>Samba</application> and remote CIFS servers, similar
|
---|
| 671 | to the <command>net</command> utility for DOS/Windows.</para>
|
---|
[45f56ac] | 672 | <indexterm zone="samba net">
|
---|
[99ef1fc] | 673 | <primary sortas="b-net">net</primary>
|
---|
| 674 | </indexterm>
|
---|
| 675 | </listitem>
|
---|
| 676 | </varlistentry>
|
---|
| 677 |
|
---|
| 678 | <varlistentry id="nmbd">
|
---|
| 679 | <term><command>nmbd</command></term>
|
---|
| 680 | <listitem>
|
---|
| 681 | <para>is the <application>Samba</application>
|
---|
| 682 | NetBIOS name server.</para>
|
---|
[45f56ac] | 683 | <indexterm zone="samba nmbd">
|
---|
[99ef1fc] | 684 | <primary sortas="b-nmbd">nmbd</primary>
|
---|
| 685 | </indexterm>
|
---|
| 686 | </listitem>
|
---|
| 687 | </varlistentry>
|
---|
| 688 |
|
---|
| 689 | <varlistentry id="nmblookup">
|
---|
| 690 | <term><command>nmblookup</command></term>
|
---|
| 691 | <listitem>
|
---|
| 692 | <para>is used to query NetBIOS names and map
|
---|
| 693 | them to IP addresses.</para>
|
---|
[45f56ac] | 694 | <indexterm zone="samba nmblookup">
|
---|
[99ef1fc] | 695 | <primary sortas="b-nmblookup">nmblookup</primary>
|
---|
| 696 | </indexterm>
|
---|
| 697 | </listitem>
|
---|
| 698 | </varlistentry>
|
---|
| 699 |
|
---|
| 700 | <varlistentry id="ntlm_auth">
|
---|
| 701 | <term><command>ntlm_auth</command></term>
|
---|
| 702 | <listitem>
|
---|
| 703 | <para>is a tool to allow external access to Winbind's
|
---|
| 704 | NTLM authentication function.</para>
|
---|
[45f56ac] | 705 | <indexterm zone="samba ntlm_auth">
|
---|
[99ef1fc] | 706 | <primary sortas="b-ntlm_auth">ntlm_auth</primary>
|
---|
| 707 | </indexterm>
|
---|
| 708 | </listitem>
|
---|
| 709 | </varlistentry>
|
---|
| 710 |
|
---|
[cb0bbd2] | 711 | <varlistentry id="oLschema2ldif">
|
---|
| 712 | <term><command>oLschema2ldif</command></term>
|
---|
| 713 | <listitem>
|
---|
| 714 | <para>converts LDAP schema's to LDB-compatible LDIF.</para>
|
---|
| 715 | <indexterm zone="samba oLschema2ldif">
|
---|
| 716 | <primary sortas="b-oLschema2ldif">oLschema2ldif</primary>
|
---|
| 717 | </indexterm>
|
---|
| 718 | </listitem>
|
---|
| 719 | </varlistentry>
|
---|
| 720 |
|
---|
[99ef1fc] | 721 | <varlistentry id="pdbedit">
|
---|
| 722 | <term><command>pdbedit</command></term>
|
---|
| 723 | <listitem>
|
---|
| 724 | <para>is a tool used to manage the SAM database.</para>
|
---|
[45f56ac] | 725 | <indexterm zone="samba pdbedit">
|
---|
[99ef1fc] | 726 | <primary sortas="b-pdbedit">pdbedit</primary>
|
---|
| 727 | </indexterm>
|
---|
| 728 | </listitem>
|
---|
| 729 | </varlistentry>
|
---|
| 730 |
|
---|
[cb0bbd2] | 731 | <varlistentry id="pidl">
|
---|
| 732 | <term><command>pidl</command></term>
|
---|
| 733 | <listitem>
|
---|
| 734 | <para>is an IDL (Interface Definition Language) compiler
|
---|
| 735 | written in Perl.</para>
|
---|
| 736 | <indexterm zone="samba pidl">
|
---|
| 737 | <primary sortas="b-pidl">pidl</primary>
|
---|
| 738 | </indexterm>
|
---|
| 739 | </listitem>
|
---|
| 740 | </varlistentry>
|
---|
| 741 |
|
---|
[99ef1fc] | 742 | <varlistentry id="profiles">
|
---|
| 743 | <term><command>profiles</command></term>
|
---|
| 744 | <listitem>
|
---|
| 745 | <para>is a utility that reports and changes SIDs in Windows
|
---|
| 746 | registry files. It currently only supports Windows NT.</para>
|
---|
[45f56ac] | 747 | <indexterm zone="samba profiles">
|
---|
[99ef1fc] | 748 | <primary sortas="b-profiles">profiles</primary>
|
---|
| 749 | </indexterm>
|
---|
| 750 | </listitem>
|
---|
| 751 | </varlistentry>
|
---|
| 752 |
|
---|
[cb0bbd2] | 753 | <varlistentry id="regdiff">
|
---|
| 754 | <term><command>regdiff</command></term>
|
---|
| 755 | <listitem>
|
---|
| 756 | <para>is a Diff program for Windows registry files.</para>
|
---|
| 757 | <indexterm zone="samba regdiff">
|
---|
| 758 | <primary sortas="b-regdiff">regdiff</primary>
|
---|
| 759 | </indexterm>
|
---|
| 760 | </listitem>
|
---|
| 761 | </varlistentry>
|
---|
| 762 |
|
---|
| 763 | <varlistentry id="regpatch">
|
---|
| 764 | <term><command>regpatch</command></term>
|
---|
| 765 | <listitem>
|
---|
| 766 | <para>applies registry patches to registry files.</para>
|
---|
| 767 | <indexterm zone="samba regpatch">
|
---|
| 768 | <primary sortas="b-regpatch">regpatch</primary>
|
---|
| 769 | </indexterm>
|
---|
| 770 | </listitem>
|
---|
| 771 | </varlistentry>
|
---|
| 772 |
|
---|
| 773 | <varlistentry id="regshell">
|
---|
| 774 | <term><command>regshell</command></term>
|
---|
| 775 | <listitem>
|
---|
| 776 | <para>is a Windows registry file browser using readline.</para>
|
---|
| 777 | <indexterm zone="samba regshell">
|
---|
| 778 | <primary sortas="b-regshell">regshell</primary>
|
---|
| 779 | </indexterm>
|
---|
| 780 | </listitem>
|
---|
| 781 | </varlistentry>
|
---|
| 782 |
|
---|
| 783 | <varlistentry id="regtree">
|
---|
| 784 | <term><command>regtree</command></term>
|
---|
| 785 | <listitem>
|
---|
| 786 | <para>is a text-mode registry viewer.</para>
|
---|
| 787 | <indexterm zone="samba regtree">
|
---|
| 788 | <primary sortas="b-regtree">regtree</primary>
|
---|
| 789 | </indexterm>
|
---|
| 790 | </listitem>
|
---|
| 791 | </varlistentry>
|
---|
| 792 |
|
---|
[99ef1fc] | 793 | <varlistentry id="rpcclient">
|
---|
| 794 | <term><command>rpcclient</command></term>
|
---|
| 795 | <listitem>
|
---|
| 796 | <para>is used to execute MS-RPC client side functions.</para>
|
---|
[45f56ac] | 797 | <indexterm zone="samba rpcclient">
|
---|
[99ef1fc] | 798 | <primary sortas="b-rpcclient">rpcclient</primary>
|
---|
| 799 | </indexterm>
|
---|
| 800 | </listitem>
|
---|
| 801 | </varlistentry>
|
---|
| 802 |
|
---|
[cb0bbd2] | 803 | <varlistentry id="samba-prog">
|
---|
| 804 | <term><command>samba</command></term>
|
---|
| 805 | <listitem>
|
---|
| 806 | <para>is a server to provide AD and SMB/CIFS services
|
---|
| 807 | to clients.</para>
|
---|
| 808 | <indexterm zone="samba samba-prog">
|
---|
| 809 | <primary sortas="b-samba-prog">samba</primary>
|
---|
| 810 | </indexterm>
|
---|
| 811 | </listitem>
|
---|
| 812 | </varlistentry>
|
---|
| 813 |
|
---|
| 814 | <varlistentry id="samba_dnsupdate">
|
---|
| 815 | <term><command>samba_dnsupdate</command></term>
|
---|
| 816 | <listitem>
|
---|
| 817 | <para>is used to update our DNS names using TSIG-GSS.</para>
|
---|
| 818 | <indexterm zone="samba samba_dnsupdate">
|
---|
| 819 | <primary sortas="b-samba_dnsupdate">samba_dnsupdate</primary>
|
---|
| 820 | </indexterm>
|
---|
| 821 | </listitem>
|
---|
| 822 | </varlistentry>
|
---|
| 823 |
|
---|
| 824 | <varlistentry id="samba_kcc">
|
---|
| 825 | <term><command>samba_kcc</command></term>
|
---|
| 826 | <listitem>
|
---|
| 827 | <para>is a script used to compute your KCC (Knowledge
|
---|
| 828 | Consistency Checker) topology.</para>
|
---|
| 829 | <indexterm zone="samba samba_kcc">
|
---|
| 830 | <primary sortas="b-samba_kcc">samba_kcc</primary>
|
---|
| 831 | </indexterm>
|
---|
| 832 | </listitem>
|
---|
| 833 | </varlistentry>
|
---|
| 834 |
|
---|
| 835 | <varlistentry id="samba-regedit">
|
---|
| 836 | <term><command>samba-regedit</command></term>
|
---|
| 837 | <listitem>
|
---|
| 838 | <para>is a ncurses based tool to manage the Samba registry.</para>
|
---|
| 839 | <indexterm zone="samba samba-regedit">
|
---|
| 840 | <primary sortas="b-samba-regedit">samba-regedit</primary>
|
---|
| 841 | </indexterm>
|
---|
| 842 | </listitem>
|
---|
| 843 | </varlistentry>
|
---|
| 844 |
|
---|
| 845 | <varlistentry id="samba_spnupdate">
|
---|
| 846 | <term><command>samba_spnupdate</command></term>
|
---|
| 847 | <listitem>
|
---|
| 848 | <para>is a script to update the servicePrincipalName
|
---|
| 849 | names from spn_update_list.</para>
|
---|
| 850 | <indexterm zone="samba samba_spnupdate">
|
---|
| 851 | <primary sortas="b-samba_spnupdate">samba_spnupdate</primary>
|
---|
| 852 | </indexterm>
|
---|
| 853 | </listitem>
|
---|
| 854 | </varlistentry>
|
---|
| 855 |
|
---|
| 856 | <varlistentry id="samba-tool">
|
---|
| 857 | <term><command>samba-tool</command></term>
|
---|
| 858 | <listitem>
|
---|
| 859 | <para>is the main Samba administration tool.</para>
|
---|
| 860 | <indexterm zone="samba samba-tool">
|
---|
| 861 | <primary sortas="b-samba-tool">samba-tool</primary>
|
---|
| 862 | </indexterm>
|
---|
| 863 | </listitem>
|
---|
| 864 | </varlistentry>
|
---|
| 865 |
|
---|
| 866 | <varlistentry id="samba_upgradedns">
|
---|
| 867 | <term><command>samba_upgradedns</command></term>
|
---|
| 868 | <listitem>
|
---|
| 869 | <para>is a Unix SMB/CIFS implementation.</para>
|
---|
| 870 | <indexterm zone="samba samba_upgradedns">
|
---|
| 871 | <primary sortas="b-samba_upgradedns">samba_upgradedns</primary>
|
---|
| 872 | </indexterm>
|
---|
| 873 | </listitem>
|
---|
| 874 | </varlistentry>
|
---|
| 875 |
|
---|
[f4c0a45] | 876 | <varlistentry id="sharesec">
|
---|
| 877 | <term><command>sharesec</command></term>
|
---|
| 878 | <listitem>
|
---|
| 879 | <para>manipulates share ACL permissions on SMB file shares.</para>
|
---|
[45f56ac] | 880 | <indexterm zone="samba sharesec">
|
---|
[f4c0a45] | 881 | <primary sortas="b-sharesec">sharesec</primary>
|
---|
| 882 | </indexterm>
|
---|
| 883 | </listitem>
|
---|
| 884 | </varlistentry>
|
---|
| 885 |
|
---|
[99ef1fc] | 886 | <varlistentry id="smbcacls">
|
---|
| 887 | <term><command>smbcacls</command></term>
|
---|
| 888 | <listitem>
|
---|
| 889 | <para>is used to manipulate Windows NT access control lists.</para>
|
---|
[45f56ac] | 890 | <indexterm zone="samba smbcacls">
|
---|
[99ef1fc] | 891 | <primary sortas="b-smbcacls">smbcacls</primary>
|
---|
| 892 | </indexterm>
|
---|
| 893 | </listitem>
|
---|
| 894 | </varlistentry>
|
---|
| 895 |
|
---|
| 896 | <varlistentry id="smbclient">
|
---|
| 897 | <term><command>smbclient</command></term>
|
---|
| 898 | <listitem>
|
---|
| 899 | <para>is a SMB/CIFS access utility, similar to FTP.</para>
|
---|
[45f56ac] | 900 | <indexterm zone="samba smbclient">
|
---|
[99ef1fc] | 901 | <primary sortas="b-smbclient">smbclient</primary>
|
---|
| 902 | </indexterm>
|
---|
| 903 | </listitem>
|
---|
| 904 | </varlistentry>
|
---|
| 905 |
|
---|
| 906 | <varlistentry id="smbcontrol">
|
---|
| 907 | <term><command>smbcontrol</command></term>
|
---|
| 908 | <listitem>
|
---|
| 909 | <para>is used to control running <command>smbd</command>,
|
---|
| 910 | <command>nmbd</command> and <command>winbindd</command>
|
---|
| 911 | daemons.</para>
|
---|
[45f56ac] | 912 | <indexterm zone="samba smbcontrol">
|
---|
[99ef1fc] | 913 | <primary sortas="b-smbcontrol">smbcontrol</primary>
|
---|
| 914 | </indexterm>
|
---|
| 915 | </listitem>
|
---|
| 916 | </varlistentry>
|
---|
| 917 |
|
---|
| 918 | <varlistentry id="smbcquotas">
|
---|
| 919 | <term><command>smbcquotas</command></term>
|
---|
| 920 | <listitem>
|
---|
| 921 | <para>is used to manipulate Windows NT quotas on
|
---|
| 922 | SMB file shares.</para>
|
---|
[45f56ac] | 923 | <indexterm zone="samba smbcquotas">
|
---|
[99ef1fc] | 924 | <primary sortas="b-smbcquotas">smbcquotas</primary>
|
---|
| 925 | </indexterm>
|
---|
| 926 | </listitem>
|
---|
| 927 | </varlistentry>
|
---|
| 928 |
|
---|
| 929 | <varlistentry id="smbd">
|
---|
| 930 | <term><command>smbd</command></term>
|
---|
| 931 | <listitem>
|
---|
| 932 | <para>is the main <application>Samba</application> daemon which
|
---|
| 933 | provides SMB/CIFS services to clients.</para>
|
---|
[45f56ac] | 934 | <indexterm zone="samba smbd">
|
---|
[99ef1fc] | 935 | <primary sortas="b-smbd">smbd</primary>
|
---|
| 936 | </indexterm>
|
---|
| 937 | </listitem>
|
---|
| 938 | </varlistentry>
|
---|
| 939 |
|
---|
[a8ecf657] | 940 | <varlistentry id="smbget">
|
---|
| 941 | <term><command>smbget</command></term>
|
---|
| 942 | <listitem>
|
---|
| 943 | <para>is a simple utility with <command>wget</command>-like
|
---|
| 944 | semantics, that can download files from SMB servers. You can specify
|
---|
| 945 | the files you would like to download on the command-line.</para>
|
---|
[45f56ac] | 946 | <indexterm zone="samba smbget">
|
---|
[a8ecf657] | 947 | <primary sortas="b-smbget">smbget</primary>
|
---|
| 948 | </indexterm>
|
---|
| 949 | </listitem>
|
---|
| 950 | </varlistentry>
|
---|
| 951 |
|
---|
[99ef1fc] | 952 | <varlistentry id="smbpasswd">
|
---|
| 953 | <term><command>smbpasswd</command></term>
|
---|
| 954 | <listitem>
|
---|
| 955 | <para>changes a user's <application>Samba</application>
|
---|
| 956 | password.</para>
|
---|
[45f56ac] | 957 | <indexterm zone="samba smbpasswd">
|
---|
[99ef1fc] | 958 | <primary sortas="b-smbpasswd">smbpasswd</primary>
|
---|
| 959 | </indexterm>
|
---|
| 960 | </listitem>
|
---|
| 961 | </varlistentry>
|
---|
| 962 |
|
---|
| 963 | <varlistentry id="smbspool">
|
---|
| 964 | <term><command>smbspool</command></term>
|
---|
| 965 | <listitem>
|
---|
| 966 | <para>sends a print job to an SMB printer.</para>
|
---|
[45f56ac] | 967 | <indexterm zone="samba smbspool">
|
---|
[99ef1fc] | 968 | <primary sortas="b-smbspool">smbspool</primary>
|
---|
| 969 | </indexterm>
|
---|
| 970 | </listitem>
|
---|
| 971 | </varlistentry>
|
---|
| 972 |
|
---|
| 973 | <varlistentry id="smbstatus">
|
---|
| 974 | <term><command>smbstatus</command></term>
|
---|
| 975 | <listitem>
|
---|
| 976 | <para>reports current <application>Samba</application>
|
---|
| 977 | connections.</para>
|
---|
[45f56ac] | 978 | <indexterm zone="samba smbstatus">
|
---|
[99ef1fc] | 979 | <primary sortas="b-smbstatus">smbstatus</primary>
|
---|
| 980 | </indexterm>
|
---|
| 981 | </listitem>
|
---|
| 982 | </varlistentry>
|
---|
| 983 |
|
---|
| 984 | <varlistentry id="smbtar">
|
---|
| 985 | <term><command>smbtar</command></term>
|
---|
| 986 | <listitem>
|
---|
| 987 | <para>is a shell script used for backing up SMB/CIFS shares
|
---|
| 988 | directly to Linux tape drives or a file.</para>
|
---|
[45f56ac] | 989 | <indexterm zone="samba smbtar">
|
---|
[99ef1fc] | 990 | <primary sortas="b-smbtar">smbtar</primary>
|
---|
| 991 | </indexterm>
|
---|
| 992 | </listitem>
|
---|
| 993 | </varlistentry>
|
---|
| 994 |
|
---|
[cb0bbd2] | 995 | <varlistentry id="smbta-util">
|
---|
| 996 | <term><command>smbta-util</command></term>
|
---|
| 997 | <listitem>
|
---|
| 998 | <para>is a tool to ease the configuration of the
|
---|
| 999 | vfs_smb_traffic_analyzer module regarding data encryption.</para>
|
---|
| 1000 | <indexterm zone="samba smbta-util">
|
---|
| 1001 | <primary sortas="b-smbta-util">smbta-util</primary>
|
---|
| 1002 | </indexterm>
|
---|
| 1003 | </listitem>
|
---|
| 1004 | </varlistentry>
|
---|
| 1005 |
|
---|
| 1006 | <varlistentry id="smbtorture">
|
---|
| 1007 | <term><command>smbtorture</command></term>
|
---|
| 1008 | <listitem>
|
---|
| 1009 | <para>is a testsuite that runs several tests against a SMB
|
---|
| 1010 | server.</para>
|
---|
| 1011 | <indexterm zone="samba smbtorture">
|
---|
| 1012 | <primary sortas="b-smbtorture">smbtorture</primary>
|
---|
| 1013 | </indexterm>
|
---|
| 1014 | </listitem>
|
---|
| 1015 | </varlistentry>
|
---|
| 1016 |
|
---|
[99ef1fc] | 1017 | <varlistentry id="smbtree">
|
---|
| 1018 | <term><command>smbtree</command></term>
|
---|
| 1019 | <listitem>
|
---|
| 1020 | <para>is a text-based SMB network browser.</para>
|
---|
[45f56ac] | 1021 | <indexterm zone="samba smbtree">
|
---|
[99ef1fc] | 1022 | <primary sortas="b-smbtree">smbtree</primary>
|
---|
| 1023 | </indexterm>
|
---|
| 1024 | </listitem>
|
---|
| 1025 | </varlistentry>
|
---|
| 1026 |
|
---|
| 1027 | <varlistentry id="tdbbackup">
|
---|
| 1028 | <term><command>tdbbackup</command></term>
|
---|
| 1029 | <listitem>
|
---|
| 1030 | <para>is a tool for backing up or validating the integrity of
|
---|
| 1031 | <application>Samba</application> <filename>.tdb</filename>
|
---|
| 1032 | files.</para>
|
---|
[45f56ac] | 1033 | <indexterm zone="samba tdbbackup">
|
---|
[99ef1fc] | 1034 | <primary sortas="b-tdbbackup">tdbbackup</primary>
|
---|
| 1035 | </indexterm>
|
---|
| 1036 | </listitem>
|
---|
| 1037 | </varlistentry>
|
---|
| 1038 |
|
---|
| 1039 | <varlistentry id="tdbdump">
|
---|
| 1040 | <term><command>tdbdump</command></term>
|
---|
| 1041 | <listitem>
|
---|
| 1042 | <para> is a tool used to print the contents of a
|
---|
| 1043 | <application>Samba</application> <filename>.tdb</filename>
|
---|
| 1044 | file.</para>
|
---|
[45f56ac] | 1045 | <indexterm zone="samba tdbdump">
|
---|
[99ef1fc] | 1046 | <primary sortas="b-tdbdump">tdbdump</primary>
|
---|
| 1047 | </indexterm>
|
---|
[cb0bbd2] | 1048 | </listitem>
|
---|
| 1049 | </varlistentry>
|
---|
| 1050 |
|
---|
| 1051 | <varlistentry id="tdbrestore">
|
---|
| 1052 | <term><command>tdbrestore</command></term>
|
---|
| 1053 | <listitem>
|
---|
| 1054 | <para> is a tool for creating a <application>Samba</application>
|
---|
| 1055 | <filename>.tdb</filename> file out of a ntdbdump.</para>
|
---|
| 1056 | <indexterm zone="samba tdbrestore">
|
---|
| 1057 | <primary sortas="b-tdbrestore">tdbrestore</primary>
|
---|
| 1058 | </indexterm>
|
---|
[99ef1fc] | 1059 | </listitem>
|
---|
| 1060 | </varlistentry>
|
---|
| 1061 |
|
---|
| 1062 | <varlistentry id="tdbtool">
|
---|
| 1063 | <term><command>tdbtool</command></term>
|
---|
| 1064 | <listitem>
|
---|
| 1065 | <para>is a tool which allows simple database manipulation from the
|
---|
| 1066 | command line.</para>
|
---|
[45f56ac] | 1067 | <indexterm zone="samba tdbtool">
|
---|
[99ef1fc] | 1068 | <primary sortas="b-tdbtool">tdbtool</primary>
|
---|
| 1069 | </indexterm>
|
---|
| 1070 | </listitem>
|
---|
| 1071 | </varlistentry>
|
---|
| 1072 |
|
---|
| 1073 | <varlistentry id="testparm">
|
---|
| 1074 | <term><command>testparm</command></term>
|
---|
| 1075 | <listitem>
|
---|
| 1076 | <para>checks an <filename>smb.conf</filename> file for proper
|
---|
| 1077 | syntax.</para>
|
---|
[45f56ac] | 1078 | <indexterm zone="samba testparm">
|
---|
[99ef1fc] | 1079 | <primary sortas="b-testparm">testparm</primary>
|
---|
| 1080 | </indexterm>
|
---|
| 1081 | </listitem>
|
---|
| 1082 | </varlistentry>
|
---|
| 1083 |
|
---|
| 1084 | <varlistentry id="wbinfo">
|
---|
| 1085 | <term><command>wbinfo</command></term>
|
---|
| 1086 | <listitem>
|
---|
| 1087 | <para>queries a running <command>winbindd</command> daemon.</para>
|
---|
[45f56ac] | 1088 | <indexterm zone="samba wbinfo">
|
---|
[99ef1fc] | 1089 | <primary sortas="b-wbinfo">wbinfo</primary>
|
---|
| 1090 | </indexterm>
|
---|
| 1091 | </listitem>
|
---|
| 1092 | </varlistentry>
|
---|
| 1093 |
|
---|
| 1094 | <varlistentry id="winbindd">
|
---|
| 1095 | <term><command>winbindd</command></term>
|
---|
| 1096 | <listitem>
|
---|
| 1097 | <para>resolves names from Windows NT servers.</para>
|
---|
[45f56ac] | 1098 | <indexterm zone="samba winbindd">
|
---|
[99ef1fc] | 1099 | <primary sortas="b-winbindd">winbindd</primary>
|
---|
| 1100 | </indexterm>
|
---|
| 1101 | </listitem>
|
---|
| 1102 | </varlistentry>
|
---|
| 1103 |
|
---|
[f4c0a45] | 1104 | <varlistentry id="libnss_winbind">
|
---|
| 1105 | <term><filename class='libraryfile'>libnss_winbind.so</filename></term>
|
---|
| 1106 | <listitem>
|
---|
| 1107 | <para>provides Name Service Switch API functions for resolving names
|
---|
| 1108 | from NT servers.</para>
|
---|
[45f56ac] | 1109 | <indexterm zone="samba libnss_winbind">
|
---|
[f4c0a45] | 1110 | <primary sortas="c-libnss_winbind">libnss_winbind.so</primary>
|
---|
| 1111 | </indexterm>
|
---|
| 1112 | </listitem>
|
---|
| 1113 | </varlistentry>
|
---|
| 1114 |
|
---|
| 1115 | <varlistentry id="libnss_wins">
|
---|
| 1116 | <term><filename class='libraryfile'>libnss_wins.so</filename></term>
|
---|
| 1117 | <listitem>
|
---|
| 1118 | <para>provides API functions for Samba's implementation of the
|
---|
| 1119 | Windows Internet Naming Service.</para>
|
---|
[45f56ac] | 1120 | <indexterm zone="samba libnss_wins">
|
---|
[f4c0a45] | 1121 | <primary sortas="c-libnss_wins">libnss_wins.so</primary>
|
---|
| 1122 | </indexterm>
|
---|
| 1123 | </listitem>
|
---|
| 1124 | </varlistentry>
|
---|
| 1125 |
|
---|
| 1126 | <varlistentry id="libnetapi">
|
---|
| 1127 | <term><filename class='libraryfile'>libnetapi.so</filename></term>
|
---|
| 1128 | <listitem>
|
---|
| 1129 | <para>provides the API functions for the administration tools used
|
---|
| 1130 | for Samba and remote CIFS servers.</para>
|
---|
[45f56ac] | 1131 | <indexterm zone="samba libnetapi">
|
---|
[f4c0a45] | 1132 | <primary sortas="c-libnetapi">libnetapi.so</primary>
|
---|
| 1133 | </indexterm>
|
---|
| 1134 | </listitem>
|
---|
| 1135 | </varlistentry>
|
---|
| 1136 |
|
---|
| 1137 | <varlistentry id="libsmbclient">
|
---|
| 1138 | <term><filename class='libraryfile'>libsmbclient.so</filename></term>
|
---|
| 1139 | <listitem>
|
---|
| 1140 | <para>provides the API functions for the Samba SMB client tools.</para>
|
---|
[45f56ac] | 1141 | <indexterm zone="samba libsmbclient">
|
---|
[f4c0a45] | 1142 | <primary sortas="c-libsmbclient">libsmbclient.so</primary>
|
---|
| 1143 | </indexterm>
|
---|
| 1144 | </listitem>
|
---|
| 1145 | </varlistentry>
|
---|
[ac38e9dc] | 1146 | <!--
|
---|
[f4c0a45] | 1147 | <varlistentry id="libsmbsharemodes">
|
---|
| 1148 | <term><filename class='libraryfile'>libsmbsharemodes.so</filename></term>
|
---|
| 1149 | <listitem>
|
---|
| 1150 | <para>provides API functions for accessing SMB share modes
|
---|
| 1151 | (locks etc.)</para>
|
---|
[45f56ac] | 1152 | <indexterm zone="samba libsmbsharemodes">
|
---|
[f4c0a45] | 1153 | <primary sortas="c-libsmbsharemodes">libsmbsharemodes.so</primary>
|
---|
| 1154 | </indexterm>
|
---|
| 1155 | </listitem>
|
---|
[ac38e9dc] | 1156 | </varlistentry>-->
|
---|
[f4c0a45] | 1157 |
|
---|
| 1158 | <varlistentry id="libwbclient">
|
---|
| 1159 | <term><filename class='libraryfile'>libwbclient.so</filename></term>
|
---|
| 1160 | <listitem>
|
---|
| 1161 | <para>provides API functions for Windows domain client services.</para>
|
---|
[45f56ac] | 1162 | <indexterm zone="samba libwbclient">
|
---|
[f4c0a45] | 1163 | <primary sortas="c-libwbclient">libwbclient.so</primary>
|
---|
| 1164 | </indexterm>
|
---|
| 1165 | </listitem>
|
---|
| 1166 | </varlistentry>
|
---|
| 1167 |
|
---|
[99ef1fc] | 1168 | </variablelist>
|
---|
| 1169 |
|
---|
| 1170 | </sect2>
|
---|
| 1171 |
|
---|
| 1172 | </sect1>
|
---|