[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 |
|
---|
[6cd7c337] | 7 | <!ENTITY samba3-download-http "http://ftp.samba.org/pub/stable/samba-&samba3-version;.tar.gz">
|
---|
| 8 | <!ENTITY samba3-download-ftp "ftp://ftp.samba.org/pub/stable/samba-&samba3-version;.tar.gz">
|
---|
| 9 | <!ENTITY samba3-md5sum "d8e070e2a3b12f202f347e4427469bc2">
|
---|
[ee792ef] | 10 | <!ENTITY samba3-size "27.7 MB">
|
---|
[6cd7c337] | 11 | <!ENTITY samba3-buildsize "446 MB">
|
---|
| 12 | <!ENTITY samba3-time "2.2 SBU (add about 2.9 SBU to run the test suite)">
|
---|
[0931098] | 13 | ]>
|
---|
| 14 |
|
---|
[736ede9] | 15 | <sect1 id="samba3" xreflabel="Samba-&samba3-version;">
|
---|
[99ef1fc] | 16 | <?dbhtml filename="samba3.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Samba-&samba3-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="samba3">
|
---|
| 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.
|
---|
| 34 | <application>Samba</application> can also be configured as a Windows NT
|
---|
| 35 | 4.0 Domain Controller replacement (with caveats working with NT PDC's and
|
---|
| 36 | BDC's), a file/print server acting as a member of a Windows NT 4.0 or
|
---|
| 37 | Active Directory domain and a NetBIOS (rfc1001/1002) nameserver (which
|
---|
| 38 | amongst other things provides LAN browsing support).</para>
|
---|
| 39 |
|
---|
[ee792ef] | 40 | &lfs70_checked;
|
---|
| 41 |
|
---|
[99ef1fc] | 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (HTTP): <ulink url="&samba3-download-http;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (FTP): <ulink url="&samba3-download-ftp;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum: &samba3-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &samba3-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &samba3-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &samba3-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
[65dea1b6] | 64 | <!--<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[22320b4c] | 65 | <itemizedlist spacing="compact">
|
---|
[134279fd] | 66 | <listitem>
|
---|
| 67 | <para>Required patch: <ulink
|
---|
| 68 | url="http://us3.samba.org/samba/patches/patches-&samba3-version;/spoolss.diff"/></para>
|
---|
| 69 | </listitem>
|
---|
[65dea1b6] | 70 | </itemizedlist> -->
|
---|
[22320b4c] | 71 |
|
---|
[99ef1fc] | 72 | <bridgehead renderas="sect3">Samba Dependencies</bridgehead>
|
---|
| 73 |
|
---|
[e85edcc] | 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 75 | <para role="required"><xref linkend="libtirpc"/></para>
|
---|
| 76 |
|
---|
[99ef1fc] | 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[a6ac43b] | 78 | <para role="optional"><xref linkend="popt"/>,
|
---|
[6603f8b] | 79 | <xref linkend="linux-pam"/>,
|
---|
[99ef1fc] | 80 | <xref linkend="cups"/>,
|
---|
[75b4d9e] | 81 | <xref linkend="openldap"/>,
|
---|
| 82 | <xref linkend="gamin"/>,
|
---|
[33e33b88] | 83 | <xref linkend="acl"/>,
|
---|
[6dcdcde] | 84 | <xref linkend="xfs"/>,
|
---|
[7fdeb26] | 85 | <xref linkend="mitkrb"/>,
|
---|
[4716d52] | 86 | <xref linkend="python2"/> (used only in parts of the test suite),
|
---|
[f4c0a45] | 87 | <ulink url="http://tdb.samba.org/">tdb</ulink> (version 1.2.1),
|
---|
[e79ed72] | 88 | <xref linkend="libcap2"/>,
|
---|
[6dcdcde] | 89 | <ulink url="http://www.nongnu.org/libunwind/">libunwind</ulink>,
|
---|
[ee792ef] | 90 | <!-- <ulink url="http://people.redhat.com/dhowells/keyutils/">keyutils</ulink>
|
---|
| 91 | (required to build the <command>cifs.upcall</command> program), -->
|
---|
[49547f1] | 92 | <xref linkend="avahi"/>,
|
---|
[6dcdcde] | 93 | <ulink url="http://www.openafs.org/">OpenAFS</ulink>,
|
---|
[1c65bfd] | 94 | and <ulink url="http://valgrind.org/">Valgrind</ulink> (optionally
|
---|
[75b4d9e] | 95 | used by the test suite)</para>
|
---|
[a8ecf657] | 96 |
|
---|
[f4c0a45] | 97 | <para>You will need to install one of the kerberos packages if you plan
|
---|
| 98 | on using your system to join a Windows NT domain.</para>
|
---|
| 99 |
|
---|
[6dcdcde] | 100 | <bridgehead renderas="sect4">Optional for Samba4 Support</bridgehead>
|
---|
[f4c0a45] | 101 | <para role="optional"><xref linkend="gnutls"/> (recommended),
|
---|
[4716d52] | 102 | <xref linkend="python2"/>, and
|
---|
[8f9c757e] | 103 | <xref linkend="sqlite"/></para>
|
---|
[6dcdcde] | 104 |
|
---|
[3cb0c57] | 105 | <para condition="html" role="usernotes">User Notes:
|
---|
| 106 | <ulink url="&blfs-wiki;/samba3"/></para>
|
---|
| 107 |
|
---|
[99ef1fc] | 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2 role="installation">
|
---|
| 111 | <title>Installation of Samba</title>
|
---|
| 112 |
|
---|
[22320b4c] | 113 | <note>
|
---|
[75b4d9e] | 114 | <para>If you wish to run the test suite after the binaries are built,
|
---|
| 115 | you must add the <option>--enable-socket-wrapper</option> parameter to
|
---|
| 116 | the <command>configure</command> script below. You may want to run
|
---|
| 117 | <command>configure</command> with the <option>--help</option> parameter
|
---|
| 118 | first. There may be other parameters needed to take advantage of
|
---|
| 119 | optional dependencies.</para>
|
---|
[22320b4c] | 120 | </note>
|
---|
| 121 |
|
---|
[65dea1b6] | 122 | <para>Install <application>Samba</application> by running the following
|
---|
| 123 | commands:</para>
|
---|
| 124 |
|
---|
[6dcdcde] | 125 | <screen><userinput>cd source3 &&
|
---|
[134279fd] | 126 |
|
---|
[ee792ef] | 127 | ./configure \
|
---|
| 128 | --prefix=/usr \
|
---|
| 129 | --sysconfdir=/etc \
|
---|
| 130 | --localstatedir=/var \
|
---|
| 131 | --with-piddir=/run \
|
---|
[134279fd] | 132 | --with-pammodulesdir=/lib/security \
|
---|
[ee792ef] | 133 | --with-fhs \
|
---|
| 134 | --enable-nss-wrapper \
|
---|
| 135 | --enable-socket-wrapper &&
|
---|
[e85edcc] | 136 | sed -i "s/-ldl/& -ltirpc -lpthread/" Makefile &&
|
---|
[99ef1fc] | 137 | make</userinput></screen>
|
---|
[38b41c2] | 138 |
|
---|
[6dcdcde] | 139 | <para>To test the results, issue: <command>make test</command>. If you have
|
---|
[75b4d9e] | 140 | <application>Linux-PAM</application> installed and built the PAM library
|
---|
| 141 | modules, you can perform a dlopen test by issuing:
|
---|
| 142 | <command>make test_pam_modules</command>.</para>
|
---|
[22320b4c] | 143 |
|
---|
[99ef1fc] | 144 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[38b41c2] | 145 |
|
---|
[214b9ac] | 146 | <screen role="root"><userinput>make install &&
|
---|
| 147 |
|
---|
[6dcdcde] | 148 | install -v -m755 ../nsswitch/libnss_win{s,bind}.so /lib &&
|
---|
| 149 | ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2 &&
|
---|
| 150 | ln -v -sf libnss_wins.so /lib/libnss_wins.so.2 &&
|
---|
[214b9ac] | 151 |
|
---|
[6dcdcde] | 152 | install -v -m644 ../examples/smb.conf.default /etc/samba &&
|
---|
[214b9ac] | 153 |
|
---|
[f4c0a45] | 154 | if [ -d /etc/openldap/schema ]; then
|
---|
| 155 | install -v -m644 ../examples/LDAP/README \
|
---|
| 156 | /etc/openldap/schema/README.LDAP &&
|
---|
| 157 | install -v -m644 ../examples/LDAP/samba* \
|
---|
| 158 | /etc/openldap/schema &&
|
---|
| 159 | install -v -m755 ../examples/LDAP/{convert*,get*,ol*} \
|
---|
| 160 | /etc/openldap/schema &&
|
---|
| 161 | fi &&
|
---|
| 162 |
|
---|
[214b9ac] | 163 | install -v -m755 -d /usr/share/doc/samba-&samba3-version; &&
|
---|
[6dcdcde] | 164 | install -v -m644 ../docs/*.pdf \
|
---|
| 165 | /usr/share/doc/samba-&samba3-version; &&
|
---|
[a8ecf657] | 166 | ln -v -s ../../samba/swat /usr/share/doc/samba-&samba3-version;</userinput></screen>
|
---|
[214b9ac] | 167 |
|
---|
[99ef1fc] | 168 | </sect2>
|
---|
| 169 |
|
---|
| 170 | <sect2 role="commands">
|
---|
| 171 | <title>Command Explanations</title>
|
---|
| 172 |
|
---|
[6dcdcde] | 173 | <para><option>--enable-merged-build</option>: Use this parameter to build
|
---|
[f4c0a45] | 174 | the (alpha) Samba4 components (GnuTLS is recommended).</para>
|
---|
[6dcdcde] | 175 |
|
---|
[99ef1fc] | 176 | <para><parameter>--sysconfdir=/etc</parameter>: Sets the configuration
|
---|
| 177 | file directory to avoid the default of
|
---|
| 178 | <filename class="directory">/usr/etc</filename>.</para>
|
---|
| 179 |
|
---|
| 180 | <para><parameter>--localstatedir=/var</parameter>: Sets the variable
|
---|
| 181 | data directory to avoid the default of
|
---|
| 182 | <filename class="directory">/usr/var</filename>.</para>
|
---|
| 183 |
|
---|
| 184 | <para><parameter>--with-fhs</parameter>: Assigns all other file paths in
|
---|
| 185 | a manner compliant with the Filesystem Hierarchy Standard (FHS).</para>
|
---|
| 186 |
|
---|
[6dcdcde] | 187 | <para><parameter>--enable-nss-wrapper</parameter>: Builds the nss-wrapper
|
---|
| 188 | library.</para>
|
---|
| 189 |
|
---|
[ee792ef] | 190 | <para><parameter>--enable-socket-wrapper</parameter>: This options is
|
---|
| 191 | required to run the test suite.</para>
|
---|
[6dcdcde] | 192 |
|
---|
[e85edcc] | 193 | <para><command>sed -i "s/-ldl/& -ltirpc -lpthread/" Makefile</command>:
|
---|
| 194 | This command enables the build to complete when using libtirpc instead of
|
---|
| 195 | the deprecated GLibC rpc functions.</para>
|
---|
| 196 |
|
---|
[99ef1fc] | 197 | <para><command>install -v -m755 nsswitch/libnss_win{s,bind}.so /lib</command>:
|
---|
[f4c0a45] | 198 | The nss libraries are not installed by default. If you intend to use
|
---|
| 199 | winbindd for Windows NT domain authentication, and/or WINS name resolution,
|
---|
[99ef1fc] | 200 | you need these libraries.</para>
|
---|
| 201 |
|
---|
| 202 | <para><command>ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2</command>
|
---|
| 203 | and <command>ln -v -sf libnss_wins.so /lib/libnss_wins.so.2</command>:
|
---|
[f4c0a45] | 204 | These symlinks are required by <application>Glibc</application> to use the
|
---|
| 205 | NSS libraries.</para>
|
---|
| 206 |
|
---|
| 207 | <para><command>if [ -d /etc/openldap/schema ]; then ...; fi</command>:
|
---|
| 208 | These commands are used to see if you have an OpenLDAP installation, and if
|
---|
| 209 | so, they copy sample Samba schemas to the OpenLDAP
|
---|
| 210 | <filename class='directory'>schema</filename> directory.</para>
|
---|
[99ef1fc] | 211 |
|
---|
| 212 | <para><command>install -v -m644 ../examples/smb.conf.default
|
---|
| 213 | /etc/samba</command>: This copies a default <filename>smb.conf</filename>
|
---|
[2ccb0dc] | 214 | file into <filename>/etc/samba</filename>. This sample configuration will
|
---|
| 215 | not work until you copy it to <filename>/etc/samba/smb.conf</filename> and
|
---|
| 216 | make the appropriate changes for your installation. See the configuration
|
---|
| 217 | section for minimum values which must be set.</para>
|
---|
[99ef1fc] | 218 |
|
---|
| 219 | </sect2>
|
---|
| 220 |
|
---|
| 221 | <sect2 role="configuration">
|
---|
| 222 | <title>Configuring Samba</title>
|
---|
| 223 |
|
---|
| 224 | <sect3 id="samba3-config">
|
---|
| 225 | <title>Config Files</title>
|
---|
| 226 |
|
---|
| 227 | <para>/etc/samba/smb.conf</para>
|
---|
| 228 |
|
---|
| 229 | <indexterm zone="samba3 samba3-config">
|
---|
| 230 | <primary sortas="e-etc-samba-smb.conf">/etc/samba/smb.conf</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 |
|
---|
| 233 | </sect3>
|
---|
[ee792ef] | 234 | <!-- mount.cifs is now in the separate cifs-utils package
|
---|
[e75747d1] | 235 | <sect3>
|
---|
| 236 | <title>Mounting Shares by Unprivileged Users</title>
|
---|
| 237 |
|
---|
| 238 | <para>If it is desired for unprivileged users to directly mount (and
|
---|
[6dcdcde] | 239 | unmount) CIFS shares, the <command>mount.cifs</command> and
|
---|
[75b4d9e] | 240 | <command>umount.cifs</command> commands must be setuid
|
---|
[e75747d1] | 241 | <systemitem class='username'>root</systemitem>. Note that users can
|
---|
[6dcdcde] | 242 | only mount CIFS shares on a mount point owned by that user (requires
|
---|
[c9f3c0a] | 243 | write access also). If desired, change these programs to setuid
|
---|
[e75747d1] | 244 | <systemitem class='username'>root</systemitem> by issuing the following
|
---|
[bccbdaea] | 245 | command as the <systemitem class='username'>root</systemitem>
|
---|
[e75747d1] | 246 | user:</para>
|
---|
| 247 |
|
---|
[6dcdcde] | 248 | <screen role="root"><userinput>chmod -v 4755 /usr/sbin/{,u}mount.cifs</userinput></screen>
|
---|
[e75747d1] | 249 |
|
---|
| 250 | </sect3>
|
---|
[ee792ef] | 251 | -->
|
---|
[2ccb0dc] | 252 | <sect3>
|
---|
[fc290c7] | 253 | <title>Printing to SMB Clients</title>
|
---|
[2ccb0dc] | 254 |
|
---|
[fc290c7] | 255 | <para>If you use <application>CUPS</application> for print services,
|
---|
| 256 | and you wish to print to a printer attached to an SMB client, you
|
---|
| 257 | need to create an SMB backend device. To create the device, issue the
|
---|
| 258 | following command as the <systemitem class="username">root</systemitem>
|
---|
| 259 | user:</para>
|
---|
[2ccb0dc] | 260 |
|
---|
[fc290c7] | 261 | <screen role="root"><userinput>ln -v -sf /usr/bin/smbspool /usr/lib/cups/backend/smb</userinput></screen>
|
---|
[2ccb0dc] | 262 |
|
---|
| 263 | </sect3>
|
---|
| 264 |
|
---|
[99ef1fc] | 265 | <sect3>
|
---|
[fc290c7] | 266 | <title>Configuration Information</title>
|
---|
[99ef1fc] | 267 |
|
---|
| 268 | <para>Due to the complexity and the many various uses for
|
---|
[fc290c7] | 269 | <application>Samba</application>, complete configuration for all the
|
---|
[e59bdce] | 270 | package's capabilities is well beyond the scope of the BLFS book. This
|
---|
[fc290c7] | 271 | section provides instructions to configure the
|
---|
| 272 | <filename>/etc/samba/smb.conf</filename> file for two common scenarios.
|
---|
| 273 | The complete contents of <filename>/etc/samba/smb.conf</filename> will
|
---|
[bccbdaea] | 274 | depend on the purpose of <application>Samba</application>
|
---|
[fc290c7] | 275 | installation.</para>
|
---|
| 276 |
|
---|
| 277 | <note>
|
---|
| 278 | <para>You may find it easier to copy the configuration parameters shown
|
---|
| 279 | below into an empty <filename>/etc/samba/smb.conf</filename> file
|
---|
| 280 | instead of copying and editing the default file as mentioned in the
|
---|
| 281 | <quote>Command Explanations</quote> section. How you create/edit the
|
---|
| 282 | <filename>/etc/samba/smb.conf</filename> file will be left up to
|
---|
| 283 | you. Do ensure the file is only writeable by the
|
---|
| 284 | <systemitem class="username">root</systemitem> user (mode 644).</para>
|
---|
| 285 | </note>
|
---|
| 286 |
|
---|
| 287 | <sect4>
|
---|
| 288 | <title>Scenario 1: Minimal Standalone Client-Only Installation</title>
|
---|
| 289 |
|
---|
[bccbdaea] | 290 | <para>Choose this variant if you only want to transfer files using
|
---|
[fc290c7] | 291 | <command>smbclient</command>, mount Windows shares and print to Windows
|
---|
[bccbdaea] | 292 | printers, and don't want to share your files and printers to Windows
|
---|
[fc290c7] | 293 | machines.</para>
|
---|
| 294 |
|
---|
| 295 | <para>A <filename>/etc/samba/smb.conf</filename> file with the following
|
---|
| 296 | three parameters is sufficient:</para>
|
---|
| 297 |
|
---|
| 298 | <screen role='root'><literal>[global]
|
---|
| 299 | workgroup = <replaceable>MYGROUP</replaceable>
|
---|
| 300 | dos charset = <replaceable>cp850</replaceable>
|
---|
| 301 | unix charset = <replaceable>ISO-8859-1</replaceable></literal></screen>
|
---|
| 302 |
|
---|
| 303 | <para>The values in this example specify that the computer belongs to a
|
---|
| 304 | Windows workgroup named
|
---|
| 305 | <quote><replaceable>MYGROUP</replaceable></quote>, uses the
|
---|
| 306 | <quote><replaceable>cp850</replaceable></quote> character set on the
|
---|
| 307 | wire when talking to MS-DOS and MS Windows 9x, and that the filenames
|
---|
| 308 | are stored in the <quote><replaceable>ISO-8859-1</replaceable></quote>
|
---|
| 309 | encoding on the disk. Adjust these values appropriately for your
|
---|
| 310 | installation. The <quote>unix charset</quote> value must be the same as
|
---|
| 311 | the output of <command>locale charmap</command> when executed with the
|
---|
| 312 | <envar>LANG</envar> variable set to your preferred locale, otherwise the
|
---|
| 313 | <command>ls</command> command may not display correct filenames of
|
---|
| 314 | downloaded files.</para>
|
---|
| 315 |
|
---|
| 316 | <para>There is no need to run any <application>Samba</application>
|
---|
| 317 | servers in this scenario, thus you don't need to install the provided
|
---|
| 318 | bootscripts.</para>
|
---|
| 319 |
|
---|
| 320 | </sect4>
|
---|
| 321 |
|
---|
| 322 | <sect4>
|
---|
| 323 | <title>Scenario 2: Standalone File/Print Server</title>
|
---|
| 324 |
|
---|
| 325 | <para>Choose this variant if you want to share your files and printers
|
---|
| 326 | to Windows machines in your workgroup in addition to the capabilities
|
---|
| 327 | described in Scenario 1.</para>
|
---|
| 328 |
|
---|
| 329 | <para>In this case, the <filename>/etc/samba/smb.conf.default</filename>
|
---|
[bccbdaea] | 330 | file may be a good template to start from. Also add
|
---|
[fc290c7] | 331 | <quote>dos charset</quote> and <quote>unix charset</quote> parameters
|
---|
| 332 | to the <quote>[global]</quote> section as described in Scenario 1 in
|
---|
| 333 | order to prevent filename corruption.</para>
|
---|
| 334 |
|
---|
| 335 | <para>The following configuration file creates a separate share for each
|
---|
| 336 | user's home directory and also makes all printers available to Windows
|
---|
| 337 | machines:</para>
|
---|
| 338 |
|
---|
| 339 | <screen role='root'><literal>[global]
|
---|
| 340 | workgroup = <replaceable>MYGROUP</replaceable>
|
---|
| 341 | dos charset = <replaceable>cp850</replaceable>
|
---|
| 342 | unix charset = <replaceable>ISO-8859-1</replaceable>
|
---|
| 343 |
|
---|
| 344 | [homes]
|
---|
| 345 | comment = Home Directories
|
---|
| 346 | browseable = no
|
---|
| 347 | writable = yes
|
---|
| 348 |
|
---|
| 349 | [printers]
|
---|
| 350 | comment = All Printers
|
---|
| 351 | path = /var/spool/samba
|
---|
| 352 | browseable = no
|
---|
| 353 | guest ok = no
|
---|
| 354 | printable = yes</literal></screen>
|
---|
| 355 |
|
---|
[bccbdaea] | 356 | <para>Other parameters you may wish to customize in the
|
---|
[fc290c7] | 357 | <quote>[global]</quote> section include:</para>
|
---|
| 358 |
|
---|
| 359 | <screen role='root'><literal> server string =
|
---|
| 360 | security =
|
---|
| 361 | hosts allow =
|
---|
| 362 | load printers =
|
---|
| 363 | log file =
|
---|
| 364 | max log size =
|
---|
| 365 | socket options =
|
---|
| 366 | local master =</literal></screen>
|
---|
| 367 |
|
---|
| 368 | <para>Reference the comments in the
|
---|
| 369 | <filename>/etc/samba/smb.conf.default</filename> file for information
|
---|
| 370 | regarding these parameters.</para>
|
---|
| 371 |
|
---|
| 372 | <para>Since the <command>smbd</command> and <command>nmbd</command>
|
---|
| 373 | daemons are needed in this case, install the <filename>samba</filename>
|
---|
| 374 | bootscript. Be sure to run <command>smbpasswd</command> (with the
|
---|
| 375 | <option>-a</option> option to add users) to enable and
|
---|
| 376 | set passwords for all accounts that need
|
---|
| 377 | <application>Samba</application> access, or use the SWAT web interface
|
---|
| 378 | (see below) to do the same. Using the default
|
---|
| 379 | <application>Samba</application> passdb backend, any user you attempt
|
---|
| 380 | to add will also be required to exist in the
|
---|
| 381 | <filename>/etc/passwd</filename> file.</para>
|
---|
| 382 |
|
---|
| 383 | </sect4>
|
---|
| 384 |
|
---|
| 385 | <sect4>
|
---|
| 386 | <title>Advanced Requirements</title>
|
---|
| 387 |
|
---|
| 388 | <para>More complex scenarios involving domain control or membership are
|
---|
| 389 | possible if the right flags are passed to the ./configure script when
|
---|
| 390 | the package is built. Such setups are advanced topics and cannot be
|
---|
| 391 | adequately covered in BLFS. Many complete books have been written on
|
---|
| 392 | these topics alone. It should be noted, however, that a
|
---|
| 393 | <application>Samba</application> BDC cannot be used as a fallback
|
---|
| 394 | for a Windows PDC, and conversely, a Windows BDC cannot be used as a
|
---|
| 395 | fallback for a <application>Samba</application> PDC. Also in some
|
---|
[bfb7882] | 396 | domain membership scenarios, the <command>winbindd</command> daemon and
|
---|
[fc290c7] | 397 | the corresponding bootscript are needed.</para>
|
---|
| 398 |
|
---|
| 399 | <para>There is quite a bit of documentation available which covers many
|
---|
| 400 | of these advanced configurations. Point your web browser to the links
|
---|
| 401 | below to view some of the documentation included with the
|
---|
| 402 | <application>Samba</application> package:</para>
|
---|
| 403 |
|
---|
| 404 | <itemizedlist spacing='compact'>
|
---|
| 405 | <listitem>
|
---|
| 406 | <para>Using Samba, 2nd Edition; a popular book published by O'Reilly
|
---|
| 407 | <ulink url="file:///usr/share/samba/swat/using_samba/toc.html"/></para>
|
---|
| 408 | </listitem>
|
---|
| 409 | <listitem>
|
---|
| 410 | <para>The Official Samba HOWTO and Reference Guide <ulink
|
---|
| 411 | url="file:///usr/share/samba/swat/help/Samba-HOWTO-Collection/index.html"/>
|
---|
| 412 | </para>
|
---|
| 413 | </listitem>
|
---|
| 414 | <listitem>
|
---|
| 415 | <para>Samba-3 by Example
|
---|
| 416 | <ulink url="file:///usr/share/samba/swat/help/Samba-Guide/index.html"/>
|
---|
| 417 | </para>
|
---|
| 418 | </listitem>
|
---|
| 419 | <listitem>
|
---|
| 420 | <para>The Samba-3 man Pages
|
---|
| 421 | <ulink url="file:///usr/share/samba/swat/help/samba.7.html"/></para>
|
---|
| 422 | </listitem>
|
---|
| 423 | </itemizedlist>
|
---|
| 424 |
|
---|
| 425 | </sect4>
|
---|
[99ef1fc] | 426 |
|
---|
[75f9474f] | 427 | <sect4 id="samba3-init">
|
---|
| 428 | <title>Boot Script</title>
|
---|
| 429 |
|
---|
| 430 | <para>For your convenience, boot scripts have been provided for
|
---|
| 431 | <application>Samba</application>. There are two included in the
|
---|
| 432 | <xref linkend="bootscripts"/> package. The first,
|
---|
| 433 | <filename>samba</filename>, will start the <command>smbd</command>
|
---|
| 434 | and <command>nmbd</command> daemons needed to provide SMB/CIFS
|
---|
| 435 | services. The second script, <filename>winbind</filename>, starts
|
---|
| 436 | the <command>winbindd</command> daemon, used for providing Windows
|
---|
| 437 | domain services to Linux clients.</para>
|
---|
| 438 |
|
---|
| 439 | <indexterm zone="samba3 samba3-init">
|
---|
| 440 | <primary sortas="f-samba">samba</primary>
|
---|
[fc290c7] | 441 | </indexterm>
|
---|
[75f9474f] | 442 |
|
---|
| 443 | <indexterm zone="samba3 samba3-init">
|
---|
| 444 | <primary sortas="f-winbind">winbind</primary>
|
---|
[fc290c7] | 445 | </indexterm>
|
---|
[75f9474f] | 446 |
|
---|
| 447 | <para>The default <application>Samba</application> installation uses the
|
---|
| 448 | <systemitem class='username'>nobody</systemitem> user for guest access
|
---|
| 449 | to the server. This can be overridden by setting the
|
---|
| 450 | <option>guest account =</option> parameter in the
|
---|
| 451 | <filename>/etc/samba/smb.conf</filename> file. If you utilize the
|
---|
| 452 | <option>guest account =</option> parameter, ensure this user exists in
|
---|
| 453 | the <filename>/etc/passwd</filename> file. To use the default user,
|
---|
| 454 | issue the following commands as the
|
---|
| 455 | <systemitem class='username'>root</systemitem> user:</para>
|
---|
[fc290c7] | 456 |
|
---|
[75f9474f] | 457 | <screen><userinput>groupadd -g 99 nogroup &&
|
---|
| 458 | useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
|
---|
| 459 | -s /bin/false -u 99 nobody</userinput></screen>
|
---|
[99ef1fc] | 460 |
|
---|
[75f9474f] | 461 | <para>Install the <filename>samba</filename> script with the following
|
---|
| 462 | command issued as the <systemitem class="username">root</systemitem>
|
---|
| 463 | user:</para>
|
---|
[99ef1fc] | 464 |
|
---|
[75f9474f] | 465 | <screen role="root"><userinput>make install-samba</userinput></screen>
|
---|
[99ef1fc] | 466 |
|
---|
[75f9474f] | 467 | <para>If you also need the <filename>winbind</filename>
|
---|
| 468 | script:</para>
|
---|
[99ef1fc] | 469 |
|
---|
[75f9474f] | 470 | <screen role="root"><userinput>make install-winbind</userinput></screen>
|
---|
[99ef1fc] | 471 |
|
---|
[75f9474f] | 472 | </sect4>
|
---|
[99ef1fc] | 473 |
|
---|
[75f9474f] | 474 | </sect3>
|
---|
[99ef1fc] | 475 |
|
---|
[75f9474f] | 476 | <sect3 id="samba3-swat-config">
|
---|
| 477 | <title>Configuring SWAT</title>
|
---|
[1f672c1] | 478 |
|
---|
[75f9474f] | 479 | <para>The SWAT (<application>Samba</application> Web Administration Tool)
|
---|
| 480 | utility can be used for configuration of the
|
---|
| 481 | <application>Samba</application> installation.</para>
|
---|
| 482 |
|
---|
| 483 | <indexterm zone="samba3 samba3-swat-config">
|
---|
| 484 | <primary sortas="g-SWAT">SWAT</primary>
|
---|
| 485 | </indexterm>
|
---|
[1f672c1] | 486 |
|
---|
[75f9474f] | 487 | <sect4>
|
---|
| 488 | <title>Setting up SWAT using inetd</title>
|
---|
[0931098] | 489 |
|
---|
[fc290c7] | 490 | <indexterm zone="samba3 samba3-swat-config">
|
---|
[75f9474f] | 491 | <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
|
---|
[fc290c7] | 492 | </indexterm>
|
---|
[2a3fc53] | 493 |
|
---|
[fc290c7] | 494 | <indexterm zone="samba3 samba3-swat-config">
|
---|
[75f9474f] | 495 | <primary sortas="e-etc-services">/etc/services</primary>
|
---|
[fc290c7] | 496 | </indexterm>
|
---|
[2bfe939] | 497 |
|
---|
[fc290c7] | 498 | <warning>
|
---|
| 499 | <para>BLFS does not recommend using these procedures because of the
|
---|
| 500 | security risk involved. However, in a home network environment and
|
---|
[823b1a3] | 501 | disclosure of the <systemitem class='username'>root</systemitem>
|
---|
| 502 | password is an acceptable risk, the following
|
---|
[fc290c7] | 503 | instructions are provided for your convenience.</para>
|
---|
| 504 | </warning>
|
---|
| 505 |
|
---|
[75f9474f] | 506 | <para>First you must add an entry to <filename>/etc/services</filename>
|
---|
| 507 | and modify the <command>inetd</command> configuration. Add this entry
|
---|
| 508 | with the following command issued as the <systemitem
|
---|
| 509 | class="username">root</systemitem> user:</para>
|
---|
[fc290c7] | 510 |
|
---|
[75f9474f] | 511 | <screen role="root"><userinput>echo "swat 905/tcp" >> /etc/services</userinput></screen>
|
---|
[fc290c7] | 512 |
|
---|
[75f9474f] | 513 | <para>Now add this entry to the <filename>/etc/inetd.conf</filename>
|
---|
| 514 | file, again as the <systemitem class="username">root</systemitem>
|
---|
| 515 | user:</para>
|
---|
[fc290c7] | 516 |
|
---|
[75f9474f] | 517 | <screen role="root"><userinput>echo "swat stream tcp nowait.5 root /usr/sbin/swat swat >> /etc/inetd.conf</userinput></screen>
|
---|
[fc290c7] | 518 |
|
---|
| 519 | <para>Issue a <command>killall -HUP inetd</command> to reread the
|
---|
| 520 | changed <filename>inetd.conf</filename> file.</para>
|
---|
| 521 |
|
---|
[75f9474f] | 522 | <para>SWAT can be launched by pointing your web browser to
|
---|
| 523 | http://localhost:905.</para>
|
---|
| 524 |
|
---|
| 525 | </sect4>
|
---|
[59048cd9] | 526 | <!--
|
---|
[75f9474f] | 527 | <sect4>
|
---|
| 528 | <title>Setting up SWAT using xinetd</title>
|
---|
| 529 |
|
---|
| 530 | <indexterm zone="samba3 samba3-swat-config">
|
---|
| 531 | <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
|
---|
| 532 | </indexterm>
|
---|
| 533 |
|
---|
| 534 | <para>If not already done, add an entry to <filename>/etc/services</filename> file
|
---|
| 535 | as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 536 |
|
---|
| 537 | <screen role="root"><userinput>echo "swat 905/tcp" >> /etc/services</userinput></screen>
|
---|
[fc290c7] | 538 |
|
---|
[75f9474f] | 539 | <para>Create the <application>Samba</application> <xref
|
---|
| 540 | linkend='xinetd'/> file as <filename>/etc/xinetd.d/swat</filename>.</para>
|
---|
| 541 |
|
---|
| 542 | <warning>
|
---|
| 543 | <para>You may modify or remove the <quote>only_from</quote> line
|
---|
| 544 | below to include other host(s). BLFS does not recommend doing this
|
---|
| 545 | because of the security risk involved. However, in a home network
|
---|
| 546 | environment, disclosure of the <systemitem
|
---|
| 547 | class='username'>root</systemitem> password may be an acceptable
|
---|
| 548 | risk.</para>
|
---|
| 549 | </warning>
|
---|
| 550 |
|
---|
| 551 | <screen role="root"><userinput>cat >> /etc/xinetd.d/swat << "EOF"
|
---|
[fc290c7] | 552 | <literal># Begin /etc/xinetd.d/swat
|
---|
| 553 |
|
---|
| 554 | service swat
|
---|
| 555 | {
|
---|
[75f9474f] | 556 | port = 905
|
---|
[fc290c7] | 557 | socket_type = stream
|
---|
| 558 | wait = no
|
---|
[75f9474f] | 559 | instances = 5
|
---|
[fc290c7] | 560 | only_from = 127.0.0.1
|
---|
| 561 | user = root
|
---|
| 562 | server = /usr/sbin/swat
|
---|
[75f9474f] | 563 | log_on_failure += USERID
|
---|
[fc290c7] | 564 | }
|
---|
| 565 |
|
---|
| 566 | # End /etc/xinetd.d/swat</literal>
|
---|
| 567 | EOF</userinput></screen>
|
---|
| 568 |
|
---|
[75f9474f] | 569 | <para>Issue a <command>killall -HUP xinetd</command> to read the new
|
---|
| 570 | <filename>/etc/xinetd.d/swat</filename> file.</para>
|
---|
[fc290c7] | 571 |
|
---|
[75f9474f] | 572 | <note>
|
---|
| 573 | <para>If you linked <application>Linux-PAM</application> into the
|
---|
| 574 | <application>Samba</application> build, you'll need to create an
|
---|
| 575 | <filename>/etc/pam.d/samba</filename> file.</para>
|
---|
| 576 | </note>
|
---|
[fc290c7] | 577 |
|
---|
[75f9474f] | 578 | <para>SWAT can now be launched by pointing your web browser to
|
---|
| 579 | http://localhost:905.</para>
|
---|
[fc290c7] | 580 |
|
---|
[75f9474f] | 581 | </sect4>
|
---|
[59048cd9] | 582 | -->
|
---|
[75f9474f] | 583 | <sect4>
|
---|
| 584 | <title>Setting up SWAT using stunnel</title>
|
---|
[fc290c7] | 585 |
|
---|
[75f9474f] | 586 | <para>A better way to set up SWAT for network access is through
|
---|
| 587 | <xref linkend='stunnel'/>. For convenience, a boot scripts has
|
---|
| 588 | been provided for SWAT via stunnel. First, create the stunnel
|
---|
| 589 | configuration file:</para>
|
---|
[99ef1fc] | 590 |
|
---|
[75f9474f] | 591 | <indexterm zone="samba3 samba3-swat-config">
|
---|
| 592 | <primary sortas="e-etc-stunnel-swat.conf">/etc/stunnel/swat.conf</primary>
|
---|
| 593 | </indexterm>
|
---|
[99ef1fc] | 594 |
|
---|
[75f9474f] | 595 | <screen role="root"><userinput>cat >> /etc/stunnel/swat.conf << "EOF"
|
---|
| 596 | <literal>; File: /etc/stunnel/swat.conf
|
---|
[99ef1fc] | 597 |
|
---|
[75f9474f] | 598 | pid = /run/stunnel-swat.pid
|
---|
| 599 | setuid = root
|
---|
| 600 | setgid = root
|
---|
| 601 | cert = /etc/stunnel/stunnel.pem
|
---|
[99ef1fc] | 602 |
|
---|
[75f9474f] | 603 | [swat]
|
---|
| 604 | accept = swat
|
---|
| 605 | exec = /usr/sbin/swat
|
---|
| 606 | </literal>
|
---|
| 607 | EOF</userinput></screen>
|
---|
[99ef1fc] | 608 |
|
---|
[75f9474f] | 609 | <para>Next, install the swat bootscript:</para>
|
---|
[99ef1fc] | 610 |
|
---|
[75f9474f] | 611 | <screen role="root"><userinput>make install-swat</userinput></screen>
|
---|
[99ef1fc] | 612 |
|
---|
[75f9474f] | 613 | <para>After starting the SWAT boot script the tool can be accessed by
|
---|
| 614 | pointing your web browser to https://localhost:905. Note:
|
---|
| 615 | <emphasis>https</emphasis>. If access to the tool needs to be
|
---|
| 616 | further restricted, then <xref linkend='iptables'/> can be
|
---|
| 617 | used.</para>
|
---|
[fc290c7] | 618 |
|
---|
[75f9474f] | 619 | </sect4>
|
---|
[fc290c7] | 620 |
|
---|
[75f9474f] | 621 | </sect3>
|
---|
[99ef1fc] | 622 |
|
---|
[75f9474f] | 623 | <sect3>
|
---|
| 624 | <title/>
|
---|
[99ef1fc] | 625 |
|
---|
| 626 |
|
---|
[75f9474f] | 627 | <indexterm zone="samba3 samba3-swat-config">
|
---|
| 628 | <primary sortas="e-etc-pam.d-samba">/etc/pam.d/samba</primary>
|
---|
| 629 | </indexterm>
|
---|
[99ef1fc] | 630 |
|
---|
| 631 | </sect3>
|
---|
| 632 |
|
---|
[75f9474f] | 633 |
|
---|
[99ef1fc] | 634 | </sect2>
|
---|
| 635 |
|
---|
| 636 | <sect2 role="content">
|
---|
| 637 | <title>Contents</title>
|
---|
| 638 |
|
---|
| 639 | <segmentedlist>
|
---|
| 640 | <segtitle>Installed Programs</segtitle>
|
---|
| 641 | <segtitle>Installed Libraries</segtitle>
|
---|
| 642 | <segtitle>Installed Directories</segtitle>
|
---|
| 643 |
|
---|
| 644 | <seglistitem>
|
---|
[f4c0a45] | 645 | <seg>cifs.upcall, eventlogadm, findsmb, ldbadd, ldbdel, ldbedit,
|
---|
[75f9474f] | 646 | ldbmodify, ldbrename, ldbsearch, net, nmbd,
|
---|
[f4c0a45] | 647 | nmblookup, ntlm_auth, pdbedit, profiles, rpcclient, sharesec, smbcacls,
|
---|
| 648 | smbclient, smbcontrol, smbcquotas, smbd, smbget, smbpasswd, smbspool,
|
---|
[75f9474f] | 649 | smbstatus, smbtar, smbtree, swat, testparm, wbinfo,
|
---|
[f4c0a45] | 650 | winbindd, and (if not using system TDB) tdbbackup, tdbdump, and
|
---|
| 651 | tdbtool</seg>
|
---|
| 652 | <seg>libnss_winbind.so, libnss_wins.so, libnetapi.so, libsmbclient.so,
|
---|
| 653 | libsmbsharemodes.so, libtalloc.so, libwbclient.so, the pam_winbind.so
|
---|
| 654 | and pam_smbpass.so PAM libraries, and assorted character set,
|
---|
| 655 | filesystem and support modules.</seg>
|
---|
| 656 | <seg>/etc/samba, /usr/lib/samba, /usr/share/doc/samba-&samba3-version;,
|
---|
| 657 | /usr/share/samba, /var/lib/samba and (if configured) /var/log/samba</seg>
|
---|
[99ef1fc] | 658 | </seglistitem>
|
---|
| 659 | </segmentedlist>
|
---|
| 660 |
|
---|
| 661 | <variablelist>
|
---|
| 662 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 663 | <?dbfo list-presentation="list"?>
|
---|
| 664 | <?dbhtml list-presentation="table"?>
|
---|
| 665 |
|
---|
[f4c0a45] | 666 | <varlistentry id="cifs.upcall">
|
---|
| 667 | <term><command>cifs.upcall</command></term>
|
---|
| 668 | <listitem>
|
---|
| 669 | <para>is a userspace upcall helper for Common Internet File Systems
|
---|
| 670 | (CIFS)</para>
|
---|
| 671 | <indexterm zone="samba3 cifs.upcall">
|
---|
| 672 | <primary sortas="b-cifs.upcall">cifs.upcall</primary>
|
---|
| 673 | </indexterm>
|
---|
| 674 | </listitem>
|
---|
| 675 | </varlistentry>
|
---|
| 676 |
|
---|
[a8ecf657] | 677 | <varlistentry id="eventlogadm">
|
---|
| 678 | <term><command>eventlogadm</command></term>
|
---|
| 679 | <listitem>
|
---|
| 680 | <para>is used to write records to eventlogs from STDIN, add the
|
---|
| 681 | specified source and DLL eventlog registry entries and display the
|
---|
| 682 | active eventlog names (from <filename>smb.conf</filename>).</para>
|
---|
| 683 | <indexterm zone="samba3 eventlogadm">
|
---|
| 684 | <primary sortas="b-eventlogadm">eventlogadm</primary>
|
---|
| 685 | </indexterm>
|
---|
| 686 | </listitem>
|
---|
| 687 | </varlistentry>
|
---|
| 688 |
|
---|
[99ef1fc] | 689 | <varlistentry id="findsmb">
|
---|
| 690 | <term><command>findsmb</command></term>
|
---|
| 691 | <listitem>
|
---|
| 692 | <para>lists information about machines that respond to
|
---|
| 693 | SMB name queries on a subnet.</para>
|
---|
| 694 | <indexterm zone="samba3 findsmb">
|
---|
| 695 | <primary sortas="b-findsmb">findsmb</primary>
|
---|
| 696 | </indexterm>
|
---|
| 697 | </listitem>
|
---|
| 698 | </varlistentry>
|
---|
| 699 |
|
---|
[f4c0a45] | 700 | <varlistentry id="ldbadd">
|
---|
| 701 | <term><command>ldbadd</command></term>
|
---|
| 702 | <listitem>
|
---|
| 703 | <para>is a command-line utility for adding records to an LDB
|
---|
| 704 | database.</para>
|
---|
| 705 | <indexterm zone="samba3 ldbadd">
|
---|
| 706 | <primary sortas="b-ldbadd">ldbadd</primary>
|
---|
| 707 | </indexterm>
|
---|
| 708 | </listitem>
|
---|
| 709 | </varlistentry>
|
---|
| 710 |
|
---|
| 711 | <varlistentry id="ldbdel">
|
---|
| 712 | <term><command>ldbdel</command></term>
|
---|
| 713 | <listitem>
|
---|
| 714 | <para>is a command-line program for deleting LDB database
|
---|
| 715 | records.</para>
|
---|
| 716 | <indexterm zone="samba3 ldbdel">
|
---|
| 717 | <primary sortas="b-ldbdel">ldbdel</primary>
|
---|
| 718 | </indexterm>
|
---|
| 719 | </listitem>
|
---|
| 720 | </varlistentry>
|
---|
| 721 |
|
---|
| 722 | <varlistentry id="ldbedit">
|
---|
| 723 | <term><command>ldbedit</command></term>
|
---|
| 724 | <listitem>
|
---|
| 725 | <para>allows you to edit LDB databases using your preferred
|
---|
| 726 | editor.</para>
|
---|
| 727 | <indexterm zone="samba3 ldbedit">
|
---|
| 728 | <primary sortas="b-ldbedit">ldbedit</primary>
|
---|
| 729 | </indexterm>
|
---|
| 730 | </listitem>
|
---|
| 731 | </varlistentry>
|
---|
| 732 |
|
---|
| 733 | <varlistentry id="ldbmodify">
|
---|
| 734 | <term><command>ldbmodify</command></term>
|
---|
| 735 | <listitem>
|
---|
| 736 | <para>allows you to modify records in an LDB database.</para>
|
---|
| 737 | <indexterm zone="samba3 ldbmodify">
|
---|
| 738 | <primary sortas="b-ldbmodify">ldbmodify</primary>
|
---|
| 739 | </indexterm>
|
---|
| 740 | </listitem>
|
---|
| 741 | </varlistentry>
|
---|
| 742 |
|
---|
| 743 | <varlistentry id="ldbrename">
|
---|
| 744 | <term><command>ldbrename</command></term>
|
---|
| 745 | <listitem>
|
---|
| 746 | <para>allows you to edit LDB databases using your preferred
|
---|
| 747 | editor.</para>
|
---|
| 748 | <indexterm zone="samba3 ldbrename">
|
---|
| 749 | <primary sortas="b-ldbrename">ldbrename</primary>
|
---|
| 750 | </indexterm>
|
---|
| 751 | </listitem>
|
---|
| 752 | </varlistentry>
|
---|
| 753 |
|
---|
| 754 | <varlistentry id="ldbsearch">
|
---|
| 755 | <term><command>ldbsearch</command></term>
|
---|
| 756 | <listitem>
|
---|
| 757 | <para>searches an LDB database for records matching a specified
|
---|
| 758 | expression.</para>
|
---|
| 759 | <indexterm zone="samba3 ldbsearch">
|
---|
| 760 | <primary sortas="b-ldbsearch">ldbsearch</primary>
|
---|
| 761 | </indexterm>
|
---|
| 762 | </listitem>
|
---|
| 763 | </varlistentry>
|
---|
| 764 |
|
---|
[99ef1fc] | 765 | <varlistentry id="net">
|
---|
| 766 | <term><command>net</command></term>
|
---|
| 767 | <listitem>
|
---|
| 768 | <para>is a tool for administration of
|
---|
| 769 | <application>Samba</application> and remote CIFS servers, similar
|
---|
| 770 | to the <command>net</command> utility for DOS/Windows.</para>
|
---|
| 771 | <indexterm zone="samba3 net">
|
---|
| 772 | <primary sortas="b-net">net</primary>
|
---|
| 773 | </indexterm>
|
---|
| 774 | </listitem>
|
---|
| 775 | </varlistentry>
|
---|
| 776 |
|
---|
| 777 | <varlistentry id="nmbd">
|
---|
| 778 | <term><command>nmbd</command></term>
|
---|
| 779 | <listitem>
|
---|
| 780 | <para>is the <application>Samba</application>
|
---|
| 781 | NetBIOS name server.</para>
|
---|
| 782 | <indexterm zone="samba3 nmbd">
|
---|
| 783 | <primary sortas="b-nmbd">nmbd</primary>
|
---|
| 784 | </indexterm>
|
---|
| 785 | </listitem>
|
---|
| 786 | </varlistentry>
|
---|
| 787 |
|
---|
| 788 | <varlistentry id="nmblookup">
|
---|
| 789 | <term><command>nmblookup</command></term>
|
---|
| 790 | <listitem>
|
---|
| 791 | <para>is used to query NetBIOS names and map
|
---|
| 792 | them to IP addresses.</para>
|
---|
| 793 | <indexterm zone="samba3 nmblookup">
|
---|
| 794 | <primary sortas="b-nmblookup">nmblookup</primary>
|
---|
| 795 | </indexterm>
|
---|
| 796 | </listitem>
|
---|
| 797 | </varlistentry>
|
---|
| 798 |
|
---|
| 799 | <varlistentry id="ntlm_auth">
|
---|
| 800 | <term><command>ntlm_auth</command></term>
|
---|
| 801 | <listitem>
|
---|
| 802 | <para>is a tool to allow external access to Winbind's
|
---|
| 803 | NTLM authentication function.</para>
|
---|
| 804 | <indexterm zone="samba3 ntlm_auth">
|
---|
| 805 | <primary sortas="b-ntlm_auth">ntlm_auth</primary>
|
---|
| 806 | </indexterm>
|
---|
| 807 | </listitem>
|
---|
| 808 | </varlistentry>
|
---|
| 809 |
|
---|
| 810 | <varlistentry id="pdbedit">
|
---|
| 811 | <term><command>pdbedit</command></term>
|
---|
| 812 | <listitem>
|
---|
| 813 | <para>is a tool used to manage the SAM database.</para>
|
---|
| 814 | <indexterm zone="samba3 pdbedit">
|
---|
| 815 | <primary sortas="b-pdbedit">pdbedit</primary>
|
---|
| 816 | </indexterm>
|
---|
| 817 | </listitem>
|
---|
| 818 | </varlistentry>
|
---|
| 819 |
|
---|
| 820 | <varlistentry id="profiles">
|
---|
| 821 | <term><command>profiles</command></term>
|
---|
| 822 | <listitem>
|
---|
| 823 | <para>is a utility that reports and changes SIDs in Windows
|
---|
| 824 | registry files. It currently only supports Windows NT.</para>
|
---|
| 825 | <indexterm zone="samba3 profiles">
|
---|
| 826 | <primary sortas="b-profiles">profiles</primary>
|
---|
| 827 | </indexterm>
|
---|
| 828 | </listitem>
|
---|
| 829 | </varlistentry>
|
---|
| 830 |
|
---|
| 831 | <varlistentry id="rpcclient">
|
---|
| 832 | <term><command>rpcclient</command></term>
|
---|
| 833 | <listitem>
|
---|
| 834 | <para>is used to execute MS-RPC client side functions.</para>
|
---|
| 835 | <indexterm zone="samba3 rpcclient">
|
---|
| 836 | <primary sortas="b-rpcclient">rpcclient</primary>
|
---|
| 837 | </indexterm>
|
---|
| 838 | </listitem>
|
---|
| 839 | </varlistentry>
|
---|
| 840 |
|
---|
[f4c0a45] | 841 | <varlistentry id="sharesec">
|
---|
| 842 | <term><command>sharesec</command></term>
|
---|
| 843 | <listitem>
|
---|
| 844 | <para>manipulates share ACL permissions on SMB file shares.</para>
|
---|
| 845 | <indexterm zone="samba3 sharesec">
|
---|
| 846 | <primary sortas="b-sharesec">sharesec</primary>
|
---|
| 847 | </indexterm>
|
---|
| 848 | </listitem>
|
---|
| 849 | </varlistentry>
|
---|
| 850 |
|
---|
[99ef1fc] | 851 | <varlistentry id="smbcacls">
|
---|
| 852 | <term><command>smbcacls</command></term>
|
---|
| 853 | <listitem>
|
---|
| 854 | <para>is used to manipulate Windows NT access control lists.</para>
|
---|
| 855 | <indexterm zone="samba3 smbcacls">
|
---|
| 856 | <primary sortas="b-smbcacls">smbcacls</primary>
|
---|
| 857 | </indexterm>
|
---|
| 858 | </listitem>
|
---|
| 859 | </varlistentry>
|
---|
| 860 |
|
---|
| 861 | <varlistentry id="smbclient">
|
---|
| 862 | <term><command>smbclient</command></term>
|
---|
| 863 | <listitem>
|
---|
| 864 | <para>is a SMB/CIFS access utility, similar to FTP.</para>
|
---|
| 865 | <indexterm zone="samba3 smbclient">
|
---|
| 866 | <primary sortas="b-smbclient">smbclient</primary>
|
---|
| 867 | </indexterm>
|
---|
| 868 | </listitem>
|
---|
| 869 | </varlistentry>
|
---|
| 870 |
|
---|
| 871 | <varlistentry id="smbcontrol">
|
---|
| 872 | <term><command>smbcontrol</command></term>
|
---|
| 873 | <listitem>
|
---|
| 874 | <para>is used to control running <command>smbd</command>,
|
---|
| 875 | <command>nmbd</command> and <command>winbindd</command>
|
---|
| 876 | daemons.</para>
|
---|
| 877 | <indexterm zone="samba3 smbcontrol">
|
---|
| 878 | <primary sortas="b-smbcontrol">smbcontrol</primary>
|
---|
| 879 | </indexterm>
|
---|
| 880 | </listitem>
|
---|
| 881 | </varlistentry>
|
---|
| 882 |
|
---|
| 883 | <varlistentry id="smbcquotas">
|
---|
| 884 | <term><command>smbcquotas</command></term>
|
---|
| 885 | <listitem>
|
---|
| 886 | <para>is used to manipulate Windows NT quotas on
|
---|
| 887 | SMB file shares.</para>
|
---|
| 888 | <indexterm zone="samba3 smbcquotas">
|
---|
| 889 | <primary sortas="b-smbcquotas">smbcquotas</primary>
|
---|
| 890 | </indexterm>
|
---|
| 891 | </listitem>
|
---|
| 892 | </varlistentry>
|
---|
| 893 |
|
---|
| 894 | <varlistentry id="smbd">
|
---|
| 895 | <term><command>smbd</command></term>
|
---|
| 896 | <listitem>
|
---|
| 897 | <para>is the main <application>Samba</application> daemon which
|
---|
| 898 | provides SMB/CIFS services to clients.</para>
|
---|
| 899 | <indexterm zone="samba3 smbd">
|
---|
| 900 | <primary sortas="b-smbd">smbd</primary>
|
---|
| 901 | </indexterm>
|
---|
| 902 | </listitem>
|
---|
| 903 | </varlistentry>
|
---|
| 904 |
|
---|
[a8ecf657] | 905 | <varlistentry id="smbget">
|
---|
| 906 | <term><command>smbget</command></term>
|
---|
| 907 | <listitem>
|
---|
| 908 | <para>is a simple utility with <command>wget</command>-like
|
---|
| 909 | semantics, that can download files from SMB servers. You can specify
|
---|
| 910 | the files you would like to download on the command-line.</para>
|
---|
| 911 | <indexterm zone="samba3 smbget">
|
---|
| 912 | <primary sortas="b-smbget">smbget</primary>
|
---|
| 913 | </indexterm>
|
---|
| 914 | </listitem>
|
---|
| 915 | </varlistentry>
|
---|
| 916 |
|
---|
[99ef1fc] | 917 | <varlistentry id="smbpasswd">
|
---|
| 918 | <term><command>smbpasswd</command></term>
|
---|
| 919 | <listitem>
|
---|
| 920 | <para>changes a user's <application>Samba</application>
|
---|
| 921 | password.</para>
|
---|
| 922 | <indexterm zone="samba3 smbpasswd">
|
---|
| 923 | <primary sortas="b-smbpasswd">smbpasswd</primary>
|
---|
| 924 | </indexterm>
|
---|
| 925 | </listitem>
|
---|
| 926 | </varlistentry>
|
---|
| 927 |
|
---|
| 928 | <varlistentry id="smbspool">
|
---|
| 929 | <term><command>smbspool</command></term>
|
---|
| 930 | <listitem>
|
---|
| 931 | <para>sends a print job to an SMB printer.</para>
|
---|
| 932 | <indexterm zone="samba3 smbspool">
|
---|
| 933 | <primary sortas="b-smbspool">smbspool</primary>
|
---|
| 934 | </indexterm>
|
---|
| 935 | </listitem>
|
---|
| 936 | </varlistentry>
|
---|
| 937 |
|
---|
| 938 | <varlistentry id="smbstatus">
|
---|
| 939 | <term><command>smbstatus</command></term>
|
---|
| 940 | <listitem>
|
---|
| 941 | <para>reports current <application>Samba</application>
|
---|
| 942 | connections.</para>
|
---|
| 943 | <indexterm zone="samba3 smbstatus">
|
---|
| 944 | <primary sortas="b-smbstatus">smbstatus</primary>
|
---|
| 945 | </indexterm>
|
---|
| 946 | </listitem>
|
---|
| 947 | </varlistentry>
|
---|
| 948 |
|
---|
| 949 | <varlistentry id="smbtar">
|
---|
| 950 | <term><command>smbtar</command></term>
|
---|
| 951 | <listitem>
|
---|
| 952 | <para>is a shell script used for backing up SMB/CIFS shares
|
---|
| 953 | directly to Linux tape drives or a file.</para>
|
---|
| 954 | <indexterm zone="samba3 smbtar">
|
---|
| 955 | <primary sortas="b-smbtar">smbtar</primary>
|
---|
| 956 | </indexterm>
|
---|
| 957 | </listitem>
|
---|
| 958 | </varlistentry>
|
---|
| 959 |
|
---|
| 960 | <varlistentry id="smbtree">
|
---|
| 961 | <term><command>smbtree</command></term>
|
---|
| 962 | <listitem>
|
---|
| 963 | <para>is a text-based SMB network browser.</para>
|
---|
| 964 | <indexterm zone="samba3 smbtree">
|
---|
| 965 | <primary sortas="b-smbtree">smbtree</primary>
|
---|
| 966 | </indexterm>
|
---|
| 967 | </listitem>
|
---|
| 968 | </varlistentry>
|
---|
| 969 |
|
---|
| 970 | <varlistentry id="swat">
|
---|
| 971 | <term><command>swat</command></term>
|
---|
| 972 | <listitem>
|
---|
| 973 | <para>is the <application>Samba</application> Web Administration
|
---|
| 974 | Tool.</para>
|
---|
| 975 | <indexterm zone="samba3 swat">
|
---|
| 976 | <primary sortas="b-swat">swat</primary>
|
---|
| 977 | </indexterm>
|
---|
| 978 | </listitem>
|
---|
| 979 | </varlistentry>
|
---|
| 980 |
|
---|
| 981 | <varlistentry id="tdbbackup">
|
---|
| 982 | <term><command>tdbbackup</command></term>
|
---|
| 983 | <listitem>
|
---|
| 984 | <para>is a tool for backing up or validating the integrity of
|
---|
| 985 | <application>Samba</application> <filename>.tdb</filename>
|
---|
| 986 | files.</para>
|
---|
| 987 | <indexterm zone="samba3 tdbbackup">
|
---|
| 988 | <primary sortas="b-tdbbackup">tdbbackup</primary>
|
---|
| 989 | </indexterm>
|
---|
| 990 | </listitem>
|
---|
| 991 | </varlistentry>
|
---|
| 992 |
|
---|
| 993 | <varlistentry id="tdbdump">
|
---|
| 994 | <term><command>tdbdump</command></term>
|
---|
| 995 | <listitem>
|
---|
| 996 | <para> is a tool used to print the contents of a
|
---|
| 997 | <application>Samba</application> <filename>.tdb</filename>
|
---|
| 998 | file.</para>
|
---|
| 999 | <indexterm zone="samba3 tdbdump">
|
---|
| 1000 | <primary sortas="b-tdbdump">tdbdump</primary>
|
---|
| 1001 | </indexterm>
|
---|
| 1002 | </listitem>
|
---|
| 1003 | </varlistentry>
|
---|
| 1004 |
|
---|
| 1005 | <varlistentry id="tdbtool">
|
---|
| 1006 | <term><command>tdbtool</command></term>
|
---|
| 1007 | <listitem>
|
---|
| 1008 | <para>is a tool which allows simple database manipulation from the
|
---|
| 1009 | command line.</para>
|
---|
| 1010 | <indexterm zone="samba3 tdbtool">
|
---|
| 1011 | <primary sortas="b-tdbtool">tdbtool</primary>
|
---|
| 1012 | </indexterm>
|
---|
| 1013 | </listitem>
|
---|
| 1014 | </varlistentry>
|
---|
| 1015 |
|
---|
| 1016 | <varlistentry id="testparm">
|
---|
| 1017 | <term><command>testparm</command></term>
|
---|
| 1018 | <listitem>
|
---|
| 1019 | <para>checks an <filename>smb.conf</filename> file for proper
|
---|
| 1020 | syntax.</para>
|
---|
| 1021 | <indexterm zone="samba3 testparm">
|
---|
| 1022 | <primary sortas="b-testparm">testparm</primary>
|
---|
| 1023 | </indexterm>
|
---|
| 1024 | </listitem>
|
---|
| 1025 | </varlistentry>
|
---|
| 1026 |
|
---|
| 1027 | <varlistentry id="wbinfo">
|
---|
| 1028 | <term><command>wbinfo</command></term>
|
---|
| 1029 | <listitem>
|
---|
| 1030 | <para>queries a running <command>winbindd</command> daemon.</para>
|
---|
| 1031 | <indexterm zone="samba3 wbinfo">
|
---|
| 1032 | <primary sortas="b-wbinfo">wbinfo</primary>
|
---|
| 1033 | </indexterm>
|
---|
| 1034 | </listitem>
|
---|
| 1035 | </varlistentry>
|
---|
| 1036 |
|
---|
| 1037 | <varlistentry id="winbindd">
|
---|
| 1038 | <term><command>winbindd</command></term>
|
---|
| 1039 | <listitem>
|
---|
| 1040 | <para>resolves names from Windows NT servers.</para>
|
---|
| 1041 | <indexterm zone="samba3 winbindd">
|
---|
| 1042 | <primary sortas="b-winbindd">winbindd</primary>
|
---|
| 1043 | </indexterm>
|
---|
| 1044 | </listitem>
|
---|
| 1045 | </varlistentry>
|
---|
| 1046 |
|
---|
[f4c0a45] | 1047 | <varlistentry id="libnss_winbind">
|
---|
| 1048 | <term><filename class='libraryfile'>libnss_winbind.so</filename></term>
|
---|
| 1049 | <listitem>
|
---|
| 1050 | <para>provides Name Service Switch API functions for resolving names
|
---|
| 1051 | from NT servers.</para>
|
---|
| 1052 | <indexterm zone="samba3 libnss_winbind">
|
---|
| 1053 | <primary sortas="c-libnss_winbind">libnss_winbind.so</primary>
|
---|
| 1054 | </indexterm>
|
---|
| 1055 | </listitem>
|
---|
| 1056 | </varlistentry>
|
---|
| 1057 |
|
---|
| 1058 | <varlistentry id="libnss_wins">
|
---|
| 1059 | <term><filename class='libraryfile'>libnss_wins.so</filename></term>
|
---|
| 1060 | <listitem>
|
---|
| 1061 | <para>provides API functions for Samba's implementation of the
|
---|
| 1062 | Windows Internet Naming Service.</para>
|
---|
| 1063 | <indexterm zone="samba3 libnss_wins">
|
---|
| 1064 | <primary sortas="c-libnss_wins">libnss_wins.so</primary>
|
---|
| 1065 | </indexterm>
|
---|
| 1066 | </listitem>
|
---|
| 1067 | </varlistentry>
|
---|
| 1068 |
|
---|
| 1069 | <varlistentry id="libnetapi">
|
---|
| 1070 | <term><filename class='libraryfile'>libnetapi.so</filename></term>
|
---|
| 1071 | <listitem>
|
---|
| 1072 | <para>provides the API functions for the administration tools used
|
---|
| 1073 | for Samba and remote CIFS servers.</para>
|
---|
| 1074 | <indexterm zone="samba3 libnetapi">
|
---|
| 1075 | <primary sortas="c-libnetapi">libnetapi.so</primary>
|
---|
| 1076 | </indexterm>
|
---|
| 1077 | </listitem>
|
---|
| 1078 | </varlistentry>
|
---|
| 1079 |
|
---|
| 1080 | <varlistentry id="libsmbclient">
|
---|
| 1081 | <term><filename class='libraryfile'>libsmbclient.so</filename></term>
|
---|
| 1082 | <listitem>
|
---|
| 1083 | <para>provides the API functions for the Samba SMB client tools.</para>
|
---|
| 1084 | <indexterm zone="samba3 libsmbclient">
|
---|
| 1085 | <primary sortas="c-libsmbclient">libsmbclient.so</primary>
|
---|
| 1086 | </indexterm>
|
---|
| 1087 | </listitem>
|
---|
| 1088 | </varlistentry>
|
---|
| 1089 |
|
---|
| 1090 | <varlistentry id="libsmbsharemodes">
|
---|
| 1091 | <term><filename class='libraryfile'>libsmbsharemodes.so</filename></term>
|
---|
| 1092 | <listitem>
|
---|
| 1093 | <para>provides API functions for accessing SMB share modes
|
---|
| 1094 | (locks etc.)</para>
|
---|
| 1095 | <indexterm zone="samba3 libsmbsharemodes">
|
---|
| 1096 | <primary sortas="c-libsmbsharemodes">libsmbsharemodes.so</primary>
|
---|
| 1097 | </indexterm>
|
---|
| 1098 | </listitem>
|
---|
| 1099 | </varlistentry>
|
---|
| 1100 |
|
---|
| 1101 | <varlistentry id="libwbclient">
|
---|
| 1102 | <term><filename class='libraryfile'>libwbclient.so</filename></term>
|
---|
| 1103 | <listitem>
|
---|
| 1104 | <para>provides API functions for Windows domain client services.</para>
|
---|
| 1105 | <indexterm zone="samba3 libwbclient">
|
---|
| 1106 | <primary sortas="c-libwbclient">libwbclient.so</primary>
|
---|
| 1107 | </indexterm>
|
---|
| 1108 | </listitem>
|
---|
| 1109 | </varlistentry>
|
---|
| 1110 |
|
---|
[99ef1fc] | 1111 | </variablelist>
|
---|
| 1112 |
|
---|
| 1113 | </sect2>
|
---|
| 1114 |
|
---|
| 1115 | </sect1>
|
---|