[0931098] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[0931098] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY samba3-download-http "http://us1.samba.org/samba/ftp/samba-&samba3-version;.tar.gz">
|
---|
| 8 | <!ENTITY samba3-download-ftp "ftp://ftp.samba.org/pub/samba/samba-&samba3-version;.tar.gz">
|
---|
[9a61f3c4] | 9 | <!ENTITY samba3-md5sum "ebee37e66a8b5f6fd328967dc09088e8">
|
---|
| 10 | <!ENTITY samba3-size "15.6 MB">
|
---|
| 11 | <!ENTITY samba3-buildsize "147 MB">
|
---|
| 12 | <!ENTITY samba3-time "2.21 SBU">
|
---|
[0931098] | 13 | ]>
|
---|
| 14 |
|
---|
[736ede9] | 15 | <sect1 id="samba3" xreflabel="Samba-&samba3-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[736ede9] | 20 | <?dbhtml filename="samba3.html"?>
|
---|
| 21 | <title>Samba-&samba3-version;</title>
|
---|
[38b41c2] | 22 | <indexterm zone="samba3">
|
---|
| 23 | <primary sortas="a-Samba">Samba</primary></indexterm>
|
---|
[736ede9] | 24 |
|
---|
[0931098] | 25 | <sect2>
|
---|
| 26 | <title>Introduction to <application>Samba</application></title>
|
---|
| 27 |
|
---|
| 28 | <para>The <application>Samba</application> package provides file and print
|
---|
| 29 | services to <acronym>SMB</acronym>/<acronym>CIFS</acronym> clients and
|
---|
[2bfe939] | 30 | Windows networking to Linux clients. <application>Samba</application> can also
|
---|
| 31 | be configured as a Windows NT 4.0 Domain Controller replacement
|
---|
| 32 | (with caveats working with NT <acronym>PDC</acronym>'s and
|
---|
| 33 | <acronym>BDC</acronym>'s), a file/print server acting as a member of a
|
---|
| 34 | Windows NT 4.0 or Active Directory domain and a NetBIOS (rfc1001/1002)
|
---|
| 35 | nameserver (which amongst other things provides
|
---|
| 36 | <acronym>LAN</acronym> browsing support).</para>
|
---|
[0931098] | 37 |
|
---|
| 38 | <sect3><title>Package information</title>
|
---|
| 39 | <itemizedlist spacing='compact'>
|
---|
[1986ade] | 40 | <listitem><para>Download (HTTP):
|
---|
| 41 | <ulink url="&samba3-download-http;"/></para></listitem>
|
---|
| 42 | <listitem><para>Download (FTP):
|
---|
| 43 | <ulink url="&samba3-download-ftp;"/></para></listitem>
|
---|
[0fbab6b] | 44 | <listitem><para>Download MD5 sum:
|
---|
| 45 | &samba3-md5sum;</para></listitem>
|
---|
[1986ade] | 46 | <listitem><para>Download size:
|
---|
| 47 | &samba3-size;</para></listitem>
|
---|
| 48 | <listitem><para>Estimated disk space required:
|
---|
| 49 | &samba3-buildsize;</para></listitem>
|
---|
| 50 | <listitem><para>Estimated build time:
|
---|
| 51 | &samba3-time;</para></listitem></itemizedlist>
|
---|
[0931098] | 52 | </sect3>
|
---|
| 53 |
|
---|
| 54 | <sect3>
|
---|
| 55 | <title><application>Samba</application> dependencies</title>
|
---|
| 56 | <sect4>
|
---|
| 57 | <title>Optional</title>
|
---|
[2bfe939] | 58 | <para><xref linkend="popt"/>,
|
---|
[0931098] | 59 | <xref linkend="Linux_PAM"/>,
|
---|
| 60 | <xref linkend="openldap"/>,
|
---|
| 61 | <xref linkend="cups"/>,
|
---|
| 62 | <xref linkend="heimdal"/> or <xref linkend="mitkrb"/>,
|
---|
| 63 | <xref linkend="libxml2"/>,
|
---|
| 64 | <xref linkend="mysql"/> or <xref linkend="postgresql"/>,
|
---|
[775c349a] | 65 | <xref linkend="python"/>,
|
---|
[2bfe939] | 66 | <xref linkend="xinetd"/>,
|
---|
| 67 | <ulink url="http://valgrind.kde.org/">Valgrind</ulink> and
|
---|
[0b5a693] | 68 | <xref linkend="stunnel"/> (used to encrypt access to SWAT)</para>
|
---|
[0931098] | 69 | </sect4>
|
---|
| 70 | </sect3>
|
---|
| 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2>
|
---|
| 75 | <title>Installation of <application>Samba</application></title>
|
---|
| 76 |
|
---|
| 77 | <para>Install <application>Samba</application> by running the following
|
---|
| 78 | commands:</para>
|
---|
| 79 |
|
---|
[2bfe939] | 80 | <screen><userinput><command>cd source &&
|
---|
[0931098] | 81 | ./configure \
|
---|
| 82 | --prefix=/usr \
|
---|
| 83 | --sysconfdir=/etc \
|
---|
| 84 | --localstatedir=/var \
|
---|
| 85 | --with-piddir=/var/run \
|
---|
| 86 | --with-fhs \
|
---|
| 87 | --with-smbmount &&
|
---|
[38b41c2] | 88 | make</command></userinput></screen>
|
---|
| 89 |
|
---|
| 90 | <para>Now, as the root user:</para>
|
---|
| 91 |
|
---|
[b5d1d872] | 92 | <screen><userinput role='root'><command>install -v -m755 -d /var/cache/samba &&
|
---|
| 93 | make install &&
|
---|
| 94 | mv -v /usr/lib/samba/libsmbclient.so /usr/lib &&
|
---|
| 95 | ln -v -sf ../libsmbclient.so /usr/lib/samba &&
|
---|
| 96 | chmod -v 644 /usr/include/libsmbclient.h &&
|
---|
| 97 | install -v -m755 nsswitch/libnss_win{s,bind}.so /lib &&
|
---|
| 98 | ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2 &&
|
---|
| 99 | ln -v -sf libnss_wins.so /lib/libnss_wins.so.2 &&
|
---|
[2bfe939] | 100 | if [ -f nsswitch/pam_winbind.so ]; then
|
---|
[b5d1d872] | 101 | install -v -m755 nsswitch/pam_winbind.so /lib/security
|
---|
| 102 | fi &&
|
---|
| 103 | install -v -m644 ../examples/smb.conf.default /etc/samba &&
|
---|
| 104 | install -v -m644 ../docs/*.pdf /usr/share/samba</command></userinput></screen>
|
---|
[0931098] | 105 |
|
---|
| 106 | <note><para>You may want to run <command>configure</command> with the
|
---|
| 107 | <parameter>--help</parameter> parameter. There may be other parameters
|
---|
| 108 | needed to take advantage of the optional dependencies.</para></note>
|
---|
| 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2>
|
---|
[2bfe939] | 113 | <title>Command explanations</title>
|
---|
[0931098] | 114 |
|
---|
| 115 | <para><parameter>--sysconfdir=/etc</parameter>: Sets the configuration
|
---|
[2bfe939] | 116 | file directory to avoid the default of
|
---|
| 117 | <filename class="directory">/usr/etc</filename>.</para>
|
---|
[0931098] | 118 |
|
---|
| 119 | <para><parameter>--localstatedir=/var</parameter>: Sets the variable
|
---|
[2bfe939] | 120 | data directory to avoid the default of
|
---|
| 121 | <filename class="directory">/usr/var</filename>.</para>
|
---|
[0931098] | 122 |
|
---|
| 123 | <para><option>--with-fhs</option>: Assigns all other file paths in a manner
|
---|
| 124 | compliant with the Filesystem Hierarchy Standard
|
---|
| 125 | (<acronym>FHS</acronym>).</para>
|
---|
| 126 |
|
---|
| 127 | <para><option>--with-smbmount</option>: Orders the creation of an extra
|
---|
| 128 | binary for use by the <command>mount</command> command so that mounting remote
|
---|
| 129 | <acronym>SMB</acronym> (Windows) shares becomes no more complex than mounting
|
---|
| 130 | remote <acronym>NFS</acronym> shares.</para>
|
---|
| 131 |
|
---|
[2bfe939] | 132 | <para><option>--with-pam</option>: Use this parameter to link
|
---|
| 133 | <application>Linux-<acronym>PAM</acronym></application> into the build. This
|
---|
| 134 | also builds the <filename class='libraryfile'>pam_winbind.so</filename>
|
---|
| 135 | <application><acronym>PAM</acronym></application> module. You can find
|
---|
| 136 | instructions on how to configure and use the module by running
|
---|
| 137 | <command>man winbindd</command>.</para>
|
---|
| 138 |
|
---|
[b5d1d872] | 139 | <para><command>install -v -d /var/cache/samba</command>: This directory is
|
---|
| 140 | needed for proper operation of the <command>smbd</command> and
|
---|
| 141 | <command>nmbd</command> daemons.</para>
|
---|
| 142 |
|
---|
| 143 | <para><command>mv -v /usr/lib/samba/libsmbclient.so ...; ln -v -sf
|
---|
[1986ade] | 144 | ../libsmbclient.so ...</command>: The
|
---|
| 145 | <filename class='libraryfile'>libsmbclient.so</filename> library is needed
|
---|
| 146 | by other packages. This command moves it to a location where other packages
|
---|
| 147 | can find it.</para>
|
---|
| 148 |
|
---|
[b5d1d872] | 149 | <para><command>install -v -m755 nsswitch/libnss_win{s,bind}.so /lib</command>:
|
---|
[0931098] | 150 | The nss libraries are not installed by default. If you intend to use
|
---|
| 151 | winbindd for domain auth, and/or <acronym>WINS</acronym> name resolution,
|
---|
| 152 | you need these libraries.</para>
|
---|
| 153 |
|
---|
[b5d1d872] | 154 | <para><command>ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2</command>
|
---|
[9a61f3c4] | 155 | and <command>ln -v -sf libnss_wins.so /lib/libnss_wins.so.2</command>:
|
---|
[b5d1d872] | 156 | These symlinks are required by glibc to use the <acronym>NSS</acronym>
|
---|
| 157 | libraries.</para>
|
---|
[0931098] | 158 |
|
---|
[b5d1d872] | 159 | <para><command>install -v -m644 ../examples/smb.conf.default
|
---|
| 160 | /etc/samba</command>: This copies a default <filename>smb.conf</filename> into
|
---|
[0931098] | 161 | <filename>/etc/samba</filename>. This sample configuration will not
|
---|
| 162 | work unless edited for your site, and renamed
|
---|
| 163 | <filename>smb.conf</filename>.</para>
|
---|
| 164 |
|
---|
| 165 | </sect2>
|
---|
| 166 |
|
---|
| 167 | <sect2>
|
---|
| 168 | <title>Configuring <application>Samba</application></title>
|
---|
| 169 |
|
---|
[38b41c2] | 170 | <sect3 id="samba3-config"><title>Config files</title>
|
---|
| 171 | <para>/etc/samba/smb.conf</para>
|
---|
| 172 | <indexterm zone="samba3 samba3-config">
|
---|
| 173 | <primary sortas="e-etc-samba-smb.conf">/etc/samba/smb.conf</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </sect3>
|
---|
| 176 |
|
---|
[2bfe939] | 177 | <sect3><title>Configuration overview and available documentation</title>
|
---|
| 178 |
|
---|
| 179 | <para>Due to the complexity and the many various uses for
|
---|
| 180 | <application>Samba</application>, complete configuration is well beyond the
|
---|
[38b41c2] | 181 | scope of the <acronym>BLFS</acronym> book. Advanced configurations including
|
---|
| 182 | setting up Primary and Backup Domain Controllers are advanced topics and
|
---|
| 183 | cannot be adequately covered in <acronym>BLFS</acronym> (it should be noted,
|
---|
| 184 | however, that a <application>Samba</application> <acronym>BDC</acronym> cannot
|
---|
| 185 | be used as a fallback for a
|
---|
[2bfe939] | 186 | <application>Windows</application> <acronym>PDC</acronym>, and conversely, a
|
---|
| 187 | <application>Windows</application> <acronym>BDC</acronym> cannot be used as a
|
---|
| 188 | fallback for a <application>Samba</application> <acronym>PDC</acronym>). Many
|
---|
| 189 | complete books have been written on these topics alone.</para>
|
---|
| 190 |
|
---|
| 191 | <para>There is quite a bit of documentation available which covers many of
|
---|
| 192 | these advanced configurations. Point your web browser to the links below to
|
---|
| 193 | view some of the documentation included with the
|
---|
| 194 | <application>Samba</application> package:</para>
|
---|
| 195 |
|
---|
| 196 | <itemizedlist spacing='compact'>
|
---|
| 197 | <listitem><para>Using Samba, 2nd Edition; a popular book published by O'Reilly
|
---|
| 198 | <ulink url="file:///usr/share/samba/swat/using_samba/toc.html"/></para>
|
---|
| 199 | </listitem>
|
---|
| 200 |
|
---|
[0fbab6b] | 201 | <listitem><para>The Official Samba HOWTO and Reference Guide <ulink
|
---|
| 202 | url="file:///usr/share/samba/swat/help/Samba-HOWTO-Collection/index.html"/>
|
---|
| 203 | </para>
|
---|
[2bfe939] | 204 | </listitem>
|
---|
| 205 |
|
---|
| 206 | <listitem><para>Samba-3 by Example
|
---|
| 207 | <ulink url="file:///usr/share/samba/swat/help/Samba-Guide/index.html"/></para>
|
---|
| 208 | </listitem>
|
---|
| 209 |
|
---|
| 210 | <listitem><para>The Samba-3 man Pages
|
---|
| 211 | <ulink url="file:///usr/share/samba/swat/help/samba.7.html"/></para>
|
---|
| 212 | </listitem>
|
---|
| 213 | </itemizedlist>
|
---|
| 214 | </sect3>
|
---|
| 215 |
|
---|
[8f2d9b04] | 216 | <sect3 id="samba3-swat-config"><title>Configuring SWAT</title>
|
---|
[2bfe939] | 217 |
|
---|
| 218 | <para>The built in <acronym>SWAT</acronym>
|
---|
| 219 | (<application>Samba</application> Web Administration Tool) utility can be used
|
---|
| 220 | for basic configuration of the <application>Samba</application> installation,
|
---|
| 221 | but because it may be inconvenient, undesireable or perhaps even impossible
|
---|
[b5d1d872] | 222 | to gain access to the console, <acronym>BLFS</acronym> recommends setting up
|
---|
| 223 | access to <acronym>SWAT</acronym> using
|
---|
| 224 | <application>Stunnel</application>.</para>
|
---|
[38b41c2] | 225 | <indexterm zone="samba3 samba3-swat-config">
|
---|
| 226 | <primary sortas="g-SWAT">SWAT</primary></indexterm>
|
---|
[2bfe939] | 227 |
|
---|
| 228 | <para>First you must add entries to <filename>/etc/services</filename> and
|
---|
| 229 | modify the <command>inetd</command>/<command>xinetd</command>
|
---|
[0931098] | 230 | configuration.</para>
|
---|
[2a3fc53] | 231 |
|
---|
[38b41c2] | 232 | <indexterm zone="samba3 samba3-swat-config">
|
---|
[2a3fc53] | 233 | <primary sortas="e-etc-services">/etc/services</primary>
|
---|
| 234 | </indexterm>
|
---|
| 235 |
|
---|
[38b41c2] | 236 | <indexterm zone="samba3 samba3-swat-config">
|
---|
[2a3fc53] | 237 | <primary sortas="e-etc-inetd.conf">/etc/inetd.conf</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 |
|
---|
[38b41c2] | 240 | <indexterm zone="samba3 samba3-swat-config">
|
---|
[2a3fc53] | 241 | <primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary>
|
---|
| 242 | </indexterm>
|
---|
[0931098] | 243 |
|
---|
[2bfe939] | 244 | <para>Add swat and swat_tunnel entries to
|
---|
[38b41c2] | 245 | <filename>/etc/services</filename> with the following commands issued as the
|
---|
| 246 | root user:</para>
|
---|
[0931098] | 247 |
|
---|
[38b41c2] | 248 | <screen><userinput role='root'><command>echo "swat 901/tcp" >> /etc/services &&
|
---|
[2bfe939] | 249 | echo "swat_tunnel 902/tcp" >> /etc/services</command></userinput></screen>
|
---|
[0931098] | 250 |
|
---|
| 251 | <para>If <command>inetd</command> is used, the following command will add the
|
---|
[b5d1d872] | 252 | swat_tunnel entry to <filename>/etc/inetd.conf</filename> (as user
|
---|
| 253 | root):</para>
|
---|
[0931098] | 254 |
|
---|
[38b41c2] | 255 | <screen><userinput role='root'><command>echo "swat_tunnel stream tcp nowait.400 root /usr/sbin/swat swat" \
|
---|
[0931098] | 256 | >> /etc/inetd.conf</command></userinput></screen>
|
---|
| 257 | <para>Issue a <command>killall -HUP inetd</command> to reread the
|
---|
| 258 | changed <filename>inetd.conf</filename> file.</para>
|
---|
| 259 |
|
---|
[b5d1d872] | 260 | <para>If you use <command>xinetd</command>, the following command will create
|
---|
| 261 | the <application>Samba</application> file as
|
---|
| 262 | <filename>/etc/xinetd.d/swat_tunnel</filename> (you may need to modify or
|
---|
| 263 | remove the <quote>only_from</quote> line to include the desired
|
---|
| 264 | host[s]):</para>
|
---|
[0931098] | 265 |
|
---|
[1f672c1] | 266 | <screen><userinput role='root'><command>cat >> /etc/xinetd.d/swat_tunnel << "EOF"</command>
|
---|
| 267 | # Begin /etc/xinetd.d/swat_tunnel
|
---|
| 268 |
|
---|
[2bfe939] | 269 | service swat_tunnel
|
---|
[0931098] | 270 | {
|
---|
[2bfe939] | 271 | port = 902
|
---|
[0931098] | 272 | socket_type = stream
|
---|
| 273 | wait = no
|
---|
| 274 | only_from = 127.0.0.1
|
---|
| 275 | user = root
|
---|
| 276 | server = /usr/sbin/swat
|
---|
| 277 | log_on_failure += USERID
|
---|
| 278 | }
|
---|
[1f672c1] | 279 |
|
---|
| 280 | # End /etc/xinetd.d/swat_tunnel
|
---|
[0931098] | 281 | <command>EOF</command></userinput></screen>
|
---|
| 282 |
|
---|
[2a3fc53] | 283 | <indexterm zone="samba3 samba3-swat-config">
|
---|
| 284 | <primary sortas="e-etc-xinetd.d-swat-tunnel">/etc/xinetd.d/swat_tunnel</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 |
|
---|
[0931098] | 287 | <para>Issue a <command>killall -HUP xinetd</command> to reread the
|
---|
| 288 | changed <filename>xinetd.conf</filename> file.</para>
|
---|
| 289 |
|
---|
[2bfe939] | 290 | <para>Next, you must add an entry for the swat service to the
|
---|
[38b41c2] | 291 | <filename>/etc/stunnel/stunnel.conf</filename> file (as user root):</para>
|
---|
[2a3fc53] | 292 |
|
---|
| 293 | <indexterm zone="samba3 samba3-swat-config">
|
---|
| 294 | <primary sortas="e-etc-stunnel-stunnel.conf">/etc/stunnel/stunnel.conf</primary>
|
---|
[38b41c2] | 295 | </indexterm>
|
---|
[2bfe939] | 296 |
|
---|
[38b41c2] | 297 | <screen><userinput role='root'><command>cat >> /etc/stunnel/stunnel.conf << "EOF"</command>
|
---|
[2bfe939] | 298 | [swat]
|
---|
| 299 | accept = 901
|
---|
| 300 | connect = 902
|
---|
| 301 |
|
---|
| 302 | <command>EOF</command></userinput></screen>
|
---|
| 303 |
|
---|
| 304 | <para>Restart the <command>stunnel</command> daemon using the following
|
---|
[38b41c2] | 305 | command as the root user:</para>
|
---|
[2bfe939] | 306 |
|
---|
[38b41c2] | 307 | <screen><userinput role='root'><command>/etc/rc.d/init.d/stunnel restart</command></userinput></screen>
|
---|
[2bfe939] | 308 |
|
---|
| 309 | <para><acronym>SWAT</acronym> can be launched by pointing your web browser to
|
---|
| 310 | <userinput>https://<replaceable>[CA_DN_field]</replaceable>:901</userinput>.
|
---|
| 311 | Substitute the hostname listed in the <acronym>DN</acronym> field of the
|
---|
| 312 | <acronym>CA</acronym> certificate used with
|
---|
| 313 | <application>Stunnel</application> for
|
---|
| 314 | <replaceable>[CA_DN_field]</replaceable>.</para>
|
---|
| 315 |
|
---|
| 316 | <note><para>If you linked
|
---|
| 317 | <application>Linux-<acronym>PAM</acronym></application> into the
|
---|
| 318 | <application>Samba</application> build, you'll need to create an
|
---|
| 319 | <filename>/etc/pam.d/samba</filename> file.</para></note>
|
---|
[2a3fc53] | 320 |
|
---|
| 321 | <indexterm zone="samba3 samba3-swat-config">
|
---|
| 322 | <primary sortas="e-etc-pam.d-samba">/etc/pam.d/samba</primary>
|
---|
[38b41c2] | 323 | </indexterm>
|
---|
[2a3fc53] | 324 |
|
---|
[2bfe939] | 325 | </sect3>
|
---|
| 326 |
|
---|
| 327 | <sect3><title>Printing to <acronym>SMB</acronym> clients</title>
|
---|
| 328 |
|
---|
| 329 | <para>If you use <application><acronym>CUPS</acronym></application> for print
|
---|
| 330 | services, and you wish to print to a printer attached to an
|
---|
| 331 | <acronym>SMB</acronym> client, you need to create an <acronym>SMB</acronym>
|
---|
[38b41c2] | 332 | backend device. To create the device, issue the following command as the
|
---|
| 333 | root user:</para>
|
---|
[2bfe939] | 334 |
|
---|
[b5d1d872] | 335 | <screen><userinput><command>ln -v -sf /usr/bin/smbspool /usr/lib/cups/backend/smb</command></userinput></screen>
|
---|
[2bfe939] | 336 | </sect3>
|
---|
| 337 |
|
---|
[38b41c2] | 338 | <sect3 id="samba3-init"><title>Installing bootscripts</title>
|
---|
[0931098] | 339 |
|
---|
| 340 | <para>For your convenience, boot scripts have been provided for
|
---|
| 341 | <application>Samba</application>. There are two included in the
|
---|
| 342 | <xref linkend="intro-important-bootscripts"/> package. The first,
|
---|
| 343 | <filename>samba</filename>, will start the <command>smbd</command> and
|
---|
| 344 | <command>nmbd</command> daemons needed to provide
|
---|
| 345 | <acronym>SMB</acronym>/<acronym>CIFS</acronym> services. The second
|
---|
| 346 | script, <filename>winbind</filename>, starts the <command>winbindd</command>
|
---|
| 347 | daemon, used for providing Windows domain services to Linux clients.</para>
|
---|
[2a3fc53] | 348 |
|
---|
[38b41c2] | 349 | <indexterm zone="samba3 samba3-init">
|
---|
[2a3fc53] | 350 | <primary sortas="f-samba">samba</primary>
|
---|
| 351 | </indexterm>
|
---|
| 352 |
|
---|
[38b41c2] | 353 | <indexterm zone="samba3 samba3-init">
|
---|
[2a3fc53] | 354 | <primary sortas="f-winbind">winbind</primary>
|
---|
| 355 | </indexterm>
|
---|
[0931098] | 356 |
|
---|
| 357 | <para>Install the <filename>samba</filename> script with the following
|
---|
[38b41c2] | 358 | command issued as the root user:</para>
|
---|
[0931098] | 359 |
|
---|
[38b41c2] | 360 | <screen><userinput role='root'><command>make install-samba</command></userinput></screen>
|
---|
[0931098] | 361 |
|
---|
| 362 | <para>If you also need the <filename>winbind</filename> script:</para>
|
---|
| 363 |
|
---|
[38b41c2] | 364 | <screen><userinput role='root'><command>make install-winbind</command></userinput></screen>
|
---|
[2bfe939] | 365 | </sect3>
|
---|
[0931098] | 366 |
|
---|
| 367 | </sect2>
|
---|
| 368 |
|
---|
| 369 | <sect2>
|
---|
| 370 | <title>Contents</title>
|
---|
| 371 |
|
---|
[38b41c2] | 372 | <segmentedlist>
|
---|
| 373 | <segtitle>Installed Programs</segtitle>
|
---|
| 374 | <segtitle>Installed Libraries</segtitle>
|
---|
| 375 | <segtitle>Installed Directories</segtitle>
|
---|
| 376 |
|
---|
| 377 | <seglistitem>
|
---|
| 378 | <seg>findsmb, mount.smbfs, net, nmbd, nmblookup, ntlm_auth, pdbedit, profiles,
|
---|
| 379 | rpcclient, smbcacls, smbclient, smbcontrol, smbcquotas, smbd, smbmnt,
|
---|
| 380 | smbmount, smbpasswd, smbspool, smbstatus, smbtar, smbtree, smbumount, swat,
|
---|
| 381 | tdbbackup, tdbdump, tdbtool, testparm, testprns, wbinfo and winbindd</seg>
|
---|
[b5d1d872] | 382 | <seg>libnss_winbind.so, libnss_wins.so, libsmbclient.so, the
|
---|
[38b41c2] | 383 | pam_winbind.so <acronym>PAM</acronym> library and assorted character set,
|
---|
| 384 | filesystem and support modules.</seg>
|
---|
| 385 | <seg>/etc/samba, /usr/lib/samba, /usr/share/samba, /var/cache/samba and
|
---|
| 386 | /var/lib/samba</seg>
|
---|
| 387 | </seglistitem>
|
---|
| 388 | </segmentedlist>
|
---|
| 389 |
|
---|
| 390 | <variablelist>
|
---|
| 391 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 392 | <?dbfo list-presentation="list"?>
|
---|
| 393 |
|
---|
| 394 | <varlistentry id="findsmb">
|
---|
| 395 | <term><command>findsmb</command></term>
|
---|
| 396 | <listitem><para>lists information about machines that respond to
|
---|
| 397 | <acronym>SMB</acronym> name queries on a subnet.</para>
|
---|
| 398 | <indexterm zone="samba3 findsmb">
|
---|
| 399 | <primary sortas="b-findsmb">findsmb</primary>
|
---|
| 400 | </indexterm></listitem>
|
---|
| 401 | </varlistentry>
|
---|
| 402 |
|
---|
| 403 | <varlistentry id="mount.smbfs">
|
---|
| 404 | <term><command>mount.smbfs</command></term>
|
---|
| 405 | <listitem><para>is a symlink to <command>mountsmb</command> which provides
|
---|
| 406 | <command>/bin/mount</command> with a way to mount remote Windows (or
|
---|
| 407 | <application>Samba</application>) fileshares.</para>
|
---|
| 408 | <indexterm zone="samba3 mount.smbfs">
|
---|
| 409 | <primary sortas="b-mount.smbfs">mount.smbfs</primary>
|
---|
| 410 | </indexterm></listitem>
|
---|
| 411 | </varlistentry>
|
---|
| 412 |
|
---|
| 413 | <varlistentry id="net">
|
---|
| 414 | <term><command>net</command></term>
|
---|
| 415 | <listitem><para>is a tool for administration of
|
---|
| 416 | <application>Samba</application> and remote <acronym>CIFS</acronym> servers,
|
---|
| 417 | similar to the <command>net</command> utility for
|
---|
| 418 | <acronym>DOS</acronym>/Windows.</para>
|
---|
| 419 | <indexterm zone="samba3 net">
|
---|
| 420 | <primary sortas="b-net">net</primary>
|
---|
| 421 | </indexterm></listitem>
|
---|
| 422 | </varlistentry>
|
---|
| 423 |
|
---|
| 424 | <varlistentry id="nmbd">
|
---|
| 425 | <term><command>nmbd</command></term>
|
---|
| 426 | <listitem><para>is the <application>Samba</application>
|
---|
| 427 | Net<acronym>BIOS</acronym> name server.</para>
|
---|
| 428 | <indexterm zone="samba3 nmbd">
|
---|
| 429 | <primary sortas="b-nmbd">nmbd</primary>
|
---|
| 430 | </indexterm></listitem>
|
---|
| 431 | </varlistentry>
|
---|
| 432 |
|
---|
| 433 | <varlistentry id="nmblookup">
|
---|
| 434 | <term><command>nmblookup</command></term>
|
---|
| 435 | <listitem><para>is used to query Net<acronym>BIOS</acronym> names and map
|
---|
| 436 | them to <acronym>IP</acronym> addresses.</para>
|
---|
| 437 | <indexterm zone="samba3 nmblookup">
|
---|
| 438 | <primary sortas="b-nmblookup">nmblookup</primary>
|
---|
| 439 | </indexterm></listitem>
|
---|
| 440 | </varlistentry>
|
---|
| 441 |
|
---|
| 442 | <varlistentry id="ntlm_auth">
|
---|
| 443 | <term><command>ntlm_auth</command></term>
|
---|
| 444 | <listitem><para>is a tool to allow external access to Winbind's
|
---|
| 445 | <acronym>NTLM</acronym> authentication function.</para>
|
---|
| 446 | <indexterm zone="samba3 ntlm_auth">
|
---|
| 447 | <primary sortas="b-ntlm_auth">ntlm_auth</primary>
|
---|
| 448 | </indexterm></listitem>
|
---|
| 449 | </varlistentry>
|
---|
| 450 |
|
---|
| 451 | <varlistentry id="pdbedit">
|
---|
| 452 | <term><command>pdbedit</command></term>
|
---|
| 453 | <listitem><para>is a tool used to manage the <acronym>SAM</acronym>
|
---|
| 454 | database.</para>
|
---|
| 455 | <indexterm zone="samba3 pdbedit">
|
---|
| 456 | <primary sortas="b-pdbedit">pdbedit</primary>
|
---|
| 457 | </indexterm></listitem>
|
---|
| 458 | </varlistentry>
|
---|
| 459 |
|
---|
| 460 | <varlistentry id="profiles">
|
---|
| 461 | <term><command>profiles</command></term>
|
---|
| 462 | <listitem><para>is a utility that reports and changes <acronym>SID</acronym>s
|
---|
| 463 | in Windows registry files. It currently only supports Windows NT.</para>
|
---|
| 464 | <indexterm zone="samba3 profiles">
|
---|
| 465 | <primary sortas="b-profiles">profiles</primary>
|
---|
| 466 | </indexterm></listitem>
|
---|
| 467 | </varlistentry>
|
---|
| 468 |
|
---|
| 469 | <varlistentry id="rpcclient">
|
---|
| 470 | <term><command>rpcclient</command></term>
|
---|
| 471 | <listitem><para>is used to execute MS-<acronym>RPC</acronym> client side
|
---|
| 472 | functions.</para>
|
---|
| 473 | <indexterm zone="samba3 rpcclient">
|
---|
| 474 | <primary sortas="b-rpcclient">rpcclient</primary>
|
---|
| 475 | </indexterm></listitem>
|
---|
| 476 | </varlistentry>
|
---|
| 477 |
|
---|
| 478 | <varlistentry id="smbcacls">
|
---|
| 479 | <term><command>smbcacls</command></term>
|
---|
| 480 | <listitem><para>is used to manipulate Windows NT access control lists.</para>
|
---|
| 481 | <indexterm zone="samba3 smbcacls">
|
---|
| 482 | <primary sortas="b-smbcacls">smbcacls</primary>
|
---|
| 483 | </indexterm></listitem>
|
---|
| 484 | </varlistentry>
|
---|
| 485 |
|
---|
| 486 | <varlistentry id="smbclient">
|
---|
| 487 | <term><command>smbclient</command></term>
|
---|
| 488 | <listitem><para>is a <acronym>SMB</acronym>/<acronym>CIFS</acronym> access
|
---|
| 489 | utility, similar to <acronym>FTP</acronym>.</para>
|
---|
| 490 | <indexterm zone="samba3 smbclient">
|
---|
| 491 | <primary sortas="b-smbclient">smbclient</primary>
|
---|
| 492 | </indexterm></listitem>
|
---|
| 493 | </varlistentry>
|
---|
| 494 |
|
---|
| 495 | <varlistentry id="smbcontrol">
|
---|
| 496 | <term><command>smbcontrol</command></term>
|
---|
| 497 | <listitem><para>is used to control running <command>smbd</command>,
|
---|
| 498 | <command>nmbd</command> and <command>winbindd</command> daemons.</para>
|
---|
| 499 | <indexterm zone="samba3 smbcontrol">
|
---|
| 500 | <primary sortas="b-smbcontrol">smbcontrol</primary>
|
---|
| 501 | </indexterm></listitem>
|
---|
| 502 | </varlistentry>
|
---|
| 503 |
|
---|
| 504 | <varlistentry id="smbcquotas">
|
---|
| 505 | <term><command>smbcquotas</command></term>
|
---|
| 506 | <listitem><para>is used to manipulate Windows NT quotas on
|
---|
| 507 | <acronym>SMB</acronym> file shares.</para>
|
---|
| 508 | <indexterm zone="samba3 smbcquotas">
|
---|
| 509 | <primary sortas="b-smbcquotas">smbcquotas</primary>
|
---|
| 510 | </indexterm></listitem>
|
---|
| 511 | </varlistentry>
|
---|
| 512 |
|
---|
| 513 | <varlistentry id="smbd">
|
---|
| 514 | <term><command>smbd</command></term>
|
---|
| 515 | <listitem><para>is the main <application>Samba</application> daemon which
|
---|
| 516 | provides <acronym>SMB</acronym>/<acronym>CIFS</acronym> services to
|
---|
| 517 | clients.</para>
|
---|
| 518 | <indexterm zone="samba3 smbd">
|
---|
| 519 | <primary sortas="b-smbd">smbd</primary>
|
---|
| 520 | </indexterm></listitem>
|
---|
| 521 | </varlistentry>
|
---|
| 522 |
|
---|
| 523 | <varlistentry id="smbmnt">
|
---|
| 524 | <term><command>smbmnt</command></term>
|
---|
| 525 | <listitem><para>is a helper application used by the
|
---|
| 526 | <command>smbmount</command> program to do the actual mounting of
|
---|
| 527 | <acronym>SMB</acronym> shares. It can be installed setuid root if you want
|
---|
| 528 | normal users to be able to mount their <acronym>SMB</acronym> shares.</para>
|
---|
| 529 | <indexterm zone="samba3 smbmnt">
|
---|
| 530 | <primary sortas="b-smbmnt">smbmnt</primary>
|
---|
| 531 | </indexterm></listitem>
|
---|
| 532 | </varlistentry>
|
---|
| 533 |
|
---|
| 534 | <varlistentry id="smbmount">
|
---|
| 535 | <term><command>smbmount</command></term>
|
---|
| 536 | <listitem><para>is usually invoked as <command>mount.smbfs</command> by the
|
---|
| 537 | <command>mount</command> command when using the
|
---|
| 538 | <parameter>-t smbfs</parameter> option, mounts a Linux <acronym>SMB</acronym>
|
---|
| 539 | filesystem.</para>
|
---|
| 540 | <indexterm zone="samba3 smbmount">
|
---|
| 541 | <primary sortas="b-smbmount">smbmount</primary>
|
---|
| 542 | </indexterm></listitem>
|
---|
| 543 | </varlistentry>
|
---|
| 544 |
|
---|
| 545 | <varlistentry id="smbpasswd">
|
---|
| 546 | <term><command>smbpasswd</command></term>
|
---|
| 547 | <listitem><para>changes a user's <application>Samba</application>
|
---|
| 548 | password.</para>
|
---|
| 549 | <indexterm zone="samba3 smbpasswd">
|
---|
| 550 | <primary sortas="b-smbpasswd">smbpasswd</primary>
|
---|
| 551 | </indexterm></listitem>
|
---|
| 552 | </varlistentry>
|
---|
| 553 |
|
---|
| 554 | <varlistentry id="smbspool">
|
---|
| 555 | <term><command>smbspool</command></term>
|
---|
| 556 | <listitem><para>sends a print job to an <acronym>SMB</acronym> printer.</para>
|
---|
| 557 | <indexterm zone="samba3 smbspool">
|
---|
| 558 | <primary sortas="b-smbspool">smbspool</primary>
|
---|
| 559 | </indexterm></listitem>
|
---|
| 560 | </varlistentry>
|
---|
| 561 |
|
---|
| 562 | <varlistentry id="smbstatus">
|
---|
| 563 | <term><command>smbstatus</command></term>
|
---|
| 564 | <listitem><para>reports current <application>Samba</application>
|
---|
| 565 | connections.</para>
|
---|
| 566 | <indexterm zone="samba3 smbstatus">
|
---|
| 567 | <primary sortas="b-smbstatus">smbstatus</primary>
|
---|
| 568 | </indexterm></listitem>
|
---|
| 569 | </varlistentry>
|
---|
| 570 |
|
---|
| 571 | <varlistentry id="smbtar">
|
---|
| 572 | <term><command>smbtar</command></term>
|
---|
| 573 | <listitem><para>is a shell script used for backing up
|
---|
[2bfe939] | 574 | <acronym>SMB</acronym>/<acronym>CIFS</acronym> shares directly to Linux tape
|
---|
[38b41c2] | 575 | drives or a file.</para>
|
---|
| 576 | <indexterm zone="samba3 smbtar">
|
---|
| 577 | <primary sortas="b-smbtar">smbtar</primary>
|
---|
| 578 | </indexterm></listitem>
|
---|
| 579 | </varlistentry>
|
---|
| 580 |
|
---|
| 581 | <varlistentry id="smbtree">
|
---|
| 582 | <term><command>smbtree</command></term>
|
---|
| 583 | <listitem><para>is a text-based <acronym>SMB</acronym> network browser.</para>
|
---|
| 584 | <indexterm zone="samba3 smbtree">
|
---|
| 585 | <primary sortas="b-smbtree">smbtree</primary>
|
---|
| 586 | </indexterm></listitem>
|
---|
| 587 | </varlistentry>
|
---|
| 588 |
|
---|
| 589 | <varlistentry id="smbumount">
|
---|
| 590 | <term><command>smbumount</command></term>
|
---|
| 591 | <listitem><para>is used by normal users to unmount <acronym>SMB</acronym>
|
---|
| 592 | filesystems, provided that it is setuid root.</para>
|
---|
| 593 | <indexterm zone="samba3 smbumount">
|
---|
| 594 | <primary sortas="b-smbumount">smbumount</primary>
|
---|
| 595 | </indexterm></listitem>
|
---|
| 596 | </varlistentry>
|
---|
| 597 |
|
---|
| 598 | <varlistentry id="swat">
|
---|
| 599 | <term><command>swat</command></term>
|
---|
| 600 | <listitem><para>is the <application>Samba</application> Web Administration
|
---|
| 601 | Tool.</para>
|
---|
| 602 | <indexterm zone="samba3 swat">
|
---|
| 603 | <primary sortas="b-swat">swat</primary>
|
---|
| 604 | </indexterm></listitem>
|
---|
| 605 | </varlistentry>
|
---|
| 606 |
|
---|
| 607 | <varlistentry id="tdbbackup">
|
---|
| 608 | <term><command>tdbbackup</command></term>
|
---|
| 609 | <listitem><para>is a tool for backing up or validating the integrity of
|
---|
| 610 | <application>Samba</application> <filename>.tdb</filename> files.</para>
|
---|
| 611 | <indexterm zone="samba3 tdbbackup">
|
---|
| 612 | <primary sortas="b-tdbbackup">tdbbackup</primary>
|
---|
| 613 | </indexterm></listitem>
|
---|
| 614 | </varlistentry>
|
---|
| 615 |
|
---|
| 616 | <varlistentry id="tdbdump">
|
---|
| 617 | <term><command>tdbdump</command></term>
|
---|
| 618 | <listitem><para> is a tool used to print the contents of a
|
---|
| 619 | <application>Samba</application> <filename>.tdb</filename> file.</para>
|
---|
| 620 | <indexterm zone="samba3 tdbdump">
|
---|
| 621 | <primary sortas="b-tdbdump">tdbdump</primary>
|
---|
| 622 | </indexterm></listitem>
|
---|
| 623 | </varlistentry>
|
---|
| 624 |
|
---|
| 625 | <varlistentry id="tdbtool">
|
---|
| 626 | <term><command>tdbtool</command></term>
|
---|
| 627 | <listitem><para>is a tool which allows simple database manipulation from the
|
---|
| 628 | command line.</para>
|
---|
| 629 | <indexterm zone="samba3 tdbtool">
|
---|
| 630 | <primary sortas="b-tdbtool">tdbtool</primary>
|
---|
| 631 | </indexterm></listitem>
|
---|
| 632 | </varlistentry>
|
---|
| 633 |
|
---|
| 634 | <varlistentry id="testparm">
|
---|
| 635 | <term><command>testparm</command></term>
|
---|
| 636 | <listitem><para>checks an <filename>smb.conf</filename> file for proper
|
---|
| 637 | syntax.</para>
|
---|
| 638 | <indexterm zone="samba3 testparm">
|
---|
| 639 | <primary sortas="b-testparm">testparm</primary>
|
---|
| 640 | </indexterm></listitem>
|
---|
| 641 | </varlistentry>
|
---|
| 642 |
|
---|
| 643 | <varlistentry id="testprns">
|
---|
| 644 | <term><command>testprns</command></term>
|
---|
| 645 | <listitem><para>tests printer names.</para>
|
---|
| 646 | <indexterm zone="samba3 testprns">
|
---|
| 647 | <primary sortas="b-testprns">testprns</primary>
|
---|
| 648 | </indexterm></listitem>
|
---|
| 649 | </varlistentry>
|
---|
| 650 |
|
---|
| 651 | <varlistentry id="wbinfo">
|
---|
| 652 | <term><command>wbinfo</command></term>
|
---|
| 653 | <listitem><para>queries a running <command>winbindd</command> daemon.</para>
|
---|
| 654 | <indexterm zone="samba3 wbinfo">
|
---|
| 655 | <primary sortas="b-wbinfo">wbinfo</primary>
|
---|
| 656 | </indexterm></listitem>
|
---|
| 657 | </varlistentry>
|
---|
| 658 |
|
---|
| 659 | <varlistentry id="winbindd">
|
---|
| 660 | <term><command>winbindd</command></term>
|
---|
| 661 | <listitem><para>resolves names from Windows NT servers.</para>
|
---|
| 662 | <indexterm zone="samba3 winbindd">
|
---|
| 663 | <primary sortas="b-winbindd">winbindd</primary>
|
---|
| 664 | </indexterm></listitem>
|
---|
| 665 | </varlistentry>
|
---|
| 666 | </variablelist>
|
---|
[2bfe939] | 667 |
|
---|
[0931098] | 668 | </sect2>
|
---|
[736ede9] | 669 |
|
---|
| 670 | </sect1>
|
---|
| 671 |
|
---|