source: server/other/samba3.xml@ a0f03b0

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a0f03b0 was a0f03b0, checked in by Archaic <archaic@…>, 20 years ago

Inserting sect1info

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2591 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 11.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
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">
9<!ENTITY samba3-size "14.4 MB">
10<!ENTITY samba3-buildsize "123 MB">
11<!ENTITY samba3-time "10.5 SBU">
12
13]>
14
15<sect1 id="samba3" xreflabel="Samba-&samba3-version;">
16<sect1info>
17<othername>$LastChangedBy: $</othername>
18<date>$Date: $</date>
19</sect1info>
20<?dbhtml filename="samba3.html"?>
21<title>Samba-&samba3-version;</title>
22
23<sect2>
24<title>Introduction to <application>Samba</application></title>
25
26<para>The <application>Samba</application> package provides file and print
27services to <acronym>SMB</acronym>/<acronym>CIFS</acronym> clients and
28Windows networking to Linux clients.</para>
29
30<sect3><title>Package information</title>
31<itemizedlist spacing='compact'>
32<listitem><para>Download (HTTP): <ulink url="&samba3-download-http;"/></para></listitem>
33<listitem><para>Download (FTP): <ulink url="&samba3-download-ftp;"/></para></listitem>
34<listitem><para>Download size: &samba3-size;</para></listitem>
35<listitem><para>Estimated Disk space required: &samba3-buildsize;</para></listitem>
36<listitem><para>Estimated build time: &samba3-time;</para></listitem></itemizedlist>
37</sect3>
38
39<sect3><title>Additional downloads</title>
40<itemizedlist spacing='compact'>
41<listitem><para>Maintainer Recommended Patch: <ulink
42url="&patch-root;/samba-&samba3-version;-maintainer-1.patch"/></para></listitem>
43</itemizedlist>
44</sect3>
45
46<sect3>
47<title><application>Samba</application> dependencies</title>
48<sect4>
49<title>Optional</title>
50<para>
51<xref linkend="Linux_PAM"/>,
52<xref linkend="openldap"/>,
53<xref linkend="cups"/>,
54<xref linkend="heimdal"/> or <xref linkend="mitkrb"/>,
55<xref linkend="libxml2"/>,
56<xref linkend="mysql"/> or <xref linkend="postgresql"/>,
57<xref linkend="Python"/>, and
58<ulink url="http://valgrind.kde.org/">Valgrind</ulink>
59</para>
60</sect4>
61</sect3>
62
63</sect2>
64
65<sect2>
66<title>Installation of <application>Samba</application></title>
67
68<para>Install <application>Samba</application> by running the following
69commands:</para>
70
71<screen><userinput><command>patch -Np1 -i ../samba-&samba3-version;-maintainer-1.patch &amp;&amp;
72cd source &amp;&amp;
73install -d /var/cache/samba &amp;&amp;
74./configure \
75 --prefix=/usr \
76 --sysconfdir=/etc \
77 --localstatedir=/var \
78 --with-piddir=/var/run \
79 --with-fhs \
80 --with-smbmount &amp;&amp;
81make &amp;&amp;
82make install &amp;&amp;
83install -m755 nsswitch/libnss_win{s,bind}.so /lib &amp;&amp;
84ln -sf libnss_winbind.so /lib/libnss_winbind.so.2 &amp;&amp;
85ln -sf libnss_wins.so /lib/libnss_wins.so.2 &amp;&amp;
86cp ../examples/smb.conf.default /etc/samba</command></userinput></screen>
87
88<note><para>You may want to run <command>configure</command> with the
89<parameter>--help</parameter> parameter. There may be other parameters
90needed to take advantage of the optional dependencies.</para></note>
91
92</sect2>
93
94<sect2>
95<title>Installation command explanations</title>
96
97<para><command>install -d /var/cache/samba</command>: This directory is
98needed for proper operation of the <command>smbd</command> and
99<command>nmbd</command> daemons.</para>
100
101<para><parameter>--sysconfdir=/etc</parameter>: Sets the configuration
102file directory to avoid the default of <filename class="directory">/usr/etc</filename>.</para>
103
104<para><parameter>--localstatedir=/var</parameter>: Sets the variable
105data directory to avoid the default of <filename class="directory">/usr/var</filename>.</para>
106
107<para><option>--with-fhs</option>: Assigns all other file paths in a manner
108compliant with the Filesystem Hierarchy Standard
109(<acronym>FHS</acronym>).</para>
110
111<para><option>--with-smbmount</option>: Orders the creation of an extra
112binary for use by the <command>mount</command> command so that mounting remote
113<acronym>SMB</acronym> (Windows) shares becomes no more complex than mounting
114remote <acronym>NFS</acronym> shares.</para>
115
116<para><command>install -m755 nsswitch/libnss_win{s,bind}.so /lib</command>:
117The nss libraries are not installed by default. If you intend to use
118winbindd for domain auth, and/or <acronym>WINS</acronym> name resolution,
119you need these libraries.</para>
120
121<para><command>ln -sf libnss_winbind.so /lib/libnss_winbind.so.2</command>
122and <command>ln -sf libnss_wins.so /lib/libnss_wins.so.2</command>:
123These symlinks are required by glibc to use the nss libraries.</para>
124
125<para><command>cp ../examples/smb.conf.default /etc/samba</command>:
126This copies a default <filename>smb.conf </filename>into
127<filename>/etc/samba</filename>. This sample configuration will not
128work unless edited for your site, and renamed
129<filename>smb.conf</filename>.</para>
130
131</sect2>
132
133<sect2>
134<title>Configuring <application>Samba</application></title>
135
136<para>Because of the various uses for <application>Samba</application>,
137complete configuration is well beyond the scope of the BLFS book.
138In fact, many complete books have been written on this topic alone.
139The included documentation, a popular book published by O'Reilly,
140can be viewed by pointing your web browser to
141<ulink url="file:///usr/share/samba/swat/using_samba/toc.html" />.
142</para>
143
144<para>The built in <acronym>SWAT</acronym> (Samba Web Administration Tool)
145utility can be used for basic configuration, however, before
146using <acronym>SWAT</acronym> you must add an entry to
147<filename>/etc/services</filename> and make changes to your
148<command>inetd</command>/<command>xinetd</command>
149configuration.</para>
150
151<para>Add the swat entry to <filename>/etc/services</filename> with the
152following command: </para>
153
154<screen><userinput><command>echo "swat 901/tcp" &gt;&gt; /etc/services</command></userinput></screen>
155
156<para>If <command>inetd</command> is used, the following command will add the
157swat entry to <filename>/etc/inetd.conf</filename>: </para>
158
159<screen><userinput><command>echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
160 &gt;&gt; /etc/inetd.conf</command></userinput></screen>
161<para>Issue a <command>killall -HUP inetd</command> to reread the
162changed <filename>inetd.conf</filename> file.</para>
163
164<para>If <command>xinetd</command> is used, the following command will
165add the swat entry to <filename>/etc/xinetd.conf</filename>: </para>
166
167<screen><userinput><command>cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"</command>
168service swat
169{
170 port = 901
171 socket_type = stream
172 wait = no
173 only_from = 127.0.0.1
174 user = root
175 server = /usr/sbin/swat
176 log_on_failure += USERID
177}
178<command>EOF</command></userinput></screen>
179
180<para>Issue a <command>killall -HUP xinetd</command> to reread the
181changed <filename>xinetd.conf</filename> file.</para>
182
183<para><acronym>SWAT</acronym> can be launched by pointing your web
184browser to <ulink url="http://localhost:901"/>.</para>
185
186<para>For your convenience, boot scripts have been provided for
187<application>Samba</application>. There are two included in the
188<xref linkend="intro-important-bootscripts"/> package. The first,
189<filename>samba</filename>, will start the <command>smbd</command> and
190<command>nmbd</command> daemons needed to provide
191<acronym>SMB</acronym>/<acronym>CIFS</acronym> services. The second
192script, <filename>winbind</filename>, starts the <command>winbindd</command>
193daemon, used for providing Windows domain services to Linux clients.</para>
194
195<para>Install the <filename>samba</filename> script with the following
196command:</para>
197
198<screen><userinput><command>make install-samba</command></userinput></screen>
199
200<para>If you also need the <filename>winbind</filename> script:</para>
201
202<screen><userinput><command>make install-winbind</command></userinput></screen>
203
204</sect2>
205
206<sect2>
207<title>Contents</title>
208
209<para>The <application>Samba</application> package contains
210<command>make_smbcodepage</command>,
211<command>make_unicodemap</command>,
212<command>mount.smbfs</command>,
213<command>net</command>,
214<command>nmbd</command>,
215<command>nmblookup</command>,
216<command>rpcclient</command>,
217<command>smbcacls</command>,
218<command>smbclient</command>,
219<command>smbcontrol</command>,
220<command>smbd</command>,
221<command>smbpasswd</command>,
222<command>smbspool</command>,
223<command>smbstatus</command>,
224<command>swat</command>,
225<command>testparm</command>,
226<command>testprns</command>,
227<command>wbinfo</command> and
228<command>winbindd.</command></para></sect2>
229
230<sect2>
231<title>Description</title>
232<sect3><title>make_smbcodepage</title>
233<para><command>make_smbcodepage</command> converts text descriptions of code
234pages to binary code page files and vice versa.</para></sect3>
235<sect3><title>make_unicodemap</title>
236<para><command>make_unicodemap</command> converts text Unicode map files to
237binary, for use in mapping characters to 16 bit Unicode.</para></sect3>
238<sect3><title>mount.smbfs</title>
239<para><command>mount.smbfs</command> provides <command>/bin/mount</command>
240with a way to mount remote Windows (or Samba) fileshares.</para></sect3>
241<sect3><title>net</title>
242<para><command>net</command> is a tool for administration of Samba and remote
243CIFS servers, similar to the net utility for DOS/Windows.</para></sect3>
244<sect3><title>nmbd</title>
245<para><command>nmbd</command> is the Samba Net<acronym>BIOS</acronym> name
246server.</para></sect3>
247<sect3><title>nmblookup</title>
248<para><command>nmblookup</command> is used to query
249Net<acronym>BIOS</acronym> names and map them to <acronym>IP</acronym>
250addresses.</para></sect3>
251<sect3><title>rpcclient</title>
252<para><command>rpcclient</command> is used to execute
253MS-<acronym>RPC</acronym> client side functions.</para></sect3>
254<sect3><title>smbcacls</title>
255<para><command>smbcacls</command> is used to manipulate NT access control
256lists.</para></sect3>
257<sect3><title>smbclient</title>
258<para><command>smbclient</command> is a <acronym>SMB</acronym>/<acronym>CIFS
259</acronym> access utility, similar to <acronym>FTP</acronym>.</para></sect3>
260<sect3><title>smbcontrol</title>
261<para><command>smbcontrol</command> is used to control running <command>smbd</command>,
262<command>nmbd</command> and <command>winbindd</command>
263daemons.</para></sect3>
264<sect3><title>smbd</title>
265<para><command>smbd</command> is the main
266<application>Samba</application> daemon.</para></sect3>
267<sect3><title>smbpasswd</title>
268<para><command>smbpasswd</command> changes a user's <application>Samba
269</application> password.</para></sect3>
270<sect3><title>smbspool</title>
271<para><command>smbspool</command> sends a print job to an <acronym>SMB
272</acronym> printer.</para></sect3>
273<sect3><title>smbstatus</title>
274<para><command>smbstatus</command> reports current
275<application>Samba</application> connections.</para></sect3>
276<sect3><title>swat</title>
277<para><command>swat</command> is the Samba Web Administration Tool.</para>
278</sect3>
279<sect3><title>testparm</title>
280<para><command>testparm</command> checks an <filename>smb.conf</filename> file
281for proper syntax.</para></sect3>
282<sect3><title>testprns</title>
283<para><command>testprns</command> tests printer names.</para></sect3>
284<sect3><title>wbinfo</title>
285<para><command>wbinfo</command> queries a running <command>winbindd</command>
286daemon.</para></sect3>
287<sect3><title>winbindd</title>
288<para><command>winbindd</command> resolves names from NT servers.</para></sect3>
289</sect2>
290
291</sect1>
292
Note: See TracBrowser for help on using the repository browser.