1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3
<refentry id="samba.8">
6
<refentrytitle>samba</refentrytitle>
7
<manvolnum>8</manvolnum>
12
<refname>samba</refname>
13
<refpurpose>server to provide filesharing- and directory services to clients</refpurpose>
18
<command>samba</command>
19
<arg choice="opt">-i</arg>
20
<arg choice="opt">-M model</arg>
25
<title>DESCRIPTION</title>
26
<para>This program is part of the <citerefentry><refentrytitle>samba</refentrytitle>
27
<manvolnum>7</manvolnum></citerefentry> suite.</para>
29
<para><command>samba</command> is the server daemon that
30
provides filesharing and directory services to Windows clients.
31
The server provides filespace and directory services to
32
clients using the SMB (or CIFS) protocol and other
33
related protocols such as DCE/RPC, LDAP and Kerberos.
37
Clients supported include MSCLIENT 3.0 for DOS, Windows for
38
Workgroups, Windows 95/98/ME, Windows NT, Windows 2000/XP/2003,
39
OS/2, DAVE for Macintosh, and cifsfs for Linux.</para>
41
<para>An extensive description of the services that the
42
server can provide is given in the man page for the
43
configuration file controlling the attributes of those
44
services (see <citerefentry><refentrytitle>smb.conf</refentrytitle>
45
<manvolnum>5</manvolnum></citerefentry>. This man page will not describe the
46
services, but will concentrate on the administrative aspects
47
of running the server.</para>
49
<para>Please note that there are significant security
50
implications to running this server, and the <citerefentry><refentrytitle>smb.conf</refentrytitle>
51
<manvolnum>5</manvolnum></citerefentry> manual page should be regarded as mandatory reading before
52
proceeding with installation.</para>
54
<para>As of Samba 4, there is a single daemon that incorporates the
55
functionality of both smbd and nmbd that are present in older versions
61
<title>OPTIONS</title>
66
<listitem><para>If this parameter is specified it causes the
67
server to run "interactively", not as a daemon, even if the
68
server is executed on the command line of a shell. Setting this
69
parameter negates the implicit deamon mode when run from the
70
command line. <command>samba</command> also logs to standard
71
output, as if the <command>-S</command> parameter had been
78
<listitem><para>This parameter can be used to specify the
79
"process model" samba should use. This determines
80
how concurrent clients are handled. Available process
81
models include <emphasis>single</emphasis> (everything in
82
a single process), <emphasis>standard</emphasis> (similar
83
behaviour to that of Samba 3), <emphasis>thread</emphasis>
84
(single process, different threads.
95
<term><filename>/etc/rc</filename></term>
96
<listitem><para>or whatever initialization script your
99
<para>If running the server as a daemon at startup,
100
this file will need to contain an appropriate startup
101
sequence for the server. </para></listitem>
105
<term><filename>/etc/services</filename></term>
106
<listitem><para>If running the server via the
107
meta-daemon <command>inetd</command>, this file
108
must contain a mapping of service name (e.g., netbios-ssn)
109
to service port (e.g., 139) and protocol type (e.g., tcp).
114
<term><filename>/usr/local/samba/lib/smb.conf</filename></term>
115
<listitem><para>This is the default location of the <citerefentry><refentrytitle>smb.conf</refentrytitle>
116
<manvolnum>5</manvolnum></citerefentry> server configuration file. Other common places that systems
117
install this file are <filename>/usr/samba/lib/smb.conf</filename>
118
and <filename>/etc/samba/smb.conf</filename>.</para>
120
<para>This file describes all the services the server
121
is to make available to clients. See <citerefentry><refentrytitle>smb.conf</refentrytitle>
122
<manvolnum>5</manvolnum></citerefentry> for more information.</para>
129
<title>VERSION</title>
131
<para>This man page is correct for version 4 of
132
the Samba suite.</para>
136
<title>DIAGNOSTICS</title>
138
<para>Most diagnostics issued by the server are logged
139
in a specified log file. The log file name is specified
140
at compile time, but may be overridden on the command line.</para>
142
<para>The number and nature of diagnostics available depends
143
on the debug level used by the server. If you have problems, set
144
the debug level to 3 and peruse the log files.</para>
146
<para>Most messages are reasonably self-explanatory. Unfortunately,
147
at the time this man page was created, there are too many diagnostics
148
available in the source code to warrant describing each and every
149
diagnostic. At this stage your best bet is still to grep the
150
source code and inspect the conditions that gave rise to the
151
diagnostics you are seeing.</para>
155
<title>SEE ALSO</title>
156
<para><citerefentry><refentrytitle>hosts_access</refentrytitle>
157
<manvolnum>5</manvolnum></citerefentry>
158
<citerefentry><refentrytitle>smb.conf</refentrytitle>
159
<manvolnum>5</manvolnum></citerefentry>, <citerefentry><refentrytitle>smbclient</refentrytitle>
160
<manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>testparm</refentrytitle>
161
<manvolnum>1</manvolnum></citerefentry>, and the
162
Internet RFC's <filename>rfc1001.txt</filename>, <filename>rfc1002.txt</filename>.
163
In addition the CIFS (formerly SMB) specification is available
164
as a link from the Web page <ulink noescape="1" url="http://samba.org/cifs/">
165
http://samba.org/cifs/</ulink>.</para>
169
<title>AUTHOR</title>
171
<para>The original Samba software and related utilities
172
were created by Andrew Tridgell. Samba is now developed
173
by the Samba Team as an Open Source project similar
174
to the way the Linux kernel is developed.</para>