~ubuntu-branches/ubuntu/lucid/samba/lucid-proposed

« back to all changes in this revision

Viewing changes to docs/htmldocs/Samba-HOWTO-Collection/StandAloneServer.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-07-21 17:53:23 UTC
  • mfrom: (0.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050721175323-m3oh6aoigywohfnq
Tags: 3.0.14a-6ubuntu1
Resynchronise with Debian, resolving merge conflicts (#12360)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter�7.�Stand-alone Servers</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.64.1"><link rel="home" href="index.html" title="The Official Samba-3 HOWTO and Reference Guide"><link rel="up" href="type.html" title="Part�II.�Server Configuration Basics"><link rel="previous" href="domain-member.html" title="Chapter�6.�Domain Membership"><link rel="next" href="ClientConfig.html" title="Chapter�8.�MS Windows Network Configuration Guide"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter�7.�Stand-alone Servers</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="domain-member.html">Prev</a>�</td><th width="60%" align="center">Part�II.�Server Configuration Basics</th><td width="20%" align="right">�<a accesskey="n" href="ClientConfig.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="StandAloneServer"></a>Chapter�7.�Stand-alone Servers</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><tt class="email">&lt;<a href="mailto:jht@samba.org">jht@samba.org</a>&gt;</tt></p></div></div></div></div></div><div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="StandAloneServer.html#id2523732">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="StandAloneServer.html#id2523764">Background</a></span></dt><dt><span class="sect1"><a href="StandAloneServer.html#id2523826">Example Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="StandAloneServer.html#RefDocServer">Reference Documentation Server</a></span></dt><dt><span class="sect2"><a href="StandAloneServer.html#SimplePrintServer">Central Print Serving</a></span></dt></dl></dd><dt><span class="sect1"><a href="StandAloneServer.html#id2524567">Common Errors</a></span></dt></dl></div><p>
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter�7.�Stand-alone Servers</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="The Official Samba-3 HOWTO and Reference Guide"><link rel="up" href="type.html" title="Part�II.�Server Configuration Basics"><link rel="prev" href="domain-member.html" title="Chapter�6.�Domain Membership"><link rel="next" href="ClientConfig.html" title="Chapter�8.�MS Windows Network Configuration Guide"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter�7.�Stand-alone Servers</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="domain-member.html">Prev</a>�</td><th width="60%" align="center">Part�II.�Server Configuration Basics</th><td width="20%" align="right">�<a accesskey="n" href="ClientConfig.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="StandAloneServer"></a>Chapter�7.�Stand-alone Servers</h2></div><div><div class="author"><h3 class="author"><span class="firstname">John</span> <span class="othername">H.</span> <span class="surname">Terpstra</span></h3><div class="affiliation"><span class="orgname">Samba Team<br></span><div class="address"><p><tt class="email">&lt;<a href="mailto:jht@samba.org">jht@samba.org</a>&gt;</tt></p></div></div></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="StandAloneServer.html#id2543512">Features and Benefits</a></span></dt><dt><span class="sect1"><a href="StandAloneServer.html#id2543544">Background</a></span></dt><dt><span class="sect1"><a href="StandAloneServer.html#id2543606">Example Configuration</a></span></dt><dd><dl><dt><span class="sect2"><a href="StandAloneServer.html#RefDocServer">Reference Documentation Server</a></span></dt><dt><span class="sect2"><a href="StandAloneServer.html#SimplePrintServer">Central Print Serving</a></span></dt></dl></dd><dt><span class="sect1"><a href="StandAloneServer.html#id2544341">Common Errors</a></span></dt></dl></div><p>
2
2
Stand-alone Servers are independent of Domain Controllers on the network.
3
3
They are not Domain Members and function more like workgroup servers. In many
4
4
cases a Stand-alone Server is configured with a minimum of security control
5
5
with the intent that all data served will be readily accessible to all users.
6
 
</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2523732"></a>Features and Benefits</h2></div></div><div></div></div><p>
 
6
</p><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2543512"></a>Features and Benefits</h2></div></div></div><p>
7
7
Stand-alone Servers can be as secure or as insecure as needs dictate. They can
8
8
have simple or complex configurations. Above all, despite the hoopla about
9
9
Domain Security they remain a common installation.
20
20
to the printers, there is no need to effect any access controls and no files will
21
21
be served from the print server. Again, a share mode Stand-alone Server makes
22
22
a great solution.
23
 
</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2523764"></a>Background</h2></div></div><div></div></div><p>
 
23
</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2543544"></a>Background</h2></div></div></div><p>
24
24
The term <span class="emphasis"><em>Stand-alone Server</em></span> means that it
25
25
will provide local authentication and access control for all resources
26
26
that are available from it. In general this means that there will be a
48
48
(<tt class="filename">/etc/passwd</tt> or <tt class="filename">/etc/shadow</tt>), may use a
49
49
local smbpasswd file, or may use an LDAP backend, or even via PAM and Winbind another CIFS/SMB server
50
50
for authentication.
51
 
</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2523826"></a>Example Configuration</h2></div></div><div></div></div><p>
 
51
</p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2543606"></a>Example Configuration</h2></div></div></div><p>
52
52
The examples, <a href="StandAloneServer.html#simplynice" title="Example�7.1.�smb.conf for Reference Documentation Server">Reference Documentation Server</a>, and 
53
53
<a href="StandAloneServer.html#SimplePrintServer" title="Central Print Serving">Central Print Serving</a>,
54
54
are designed to inspire simplicity. It is too easy to attempt a high level of creativity
55
55
and to introduce too much complexity in server and network design.
56
 
</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="RefDocServer"></a>Reference Documentation Server</h3></div></div><div></div></div><p>
 
56
</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="RefDocServer"></a>Reference Documentation Server</h3></div></div></div><p>
57
57
Configuration of a read-only data server that everyone can access is very simple.
58
58
<a href="StandAloneServer.html#simplynice" title="Example�7.1.�smb.conf for Reference Documentation Server">Following example</a> is the <tt class="filename">smb.conf</tt> file that will do this. Assume that all the reference documents
59
59
are stored in the directory <tt class="filename">/export</tt>, and the documents are owned by a user other than
60
60
nobody. No home directories are shared, and there are no users in the <tt class="filename">/etc/passwd</tt>
61
61
UNIX system database. This is a simple system to administer.
62
 
</p><div class="example"><a name="simplynice"></a><p class="title"><b>Example�7.1.�smb.conf for Reference Documentation Server</b></p><table class="simplelist" border="0" summary="Simple list"><tr><td>#  Global parameters</td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[global]</tt></i></td></tr><tr><td><a class="indexterm" name="id2523926"></a><i class="parameter"><tt>
63
 
                                        
64
 
                                workgroup = MIDEARTH</tt></i></td></tr><tr><td><a class="indexterm" name="id2523942"></a><i class="parameter"><tt>
65
 
                                        
66
 
                                netbios name = GANDALF</tt></i></td></tr><tr><td><a class="indexterm" name="id2523958"></a><i class="parameter"><tt>
67
 
                                        
68
 
                                security = SHARE</tt></i></td></tr><tr><td><a class="indexterm" name="id2523973"></a><i class="parameter"><tt>
69
 
                                        
70
 
                                passdb backend = guest</tt></i></td></tr><tr><td><a class="indexterm" name="id2523989"></a><i class="parameter"><tt>
71
 
                                        
72
 
                                wins server = 192.168.1.1</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[data]</tt></i></td></tr><tr><td><a class="indexterm" name="id2524014"></a><i class="parameter"><tt>
73
 
                                        
74
 
                                comment = Data</tt></i></td></tr><tr><td><a class="indexterm" name="id2524030"></a><i class="parameter"><tt>
75
 
                                        
76
 
                                path = /export</tt></i></td></tr><tr><td><a class="indexterm" name="id2524045"></a><i class="parameter"><tt>
 
62
</p><div class="example"><a name="simplynice"></a><p class="title"><b>Example�7.1.�smb.conf for Reference Documentation Server</b></p><table class="simplelist" border="0" summary="Simple list"><tr><td>#  Global parameters</td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[global]</tt></i></td></tr><tr><td><a class="indexterm" name="id2543706"></a><i class="parameter"><tt>
 
63
                                        
 
64
                                workgroup = MIDEARTH</tt></i></td></tr><tr><td><a class="indexterm" name="id2543721"></a><i class="parameter"><tt>
 
65
                                        
 
66
                                netbios name = GANDALF</tt></i></td></tr><tr><td><a class="indexterm" name="id2543737"></a><i class="parameter"><tt>
 
67
                                        
 
68
                                security = SHARE</tt></i></td></tr><tr><td><a class="indexterm" name="id2543752"></a><i class="parameter"><tt>
 
69
                                        
 
70
                                passdb backend = guest</tt></i></td></tr><tr><td><a class="indexterm" name="id2543768"></a><i class="parameter"><tt>
 
71
                                        
 
72
                                wins server = 192.168.1.1</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[data]</tt></i></td></tr><tr><td><a class="indexterm" name="id2543792"></a><i class="parameter"><tt>
 
73
                                        
 
74
                                comment = Data</tt></i></td></tr><tr><td><a class="indexterm" name="id2543808"></a><i class="parameter"><tt>
 
75
                                        
 
76
                                path = /export</tt></i></td></tr><tr><td><a class="indexterm" name="id2543823"></a><i class="parameter"><tt>
77
77
                                        
78
78
                                guest only = Yes</tt></i></td></tr></table></div><p>
79
79
In <a href="StandAloneServer.html#simplynice" title="Example�7.1.�smb.conf for Reference Documentation Server">the example</a> above, the machine name is set to GANDALF, the workgroup is set to the name
80
80
of the local workgroup (MIDEARTH) so the machine will appear together with systems with
81
81
which users are familiar. The only password backend required is the &#8220;<span class="quote"><span class="emphasis"><em>guest</em></span></span>&#8221; backend to allow default
82
82
unprivileged account names to be used. As there is a WINS server on this network, we of obviously make use of it.
83
 
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="SimplePrintServer"></a>Central Print Serving</h3></div></div><div></div></div><p>
 
83
</p></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="SimplePrintServer"></a>Central Print Serving</h3></div></div></div><p>
84
84
Configuration of a simple print server is easy if you have all the right tools
85
85
on your system.
86
86
</p><div class="orderedlist"><p class="title"><b> Assumptions:</b></p><ol type="1"><li><p>
87
87
        The print server must require no administration.
88
88
        </p></li><li><p>
89
89
        The print spooling and processing system on our print server will be CUPS.
90
 
        (Please refer to <a href="CUPS-printing.html" title="Chapter�19.�CUPS Printing Support">CUPS Printing Support</a> for more information).
 
90
        (Please refer to <a href="CUPS-printing.html" title="Chapter�20.�CUPS Printing Support">CUPS Printing Support</a> for more information).
91
91
        </p></li><li><p>
92
92
        The print server will service only network printers. The network administrator
93
93
        will correctly configure the CUPS environment to support the printers.
121
121
        </p></li></ul></div><p>
122
122
The contents of the <tt class="filename">smb.conf</tt> file is shown in <a href="StandAloneServer.html#AnonPtrSvr" title="Example�7.2.�smb.conf for Anonymous Printing">the next example</a>.
123
123
</p><p>
124
 
</p><div class="example"><a name="AnonPtrSvr"></a><p class="title"><b>Example�7.2.�smb.conf for Anonymous Printing</b></p><table class="simplelist" border="0" summary="Simple list"><tr><td>#  Global parameters</td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[global]</tt></i></td></tr><tr><td><a class="indexterm" name="id2524298"></a><i class="parameter"><tt>
125
 
                                        
126
 
                                workgroup = MIDEARTH</tt></i></td></tr><tr><td><a class="indexterm" name="id2524314"></a><i class="parameter"><tt>
127
 
                                        
128
 
                                netbios name = GANDALF</tt></i></td></tr><tr><td><a class="indexterm" name="id2524330"></a><i class="parameter"><tt>
129
 
                                        
130
 
                                security = SHARE</tt></i></td></tr><tr><td><a class="indexterm" name="id2524345"></a><i class="parameter"><tt>
131
 
                                        
132
 
                                passdb backend = guest</tt></i></td></tr><tr><td><a class="indexterm" name="id2524361"></a><i class="parameter"><tt>
133
 
                                        
134
 
                                printing = cups</tt></i></td></tr><tr><td><a class="indexterm" name="id2524377"></a><i class="parameter"><tt>
135
 
                                        
136
 
                                printcap name = cups</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[printers]</tt></i></td></tr><tr><td><a class="indexterm" name="id2524402"></a><i class="parameter"><tt>
137
 
                                        
138
 
                                comment = All Printers</tt></i></td></tr><tr><td><a class="indexterm" name="id2524417"></a><i class="parameter"><tt>
139
 
                                        
140
 
                                path = /var/spool/samba</tt></i></td></tr><tr><td><a class="indexterm" name="id2524433"></a><i class="parameter"><tt>
141
 
                                        
142
 
                                printer admin = root</tt></i></td></tr><tr><td><a class="indexterm" name="id2524449"></a><i class="parameter"><tt>
143
 
                                        
144
 
                                guest ok = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2524465"></a><i class="parameter"><tt>
145
 
                                        
146
 
                                printable = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2524480"></a><i class="parameter"><tt>
147
 
                                        
148
 
                                use client driver = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2524496"></a><i class="parameter"><tt>
 
124
</p><div class="example"><a name="AnonPtrSvr"></a><p class="title"><b>Example�7.2.�smb.conf for Anonymous Printing</b></p><table class="simplelist" border="0" summary="Simple list"><tr><td>#  Global parameters</td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[global]</tt></i></td></tr><tr><td><a class="indexterm" name="id2544075"></a><i class="parameter"><tt>
 
125
                                        
 
126
                                workgroup = MIDEARTH</tt></i></td></tr><tr><td><a class="indexterm" name="id2544091"></a><i class="parameter"><tt>
 
127
                                        
 
128
                                netbios name = GANDALF</tt></i></td></tr><tr><td><a class="indexterm" name="id2544106"></a><i class="parameter"><tt>
 
129
                                        
 
130
                                security = SHARE</tt></i></td></tr><tr><td><a class="indexterm" name="id2544122"></a><i class="parameter"><tt>
 
131
                                        
 
132
                                passdb backend = guest</tt></i></td></tr><tr><td><a class="indexterm" name="id2544138"></a><i class="parameter"><tt>
 
133
                                        
 
134
                                printing = cups</tt></i></td></tr><tr><td><a class="indexterm" name="id2544153"></a><i class="parameter"><tt>
 
135
                                        
 
136
                                printcap name = cups</tt></i></td></tr><tr><td> </td></tr><tr><td><i class="parameter"><tt>[printers]</tt></i></td></tr><tr><td><a class="indexterm" name="id2544178"></a><i class="parameter"><tt>
 
137
                                        
 
138
                                comment = All Printers</tt></i></td></tr><tr><td><a class="indexterm" name="id2544193"></a><i class="parameter"><tt>
 
139
                                        
 
140
                                path = /var/spool/samba</tt></i></td></tr><tr><td><a class="indexterm" name="id2544208"></a><i class="parameter"><tt>
 
141
                                        
 
142
                                printer admin = root</tt></i></td></tr><tr><td><a class="indexterm" name="id2544224"></a><i class="parameter"><tt>
 
143
                                        
 
144
                                guest ok = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2544240"></a><i class="parameter"><tt>
 
145
                                        
 
146
                                printable = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2544255"></a><i class="parameter"><tt>
 
147
                                        
 
148
                                use client driver = Yes</tt></i></td></tr><tr><td><a class="indexterm" name="id2544270"></a><i class="parameter"><tt>
149
149
                                        
150
150
                                browseable = No</tt></i></td></tr></table></div><p>
151
151
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
152
 
<a class="indexterm" name="id2524516"></a>
153
 
<a class="indexterm" name="id2524525"></a>
 
152
<a class="indexterm" name="id2544290"></a>
 
153
<a class="indexterm" name="id2544299"></a>
154
154
On CUPS-enabled systems there is a facility to pass raw data directly to the printer without
155
155
intermediate processing via CUPS print filters. Where use of this mode of operation is desired,
156
156
it is necessary to configure a raw printing device. It is also necessary to enable the raw mime
157
157
handler in the <tt class="filename">/etc/mime.conv</tt> and <tt class="filename">/etc/mime.types</tt>
158
 
files. Refer to <a href="CUPS-printing.html#cups-raw" title="Explicitly Enable raw Printing for application/octet-stream">Explicitly Enable &#8220;<span class="quote"><span class="emphasis"><em>raw</em></span></span>&#8221; Printing for 
 
158
files. Refer to <a href="CUPS-printing.html#cups-raw" title="Explicitly Enable &#8220;raw&#8221; Printing for application/octet-stream">Explicitly Enable &#8220;<span class="quote"><span class="emphasis"><em>raw</em></span></span>&#8221; Printing for 
159
159
<span class="emphasis"><em>application/octet-stream</em></span></a>.
160
 
</p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2524567"></a>Common Errors</h2></div></div><div></div></div><p>
 
160
</p></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2544341"></a>Common Errors</h2></div></div></div><p>
161
161
The greatest mistake so often made is to make a network configuration too complex.
162
162
It pays to use the simplest solution that will meet the needs of the moment.
163
163
</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="domain-member.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="type.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="ClientConfig.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter�6.�Domain Membership�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�Chapter�8.�MS Windows Network Configuration Guide</td></tr></table></div></body></html>