source: server/other/samba3.xml@ 4ca92e2c

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 4ca92e2c was 4ca92e2c, checked in by Igor Živković <igor@…>, 20 years ago

Removed readline and all references in packages' dependencies, passed switches for readline support where it's not on by default.

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

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