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