28
28
interesting business growth and development plan. Abmas Video Rentals was recently acquired.
29
29
During the time that the acquisition was closing, the Video Rentals business upgraded its Windows
30
30
NT4-based network to Windows 2003 Server and Active Directory.
31
</p><p><a class="indexterm" name="id2610675"></a>
31
</p><p><a class="indexterm" name="id2616734"></a>
32
32
You have accepted the fact that Abmas Video Rentals will use Microsoft Active Directory.
33
33
The IT team, led by Stan Soroka, is committed to Samba-3 and to maintaining a uniform technology platform.
34
34
Stan Soroka's team voiced its disapproval over the decision to permit this business to continue to
35
operate with a solution that is viewed by Christine and her group as “<span class="quote">an island of broken
36
technologies.</span>” This comment was made by one of Christine's staff as they were installing a new
35
operate with a solution that is viewed by Christine and her group as <span class="quote">“<span class="quote">an island of broken
36
technologies.</span>”</span> This comment was made by one of Christine's staff as they were installing a new
37
37
Samba-3 server at the new business.
38
</p><p><a class="indexterm" name="id2610699"></a><a class="indexterm" name="id2610707"></a>
38
</p><p><a class="indexterm" name="id2616757"></a><a class="indexterm" name="id2616765"></a>
39
39
Abmas Video Rentals' head of IT heard of this criticism. He was offended that a junior engineer
40
40
should make such a comment. He felt that he had to prepare in case he might be criticized for his
41
41
decision to use Active Directory. He decided he would defend his decision by hiring the services
42
of an outside security systems consultant to report<sup>[<a name="id2610722" href="#ftn.id2610722" class="footnote">12</a>]</sup> on his unit's operations
42
of an outside security systems consultant to report<sup>[<a name="id2616780" href="#ftn.id2616780" class="footnote">12</a>]</sup> on his unit's operations
43
43
and to investigate the role of Samba at his site. Here are key extracts from this hypothetical
45
</p><div class="blockquote"><blockquote class="blockquote"><p><a class="indexterm" name="id2610732"></a><a class="indexterm" name="id2610740"></a><a class="indexterm" name="id2610748"></a><a class="indexterm" name="id2610756"></a>
45
</p><div class="blockquote"><blockquote class="blockquote"><p><a class="indexterm" name="id2616791"></a><a class="indexterm" name="id2616799"></a><a class="indexterm" name="id2616807"></a><a class="indexterm" name="id2616814"></a>
46
46
... the implementation of Microsoft Active Directory at the Abmas Video Rentals, Bamingsham site,
47
47
has been examined. We find no evidence to support a notion that vulnerabilities exist at your site.
48
48
... we took additional steps to validate the integrity of the installation and operation of Active
49
49
Directory and are pleased that your staff are following sound practices.
52
</p><p><a class="indexterm" name="id2610777"></a><a class="indexterm" name="id2610788"></a><a class="indexterm" name="id2610800"></a><a class="indexterm" name="id2610808"></a><a class="indexterm" name="id2610816"></a><a class="indexterm" name="id2610824"></a>
52
</p><p><a class="indexterm" name="id2616836"></a><a class="indexterm" name="id2616847"></a><a class="indexterm" name="id2616858"></a><a class="indexterm" name="id2616866"></a><a class="indexterm" name="id2616874"></a><a class="indexterm" name="id2616882"></a>
53
53
User and group accounts, and respective privileges, have been well thought out. File system shares are
54
54
appropriately secured. Backup and disaster recovery plans are well managed and validated regularly, and
55
55
effective off-site storage practices are considered to exceed industry norms.
56
</p><p><a class="indexterm" name="id2610840"></a><a class="indexterm" name="id2610848"></a><a class="indexterm" name="id2610855"></a>
56
</p><p><a class="indexterm" name="id2616898"></a><a class="indexterm" name="id2616906"></a><a class="indexterm" name="id2616914"></a>
57
57
Your staff are justifiably concerned that the use of Samba may compromise their good efforts to maintain
59
</p><p><a class="indexterm" name="id2610872"></a><a class="indexterm" name="id2610880"></a><a class="indexterm" name="id2610888"></a><a class="indexterm" name="id2610896"></a>
59
</p><p><a class="indexterm" name="id2616931"></a><a class="indexterm" name="id2616939"></a><a class="indexterm" name="id2616946"></a><a class="indexterm" name="id2616954"></a>
60
60
The recently installed Linux file and application server uses a tool called <code class="literal">winbind</code>
61
61
that is indiscriminate about security. All user accounts in Active Directory can be used to access data
62
62
stored on the Linux system. We are alarmed that secure information is accessible to staff who should
63
63
not even be aware that it exists. We share the concerns of your network management staff who have gone
64
64
to great lengths to set fine-grained controls that limit information access to those who need access.
65
65
It seems incongruous to us that Samba winbind should be permitted to be used considering that it voids this fine work.
66
</p><p><a class="indexterm" name="id2610936"></a><a class="indexterm" name="id2610944"></a><a class="indexterm" name="id2610951"></a>
66
</p><p><a class="indexterm" name="id2616994"></a><a class="indexterm" name="id2617002"></a><a class="indexterm" name="id2617010"></a>
67
67
Graham Judd [head of network administration] has locked down the security of all systems and is following
68
68
the latest Microsoft guidelines. ... null session connections have been disabled ... the internal network
69
69
is isolated from the outside world, the [product name removed] firewall is under current contract
100
100
I also wish to advise that two of the recent recruits want to implement Kerberos authentication
101
101
across all systems. I concur with the desire to improve security. One of the new guys who is championing
102
102
the move to Kerberos was responsible for the comment that caused the embarrassment.
103
</p><p><a class="indexterm" name="id2611161"></a><a class="indexterm" name="id2611169"></a><a class="indexterm" name="id2611177"></a><a class="indexterm" name="id2611185"></a>
103
</p><p><a class="indexterm" name="id2617219"></a><a class="indexterm" name="id2617227"></a><a class="indexterm" name="id2617235"></a><a class="indexterm" name="id2617243"></a>
104
104
I am experiencing difficulty in handling the sharp push for Kerberos. He claims that Kerberos, OpenLDAP,
105
105
plus Samba-3 will seamlessly replace Microsoft Active Directory. I am a little out of my depth with respect
106
106
to the feasibility of such a move, but have taken steps to pull both of them into line. With your consent,
107
107
I would like to hire the services of a well-known Samba consultant to set the record straight.
108
</p><p><a class="indexterm" name="id2611203"></a><a class="indexterm" name="id2611211"></a><a class="indexterm" name="id2611219"></a><a class="indexterm" name="id2611227"></a><a class="indexterm" name="id2611235"></a><a class="indexterm" name="id2611242"></a>
108
</p><p><a class="indexterm" name="id2617261"></a><a class="indexterm" name="id2617269"></a><a class="indexterm" name="id2617277"></a><a class="indexterm" name="id2617285"></a><a class="indexterm" name="id2617293"></a><a class="indexterm" name="id2617301"></a>
109
109
I intend to use this report to answer the criticism raised and would like to establish a policy that we
110
110
will approve the use of Microsoft Windows Servers (and Active Directory) subject to all costs being covered
111
111
out of the budget of the division that wishes to go its own way. I propose that dissenters will still remain
112
112
responsible to meet the budgeted contribution to IT operations as a whole. I believe we should not coerce
113
113
use of any centrally proposed standards, but make all noncompliance the financial responsibility of the
114
114
out-of-step division. Hopefully, this will encourage all divisions to walk with us and not alone.
115
</p></td><td width="10%" valign="top">�</td></tr><tr><td width="10%" valign="top">�</td><td colspan="2" align="right" valign="top">--<span class="attribution">Stan</span></td></tr></table></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2611264"></a>Assignment Tasks</h3></div></div></div><p>
115
</p></td><td width="10%" valign="top">�</td></tr><tr><td width="10%" valign="top">�</td><td colspan="2" align="right" valign="top">--<span class="attribution">Stan</span></td></tr></table></div><div class="sect2" title="Assignment Tasks"><div class="titlepage"><div><div><h3 class="title"><a name="id2617322"></a>Assignment Tasks</h3></div></div></div><p>
116
116
You agreed with Stan's recommendations and hired a consultant to help defuse the powder
117
117
keg. The consultant's task is to provide a tractable answer to each of the issues raised. The consultant must be able
118
118
to support his or her claims, keep emotions to the side, and answer technically.
119
</p></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2611280"></a>Dissection and Discussion</h2></div></div></div><p><a class="indexterm" name="id2611287"></a><a class="indexterm" name="id2611294"></a><a class="indexterm" name="id2611302"></a><a class="indexterm" name="id2611310"></a><a class="indexterm" name="id2611318"></a><a class="indexterm" name="id2611326"></a><a class="indexterm" name="id2611334"></a>
119
</p></div></div><div class="sect1" title="Dissection and Discussion"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2617338"></a>Dissection and Discussion</h2></div></div></div><p><a class="indexterm" name="id2617345"></a><a class="indexterm" name="id2617353"></a><a class="indexterm" name="id2617361"></a><a class="indexterm" name="id2617369"></a><a class="indexterm" name="id2617377"></a><a class="indexterm" name="id2617385"></a><a class="indexterm" name="id2617392"></a>
120
120
Samba-3 is a tool. No one is pounding your door to make you use Samba. That is a choice that you are free to
121
121
make or reject. It is likely that your decision to use Samba can greatly benefit your company.
122
122
The Samba Team obviously believes that the Samba software is a worthy choice.
143
143
extent of liability that is accepted. Doing so soon dispels the popular notion that
144
144
commercial software vendors are willingly accountable for product defects. In many cases, the
145
145
commercial vendor accepts liability only to reimburse the price paid for the software.
146
</p><p><a class="indexterm" name="id2611553"></a><a class="indexterm" name="id2611561"></a><a class="indexterm" name="id2611569"></a><a class="indexterm" name="id2611577"></a><a class="indexterm" name="id2611585"></a><a class="indexterm" name="id2611592"></a>
146
</p><p><a class="indexterm" name="id2617611"></a><a class="indexterm" name="id2617619"></a><a class="indexterm" name="id2617627"></a><a class="indexterm" name="id2617635"></a><a class="indexterm" name="id2617643"></a><a class="indexterm" name="id2617651"></a>
147
147
The real issues that a consumer (like you) needs answered are What is the way of escape from technical
148
148
problems, and how long will it take? The average problem turnaround time in the Open Source community is
149
149
approximately 48 hours. What does the EULA offer? What is the track record in the commercial software
150
150
industry? What happens when your commercial vendor decides to cease providing support?
151
</p><p><a class="indexterm" name="id2611617"></a><a class="indexterm" name="id2611625"></a><a class="indexterm" name="id2611633"></a><a class="indexterm" name="id2611641"></a><a class="indexterm" name="id2611649"></a><a class="indexterm" name="id2611657"></a><a class="indexterm" name="id2611664"></a>
151
</p><p><a class="indexterm" name="id2617676"></a><a class="indexterm" name="id2617684"></a><a class="indexterm" name="id2617692"></a><a class="indexterm" name="id2617699"></a><a class="indexterm" name="id2617707"></a><a class="indexterm" name="id2617715"></a><a class="indexterm" name="id2617723"></a>
152
152
Open Source software at least puts you in possession of the source code. This means that when
153
153
all else fails, you can hire a programmer to solve the problem.
154
</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2611677"></a>Technical Issues</h3></div></div></div><p>
154
</p><div class="sect2" title="Technical Issues"><div class="titlepage"><div><div><h3 class="title"><a name="id2617736"></a>Technical Issues</h3></div></div></div><p>
155
155
Each issue is now discussed and, where appropriate, example implementation steps are
157
</p><div class="variablelist"><dl><dt><span class="term">Winbind and Security</span></dt><dd><p><a class="indexterm" name="id2611698"></a><a class="indexterm" name="id2611706"></a><a class="indexterm" name="id2611714"></a><a class="indexterm" name="id2611725"></a><a class="indexterm" name="id2611733"></a><a class="indexterm" name="id2611741"></a><a class="indexterm" name="id2611749"></a><a class="indexterm" name="id2611757"></a><a class="indexterm" name="id2611765"></a><a class="indexterm" name="id2611773"></a>
157
</p><div class="variablelist"><dl><dt><span class="term">Winbind and Security</span></dt><dd><p><a class="indexterm" name="id2617756"></a><a class="indexterm" name="id2617764"></a><a class="indexterm" name="id2617772"></a><a class="indexterm" name="id2617784"></a><a class="indexterm" name="id2617792"></a><a class="indexterm" name="id2617800"></a><a class="indexterm" name="id2617808"></a><a class="indexterm" name="id2617816"></a><a class="indexterm" name="id2617824"></a><a class="indexterm" name="id2617832"></a>
158
158
Windows network administrators may be dismayed to find that <code class="literal">winbind</code>
159
159
exposes all domain users so that they may use their domain account credentials to
160
160
log on to a UNIX/Linux system. The fact that all users in the domain can see the
161
161
UNIX/Linux server in their Network Neighborhood and can browse the shares on the
162
162
server seems to excite them further.
163
</p><p><a class="indexterm" name="id2611797"></a><a class="indexterm" name="id2611805"></a><a class="indexterm" name="id2611813"></a><a class="indexterm" name="id2611820"></a>
163
</p><p><a class="indexterm" name="id2617855"></a><a class="indexterm" name="id2617863"></a><a class="indexterm" name="id2617871"></a><a class="indexterm" name="id2617879"></a>
164
164
<code class="literal">winbind</code> provides for the UNIX/Linux domain member server or
165
165
client, the same as one would obtain by adding a Microsoft Windows server or
166
166
client to the domain. The real objection is the fact that Samba is not MS Windows
167
167
and therefore requires handling a little differently from the familiar Windows systems.
168
168
One must recognize fear of the unknown.
169
</p><p><a class="indexterm" name="id2611843"></a><a class="indexterm" name="id2611852"></a><a class="indexterm" name="id2611859"></a><a class="indexterm" name="id2611867"></a><a class="indexterm" name="id2611875"></a><a class="indexterm" name="id2611887"></a>
169
</p><p><a class="indexterm" name="id2617902"></a><a class="indexterm" name="id2617910"></a><a class="indexterm" name="id2617918"></a><a class="indexterm" name="id2617926"></a><a class="indexterm" name="id2617934"></a><a class="indexterm" name="id2617945"></a>
170
170
Windows network administrators need to recognize that <code class="literal">winbind</code> does
171
171
not, and cannot, override account controls set using the Active Directory management
172
172
tools. The control is the same. Have no fear.
173
</p><p><a class="indexterm" name="id2611907"></a><a class="indexterm" name="id2611915"></a><a class="indexterm" name="id2611926"></a><a class="indexterm" name="id2611934"></a><a class="indexterm" name="id2611942"></a><a class="indexterm" name="id2611950"></a><a class="indexterm" name="id2611958"></a><a class="indexterm" name="id2611966"></a><a class="indexterm" name="id2611974"></a><a class="indexterm" name="id2611982"></a>
173
</p><p><a class="indexterm" name="id2617966"></a><a class="indexterm" name="id2617974"></a><a class="indexterm" name="id2617985"></a><a class="indexterm" name="id2617993"></a><a class="indexterm" name="id2618001"></a><a class="indexterm" name="id2618009"></a><a class="indexterm" name="id2618016"></a><a class="indexterm" name="id2618024"></a><a class="indexterm" name="id2618032"></a><a class="indexterm" name="id2618040"></a>
174
174
Where Samba and the ADS domain account information obtained through the use of
175
175
<code class="literal">winbind</code> permits access, by browsing or by the drive mapping to
176
176
a share, to data that should be better protected. This can only happen when security
177
177
controls have not been properly implemented. Samba permits access controls to be set
179
</p><div class="itemizedlist"><ul type="disc"><li><p>Shares themselves (i.e., the logical share itself)</p></li><li><p>The share definition in <code class="filename">smb.conf</code></p></li><li><p>The shared directories and files using UNIX permissions</p></li><li><p>Using Windows 2000 ACLs if the file system is POSIX enabled</p></li></ul></div><p>
179
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p>Shares themselves (i.e., the logical share itself)</p></li><li class="listitem"><p>The share definition in <code class="filename">smb.conf</code></p></li><li class="listitem"><p>The shared directories and files using UNIX permissions</p></li><li class="listitem"><p>Using Windows 2000 ACLs if the file system is POSIX enabled</p></li></ul></div><p>
180
180
Examples of each are given in <a class="link" href="kerberos.html#ch10expl" title="Implementation">“Implementation”</a>.
181
</p></dd><dt><span class="term">User and Group Controls</span></dt><dd><p><a class="indexterm" name="id2612056"></a><a class="indexterm" name="id2612064"></a><a class="indexterm" name="id2612075"></a><a class="indexterm" name="id2612087"></a><a class="indexterm" name="id2612094"></a><a class="indexterm" name="id2612102"></a><a class="indexterm" name="id2612110"></a><a class="indexterm" name="id2612118"></a><a class="indexterm" name="id2612126"></a>
181
</p></dd><dt><span class="term">User and Group Controls</span></dt><dd><p><a class="indexterm" name="id2618114"></a><a class="indexterm" name="id2618122"></a><a class="indexterm" name="id2618134"></a><a class="indexterm" name="id2618145"></a><a class="indexterm" name="id2618153"></a><a class="indexterm" name="id2618161"></a><a class="indexterm" name="id2618168"></a><a class="indexterm" name="id2618176"></a><a class="indexterm" name="id2618184"></a>
182
182
User and group management facilities as known in the Windows ADS environment may be
183
183
used to provide equivalent access control constraints or to provide equivalent
184
184
permissions and privileges on Samba servers. Samba offers greater flexibility in the
185
185
use of user and group controls because it has additional layers of control compared to
186
186
Windows 200x/XP. For example, access controls on a Samba server may be set within
187
187
the share definition in a manner for which Windows has no equivalent.
188
</p><p><a class="indexterm" name="id2612146"></a><a class="indexterm" name="id2612154"></a><a class="indexterm" name="id2612162"></a><a class="indexterm" name="id2612170"></a><a class="indexterm" name="id2612181"></a><a class="indexterm" name="id2612189"></a><a class="indexterm" name="id2612197"></a>
188
</p><p><a class="indexterm" name="id2618204"></a><a class="indexterm" name="id2618212"></a><a class="indexterm" name="id2618220"></a><a class="indexterm" name="id2618228"></a><a class="indexterm" name="id2618239"></a><a class="indexterm" name="id2618247"></a><a class="indexterm" name="id2618255"></a>
189
189
In any serious analysis of system security, it is important to examine the safeguards
190
190
that remain when all other protective measures fail. An administrator may inadvertently
191
191
set excessive permissions on the file system of a shared resource, or he may set excessive
193
193
the data would indeed be laid bare to abuse. Yet, within a Samba share definition, it is
194
194
possible to guard against that by enforcing controls on the share definition itself. You
195
195
see a practical example of this a little later in this chapter.
196
</p><p><a class="indexterm" name="id2612219"></a><a class="indexterm" name="id2612226"></a>
196
</p><p><a class="indexterm" name="id2618277"></a><a class="indexterm" name="id2618285"></a>
197
197
The report that is critical of Samba really ought to have exercised greater due
198
198
diligence: the real weakness is on the side of a Microsoft Windows environment.
199
</p></dd><dt><span class="term">Security Overall</span></dt><dd><p><a class="indexterm" name="id2612248"></a>
199
</p></dd><dt><span class="term">Security Overall</span></dt><dd><p><a class="indexterm" name="id2618307"></a>
200
200
Samba is designed in such a manner that weaknesses inherent in the design of
201
201
Microsoft Windows networking ought not to expose the underlying UNIX/Linux file
202
202
system in any way. All software has potential defects, and Samba is no exception.
203
203
What matters more is how defects that are discovered get dealt with.
204
</p><p><a class="indexterm" name="id2612265"></a><a class="indexterm" name="id2612273"></a><a class="indexterm" name="id2612281"></a><a class="indexterm" name="id2612289"></a>
204
</p><p><a class="indexterm" name="id2618324"></a><a class="indexterm" name="id2618332"></a><a class="indexterm" name="id2618339"></a><a class="indexterm" name="id2618347"></a>
205
205
The Samba Team totally agrees with the necessity to observe and fully implement
206
206
every security facility to provide a level of protection and security that is necessary
207
207
and that the end user (or network administrator) needs. Never would the Samba Team
208
208
recommend a compromise to system security, nor would deliberate defoliation of
209
209
security be publicly condoned; yet this is the practice by many Windows network
210
210
administrators just to make happy users who have no notion of consequential risk.
211
</p><p><a class="indexterm" name="id2612309"></a><a class="indexterm" name="id2612317"></a><a class="indexterm" name="id2612325"></a><a class="indexterm" name="id2612332"></a><a class="indexterm" name="id2612340"></a><a class="indexterm" name="id2612348"></a><a class="indexterm" name="id2612356"></a>
211
</p><p><a class="indexterm" name="id2618367"></a><a class="indexterm" name="id2618375"></a><a class="indexterm" name="id2618383"></a><a class="indexterm" name="id2618391"></a><a class="indexterm" name="id2618399"></a><a class="indexterm" name="id2618407"></a><a class="indexterm" name="id2618415"></a>
212
212
The report condemns Samba for releasing updates and security fixes, yet Microsoft
213
213
online updates need to be applied almost weekly. The answer to the criticism
214
214
lies in the fact that Samba development is continuing, documentation is improving,
215
215
user needs are being increasingly met or exceeded, and security updates are issued
216
216
with a short turnaround time.
217
</p><p><a class="indexterm" name="id2612374"></a><a class="indexterm" name="id2612382"></a><a class="indexterm" name="id2612390"></a><a class="indexterm" name="id2612398"></a><a class="indexterm" name="id2612406"></a>
217
</p><p><a class="indexterm" name="id2618433"></a><a class="indexterm" name="id2618441"></a><a class="indexterm" name="id2618449"></a><a class="indexterm" name="id2618456"></a><a class="indexterm" name="id2618464"></a>
218
218
The release of Samba-4 is expected around late 2004 to early 2005 and involves a near
219
219
complete rewrite to permit extensive modularization and to prepare Samba for new
220
220
functionality planned for addition during the next-generation series. The Samba Team
221
221
is responsible and can be depended upon; the history to date suggests a high
222
222
degree of dependability and on charter development consistent with published
223
223
roadmap projections.
224
</p><p><a class="indexterm" name="id2612436"></a><a class="indexterm" name="id2612444"></a><a class="indexterm" name="id2612456"></a><a class="indexterm" name="id2612467"></a><a class="indexterm" name="id2612475"></a><a class="indexterm" name="id2612483"></a><a class="indexterm" name="id2612491"></a>
224
</p><p><a class="indexterm" name="id2618494"></a><a class="indexterm" name="id2618502"></a><a class="indexterm" name="id2618514"></a><a class="indexterm" name="id2618525"></a><a class="indexterm" name="id2618533"></a><a class="indexterm" name="id2618541"></a><a class="indexterm" name="id2618549"></a>
225
225
Not well published is the fact that Microsoft was a foundation member of
226
226
the Common Internet File System (CIFS) initiative, together with the participation
227
227
of the network attached storage (NAS) industry. Unfortunately, for the past few years,
282
282
challenge of developing and integrating the necessary technologies. Therefore, if
283
283
the Samba Team does not make it a priority to absorb Kerberos and LDAP functionality
284
284
into the Samba project, this dream request cannot become a reality.
285
</p><p><a class="indexterm" name="id2612906"></a><a class="indexterm" name="id2612914"></a><a class="indexterm" name="id2612922"></a><a class="indexterm" name="id2612933"></a><a class="indexterm" name="id2612941"></a>
285
</p><p><a class="indexterm" name="id2618965"></a><a class="indexterm" name="id2618973"></a><a class="indexterm" name="id2618981"></a><a class="indexterm" name="id2618992"></a><a class="indexterm" name="id2619000"></a>
286
286
At this time, the integration of LDAP, Kerberos, and the missing RPCs is not on the
287
287
Samba development roadmap. If it is not on the published roadmap, it cannot be delivered
288
288
anytime soon. Ergo, ADS server support is not a current goal for Samba development.
289
289
The Samba Team is most committed to permitting Samba to be a full ADS domain member
290
290
that is increasingly capable of being managed using Microsoft Windows MMC tools.
291
</p></dd></dl></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2612961"></a>Kerberos Exposed</h4></div></div></div><p><a class="indexterm" name="id2612968"></a><a class="indexterm" name="id2612975"></a><a class="indexterm" name="id2612984"></a>
291
</p></dd></dl></div><div class="sect3" title="Kerberos Exposed"><div class="titlepage"><div><div><h4 class="title"><a name="id2619019"></a>Kerberos Exposed</h4></div></div></div><p><a class="indexterm" name="id2619026"></a><a class="indexterm" name="id2619034"></a><a class="indexterm" name="id2619042"></a>
292
292
Kerberos is a network authentication protocol that provides secure authentication for
293
293
client-server applications by using secret-key cryptography. Firewalls are an insufficient
294
294
barrier mechanism in today's networking world; at best they only restrict incoming network
295
295
traffic but cannot prevent network traffic that comes from authorized locations from
296
296
performing unauthorized activities.
297
</p><p><a class="indexterm" name="id2613002"></a><a class="indexterm" name="id2613010"></a><a class="indexterm" name="id2613017"></a>
297
</p><p><a class="indexterm" name="id2619060"></a><a class="indexterm" name="id2619068"></a><a class="indexterm" name="id2619076"></a>
298
298
Kerberos was created by MIT as a solution to network security problems. The Kerberos protocol uses
299
299
strong cryptography so that a client can prove its identity to a server (and vice versa) across an
300
300
insecure network connection. After a client and server has used Kerberos to prove their identity,
301
301
they can also encrypt all of their communications to assure privacy and data integrity as they go
302
302
about their business.
303
</p><p><a class="indexterm" name="id2613036"></a><a class="indexterm" name="id2613044"></a><a class="indexterm" name="id2613052"></a><a class="indexterm" name="id2613059"></a><a class="indexterm" name="id2613071"></a>
303
</p><p><a class="indexterm" name="id2619094"></a><a class="indexterm" name="id2619102"></a><a class="indexterm" name="id2619110"></a><a class="indexterm" name="id2619118"></a><a class="indexterm" name="id2619129"></a>
304
304
Kerberos is a trusted third-party service. That means that there is a third party (the kerberos
305
305
server) that is trusted by all the entities on the network (users and services, usually called
306
306
principals). All principals share a secret password (or key) with the kerberos server and this
307
307
enables principals to verify that the messages from the kerberos server are authentic. Therefore,
308
308
trusting the kerberos server, users and services can authenticate each other.
310
<a class="indexterm" name="id2613091"></a>
311
<a class="indexterm" name="id2613098"></a>
312
<a class="indexterm" name="id2613105"></a>
310
<a class="indexterm" name="id2619149"></a>
311
<a class="indexterm" name="id2619156"></a>
312
<a class="indexterm" name="id2619163"></a>
313
313
Kerberos was, until recently, a technology that was restricted from being exported from the United States.
314
314
For many years that hindered global adoption of more secure networking technologies both within the United States
315
315
and abroad. A free and unencumbered implementation of MIT Kerberos has been produced in Europe
360
360
Windows NT services will not be able to translate DCE PACs into Windows NT user and group identifiers. This
361
361
is not an issue with Kerberos interoperability, but rather an issue of interoperability between DCE and
362
362
Windows NT access control information.
363
</p></blockquote></div></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ch10expl"></a>Implementation</h2></div></div></div><p>
363
</p></blockquote></div></div></div></div><div class="sect1" title="Implementation"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="ch10expl"></a>Implementation</h2></div></div></div><p>
364
364
The following procedures outline the implementation of the security measures discussed so far.
365
</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2613307"></a>Share Access Controls</h3></div></div></div><p><a class="indexterm" name="id2613314"></a><a class="indexterm" name="id2613322"></a><a class="indexterm" name="id2613330"></a>
365
</p><div class="sect2" title="Share Access Controls"><div class="titlepage"><div><div><h3 class="title"><a name="id2619366"></a>Share Access Controls</h3></div></div></div><p><a class="indexterm" name="id2619373"></a><a class="indexterm" name="id2619380"></a><a class="indexterm" name="id2619388"></a>
366
366
Access control entries placed on the share itself act as a filter at the time a when CIFS/SMB client (such as
367
367
Windows XP Pro) attempts to make a connection to the Samba server.
368
</p><div class="procedure"><a name="id2613343"></a><p class="title"><b>Procedure�11.1.�Create/Edit/Delete Share ACLs</b></p><ol type="1"><li><p><a class="indexterm" name="id2613353"></a><a class="indexterm" name="id2613362"></a>
368
</p><div class="procedure" title="Procedure�11.1.�Create/Edit/Delete Share ACLs"><a name="id2619402"></a><p class="title"><b>Procedure�11.1.�Create/Edit/Delete Share ACLs</b></p><ol class="procedure" type="1"><li class="step" title="Step 1"><p><a class="indexterm" name="id2619412"></a><a class="indexterm" name="id2619420"></a>
369
369
From a Windows 200x/XP Professional workstation, log on to the domain using the Domain Administrator
370
370
account (on Samba domains, this is usually the account called <code class="constant">root</code>).
371
</p></li><li class="step" title="Step 2"><p>
373
373
<span class="guimenu">Start</span> → <span class="guimenuitem">Settings</span> → <span class="guimenuitem">Control Panel</span> → <span class="guimenuitem">Administrative Tools</span> → <span class="guimenuitem">Computer Management</span>.
374
</p></li><li class="step" title="Step 3"><p>
375
375
In the left panel,
376
376
<span class="guimenu">[Right mouse menu item] Computer Management (Local)</span> → <span class="guimenuitem">Connect to another computer ...</span> → <span class="guimenuitem">Browse...</span> → <span class="guimenuitem">Advanced</span> → <span class="guimenuitem">Find Now</span>. In the lower panel, click on the name of the server you wish to
377
administer. Click <span class="guimenu">OK</span> → <span class="guimenuitem">OK</span> → <span class="guimenuitem">OK</span>.<a class="indexterm" name="id2613485"></a>
377
administer. Click <span class="guimenu">OK</span> → <span class="guimenuitem">OK</span> → <span class="guimenuitem">OK</span>.<a class="indexterm" name="id2619543"></a>
378
378
In the left panel, the entry <span class="guimenu">Computer Management (Local)</span> should now reflect
379
379
the change made. For example, if the server you are administering is called <code class="constant">FRODO</code>,
380
380
the Computer Management entry should now say <span class="guimenu">Computer Management (FRODO)</span>.
381
</p></li><li class="step" title="Step 4"><p>
382
382
In the left panel, click <span class="guimenu">Computer Management (FRODO)</span> → <span class="guimenuitem">[+] Shared Folders</span> → <span class="guimenuitem">Shares</span>.
383
</p></li><li><p><a class="indexterm" name="id2613549"></a><a class="indexterm" name="id2613557"></a>
383
</p></li><li class="step" title="Step 5"><p><a class="indexterm" name="id2619607"></a><a class="indexterm" name="id2619615"></a>
384
384
In the right panel, double-click on the share on which you wish to set/edit ACLs. This
385
385
will bring up the Properties panel. Click the <span class="guimenu">Share Permissions</span> tab.
386
</p></li><li><p><a class="indexterm" name="id2613580"></a><a class="indexterm" name="id2613588"></a><a class="indexterm" name="id2613596"></a><a class="indexterm" name="id2613604"></a><a class="indexterm" name="id2613612"></a><a class="indexterm" name="id2613620"></a>
386
</p></li><li class="step" title="Step 6"><p><a class="indexterm" name="id2619638"></a><a class="indexterm" name="id2619646"></a><a class="indexterm" name="id2619654"></a><a class="indexterm" name="id2619662"></a><a class="indexterm" name="id2619670"></a><a class="indexterm" name="id2619678"></a>
387
387
You may now edit/add/remove access control settings. Be very careful. Many problems have been
388
388
created by people who decided that everyone should be rejected but one particular group should
389
389
have full control. This is a catch-22 situation because members of that particular group also
390
390
belong to the group <code class="constant">Everyone</code>, which therefore overrules any permissions
391
391
set for the permitted group.
392
</p></li><li class="step" title="Step 7"><p>
393
393
When you are done with editing, close all panels by clicking through the <span class="guimenu">OK</span>
395
</p></li></ol></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2613656"></a>Share Definition Controls</h3></div></div></div><p><a class="indexterm" name="id2613663"></a><a class="indexterm" name="id2613674"></a><a class="indexterm" name="id2613682"></a><a class="indexterm" name="id2613690"></a><a class="indexterm" name="id2613698"></a><a class="indexterm" name="id2613706"></a>
395
</p></li></ol></div></div><div class="sect2" title="Share Definition Controls"><div class="titlepage"><div><div><h3 class="title"><a name="id2619714"></a>Share Definition Controls</h3></div></div></div><p><a class="indexterm" name="id2619721"></a><a class="indexterm" name="id2619733"></a><a class="indexterm" name="id2619741"></a><a class="indexterm" name="id2619748"></a><a class="indexterm" name="id2619756"></a><a class="indexterm" name="id2619764"></a>
396
396
Share-definition-based access controls can be used like a checkpoint or like a pile-driver. Just as a
397
397
checkpoint can be used to require someone who wants to get through to meet certain requirements, so
398
398
it is possible to require the user (or group the user belongs to) to meet specified credential-related
399
399
objectives. It can be likened to a pile-driver by overriding default controls in that having met the
400
400
credential-related objectives, the user can be granted powers and privileges that would not normally be
401
401
available under default settings.
402
</p><p><a class="indexterm" name="id2613726"></a><a class="indexterm" name="id2613734"></a><a class="indexterm" name="id2613742"></a><a class="indexterm" name="id2613750"></a>
402
</p><p><a class="indexterm" name="id2619785"></a><a class="indexterm" name="id2619793"></a><a class="indexterm" name="id2619800"></a><a class="indexterm" name="id2619809"></a>
403
403
It must be emphasized that the controls discussed here can act as a filter or give rights of passage
404
404
that act as a superstructure over normal directory and file access controls. However, share-level
405
405
ACLs act at a higher level than do share definition controls because the user must filter through the
406
406
share-level controls to get to the share-definition controls. The proper hierarchy of controls implemented
407
407
by Samba and Windows networking consists of:
408
</p><div class="orderedlist"><ol type="1"><li><p>Share-level ACLs</p></li><li><p>Share-definition controls</p></li><li><p>Directory and file permissions</p></li><li><p>Directory and file POSIX ACLs</p></li></ol></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2613795"></a>Checkpoint Controls</h4></div></div></div><p><a class="indexterm" name="id2613802"></a>
408
</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>Share-level ACLs</p></li><li class="listitem"><p>Share-definition controls</p></li><li class="listitem"><p>Directory and file permissions</p></li><li class="listitem"><p>Directory and file POSIX ACLs</p></li></ol></div><div class="sect3" title="Checkpoint Controls"><div class="titlepage"><div><div><h4 class="title"><a name="id2619854"></a>Checkpoint Controls</h4></div></div></div><p><a class="indexterm" name="id2619861"></a>
409
409
Consider the following extract from a <code class="filename">smb.conf</code> file defining the share called <code class="constant">Apps</code>:
410
410
</p><pre class="screen">
522
522
UNIX file system controls, this chapter does not document simple information that can be obtained
523
523
from a basic UNIX training guide. Instead, one common example of a typical problem is used
524
524
to demonstrate the most effective solution referred to in the immediately preceding paragraph.
525
</p><p><a class="indexterm" name="id2614323"></a><a class="indexterm" name="id2614331"></a><a class="indexterm" name="id2614339"></a>
525
</p><p><a class="indexterm" name="id2620381"></a><a class="indexterm" name="id2620389"></a><a class="indexterm" name="id2620397"></a>
526
526
One of the common issues that repeatedly pops up on the Samba mailing lists involves the saving of
527
527
Microsoft Office files (Word and Excel) to a network drive. Here is the typical sequence:
528
</p><div class="orderedlist"><ol type="1"><li><p>
528
</p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p>
529
529
A user opens a Word document from a network drive. The file was owned by user <code class="constant">janetp</code>
530
530
and [users], and was set read/write-enabled for everyone.
531
531
A user opens a Word document from a network drive. The file was owned by user <code class="constant">janetp</code>
532
532
and <code class="constant">users</code>, and was set read/write-enabled for everyone.
533
</p></li><li class="listitem"><p>
534
534
File changes and edits are made.
535
</p></li><li class="listitem"><p>
536
536
The file is saved, and MS Word is closed.
537
</p></li><li class="listitem"><p>
538
538
The file is now owned by the user <code class="constant">billc</code> and group <code class="constant">doctors</code>,
539
539
and is set read/write by <code class="constant">billc</code>, read-only by <code class="constant">doctors</code>, and
540
540
no access by everyone.
542
The original owner cannot now access her own file and is “<span class="quote">justifiably</span>” upset.
541
</p></li><li class="listitem"><p>
542
The original owner cannot now access her own file and is <span class="quote">“<span class="quote">justifiably</span>”</span> upset.
543
543
</p></li></ol></div><p>
544
544
There have been many postings over the years that report the same basic problem. Frequently Samba users
545
want to know when this “<span class="quote">bug</span>” will be fixed. The fact is, this is not a bug in Samba at all.
545
want to know when this <span class="quote">“<span class="quote">bug</span>”</span> will be fixed. The fact is, this is not a bug in Samba at all.
546
546
Here is the real sequence of what happens in this case.
547
</p><p><a class="indexterm" name="id2614440"></a><a class="indexterm" name="id2614448"></a><a class="indexterm" name="id2614456"></a>
547
</p><p><a class="indexterm" name="id2620498"></a><a class="indexterm" name="id2620506"></a><a class="indexterm" name="id2620514"></a>
548
548
When the user saves a file, MS Word creates a new (temporary) file. This file is naturally owned
549
549
by the user who creates the file (<code class="constant">billc</code>) and has the permissions that follow
550
550
that user's default settings within the operating system (UNIX/Linux). When MS Word has finished writing
604
604
There are two possible ways to set ACLs on UNIX/Linux file systems from a Windows network workstation,
605
605
either via File Manager or via the Microsoft Management Console (MMC) Computer Management interface.
606
</p><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2614736"></a>Using the MMC Computer Management Interface</h4></div></div></div><div class="procedure"><ol type="1"><li><p>
606
</p><div class="sect3" title="Using the MMC Computer Management Interface"><div class="titlepage"><div><div><h4 class="title"><a name="id2620795"></a>Using the MMC Computer Management Interface</h4></div></div></div><div class="procedure"><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
607
607
From a Windows 200x/XP Professional workstation, log on to the domain using the Domain Administrator
608
608
account (on Samba domains, this is usually the account called <code class="constant">root</code>).
609
</p></li><li class="step" title="Step 2"><p>
611
611
<span class="guimenu">Start</span> → <span class="guimenuitem">Settings</span> → <span class="guimenuitem">Control Panel</span> → <span class="guimenuitem">Administrative Tools</span> → <span class="guimenuitem">Computer Management</span>.
612
</p></li><li class="step" title="Step 3"><p>
613
613
In the left panel,
614
614
<span class="guimenu">[Right mouse menu item] Computer Management (Local)</span> → <span class="guimenuitem">Connect to another computer ...</span> → <span class="guimenuitem">Browse...</span> → <span class="guimenuitem">Advanced</span> → <span class="guimenuitem">Find Now</span>. In the lower panel, click on the name of the server you wish to
615
615
administer. Click <span class="guimenu">OK</span> → <span class="guimenuitem">OK</span> → <span class="guimenuitem">OK</span>.
616
616
In the left panel, the entry <span class="guimenu">Computer Management (Local)</span> should now reflect
617
617
the change made. For example, if the server you are administering is called <code class="constant">FRODO</code>,
618
618
the Computer Management entry should now say: <span class="guimenu">Computer Management (FRODO)</span>.
619
</p></li><li class="step" title="Step 4"><p>
620
620
In the left panel, click <span class="guimenu">Computer Management (FRODO)</span> → <span class="guimenuitem">[+] Shared Folders</span> → <span class="guimenuitem">Shares</span>.
621
</p></li><li><p><a class="indexterm" name="id2614919"></a><a class="indexterm" name="id2614927"></a><a class="indexterm" name="id2614935"></a><a class="indexterm" name="id2614943"></a>
621
</p></li><li class="step" title="Step 5"><p><a class="indexterm" name="id2620978"></a><a class="indexterm" name="id2620986"></a><a class="indexterm" name="id2620993"></a><a class="indexterm" name="id2621001"></a>
622
622
In the right panel, double-click on the share on which you wish to set/edit ACLs. This
623
623
brings up the Properties panel. Click the <span class="guimenu">Security</span> tab. It is best
624
624
to edit ACLs using the <code class="constant">Advanced</code> editing features. Click the
625
625
<span class="guimenu">Advanced</span> button. This opens a panel that has four tabs. Only the
626
626
functionality under the <code class="constant">Permissions</code> tab can be utilized with respect
627
627
to a Samba domain server.
628
</p></li><li><p><a class="indexterm" name="id2614982"></a><a class="indexterm" name="id2614990"></a>
628
</p></li><li class="step" title="Step 6"><p><a class="indexterm" name="id2621041"></a><a class="indexterm" name="id2621049"></a>
629
629
You may now edit/add/remove access control settings. Be very careful. Many problems have been
630
630
created by people who decided that everyone should be rejected but one particular group should
631
631
have full control. This is a catch-22 situation because members of that particular group also
632
632
belong to the group <code class="constant">Everyone</code>, which therefore overrules any permissions
633
633
set for the permitted group.
634
</p></li><li class="step" title="Step 7"><p>
635
635
When you are done with editing, close all panels by clicking through the <span class="guimenu">OK</span>
636
636
buttons until the last panel closes.
637
</p></li></ol></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2615027"></a>Using MS Windows Explorer (File Manager)</h4></div></div></div><p>
637
</p></li></ol></div></div><div class="sect3" title="Using MS Windows Explorer (File Manager)"><div class="titlepage"><div><div><h4 class="title"><a name="id2621086"></a>Using MS Windows Explorer (File Manager)</h4></div></div></div><p>
638
638
The following alternative method may be used from a Windows workstation. In this example we work
639
639
with a domain called <code class="constant">MEGANET</code>, a server called <code class="constant">MASSIVE</code>, and a
640
640
share called <code class="constant">Apps</code>. The underlying UNIX/Linux share point for this share is
641
641
<code class="filename">/data/apps</code>.
642
</p><div class="procedure"><ol type="1"><li><p>
642
</p><div class="procedure"><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
643
643
Click <span class="guimenu">Start</span> → <span class="guimenuitem">[right-click] My Computer</span> → <span class="guimenuitem">Explore</span> → <span class="guimenuitem">[left panel] [+] My Network Places</span> → <span class="guimenuitem">[+] Entire Network</span> → <span class="guimenuitem">[+] Microsoft Windows Network</span> → <span class="guimenuitem">[+] Meganet</span> → <span class="guimenuitem">[+] Massive</span> → <span class="guimenuitem">[right-click] Apps</span> → <span class="guimenuitem">Properties</span> → <span class="guimenuitem">Security</span> → <span class="guimenuitem">Advanced</span>. This opens a panel that has four tabs. Only the functionality under the
644
644
<code class="constant">Permissions</code> tab can be utilized for a Samba domain server.
645
</p></li><li><p><a class="indexterm" name="id2615152"></a><a class="indexterm" name="id2615160"></a>
645
</p></li><li class="step" title="Step 2"><p><a class="indexterm" name="id2621210"></a><a class="indexterm" name="id2621218"></a>
646
646
You may now edit/add/remove access control settings. Be very careful. Many problems have been
647
647
created by people who decided that everyone should be rejected but one particular group should
648
648
have full control. This is a catch-22 situation because members of that particular group also
649
649
belong to the group <code class="constant">Everyone</code>, which therefore overrules any permissions
650
650
set for the permitted group.
651
</p></li><li class="step" title="Step 3"><p>
652
652
When you are done with editing, close all panels by clicking through the <span class="guimenu">OK</span>
653
653
buttons until the last panel closes.
654
</p></li></ol></div></div><div class="sect3" lang="en"><div class="titlepage"><div><div><h4 class="title"><a name="id2615198"></a>Setting Posix ACLs in UNIX/Linux</h4></div></div></div><p><a class="indexterm" name="id2615205"></a><a class="indexterm" name="id2615213"></a>
654
</p></li></ol></div></div><div class="sect3" title="Setting Posix ACLs in UNIX/Linux"><div class="titlepage"><div><div><h4 class="title"><a name="id2621257"></a>Setting Posix ACLs in UNIX/Linux</h4></div></div></div><p><a class="indexterm" name="id2621264"></a><a class="indexterm" name="id2621272"></a>
655
655
Yet another alternative method for setting desired security settings on the shared resource files and
656
656
directories can be achieved by logging into UNIX/Linux and setting POSIX ACLs directly using command-line
657
657
tools. Here is an example session on the same resource as in the immediately preceding example on a SUSE 9
659
</p><div class="procedure"><ol type="1"><li><p>
659
</p><div class="procedure"><ol class="procedure" type="1"><li class="step" title="Step 1"><p>
660
660
Log into the Linux system as the user <code class="constant">root</code>.
661
</p></li><li class="step" title="Step 2"><p>
662
662
Change directory to the location of the exported (shared) Windows file share (Apps), which is in
663
663
the directory <code class="filename">/data</code>. Execute the following:
664
664
</p><pre class="screen">
699
699
This confirms that the change of POSIX ACL permissions has been effective.
700
</p></li><li><p><a class="indexterm" name="id2615343"></a><a class="indexterm" name="id2615351"></a><a class="indexterm" name="id2615359"></a><a class="indexterm" name="id2615367"></a><a class="indexterm" name="id2615375"></a>
700
</p></li><li class="step" title="Step 4"><p><a class="indexterm" name="id2621402"></a><a class="indexterm" name="id2621409"></a><a class="indexterm" name="id2621417"></a><a class="indexterm" name="id2621425"></a><a class="indexterm" name="id2621433"></a>
701
701
It is highly recommended that you read the online manual page for the <code class="literal">setfacl</code>
702
702
and <code class="literal">getfacl</code> commands. This provides information regarding how to set/read the default
703
703
ACLs and how that may be propagated through the directory tree. In Windows ACLs terms, this is the equivalent
704
704
of setting <code class="constant">inheritance</code> properties.
705
</p></li></ol></div></div></div><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2615408"></a>Key Points Learned</h3></div></div></div><p>
705
</p></li></ol></div></div></div><div class="sect2" title="Key Points Learned"><div class="titlepage"><div><div><h3 class="title"><a name="id2621467"></a>Key Points Learned</h3></div></div></div><p>
706
706
The mish-mash of issues were thrown together into one chapter because it seemed like a good idea.
707
707
Looking back, this chapter could be broken into two, but it's too late now. It has been done.
708
708
The highlights covered are as follows:
709
</p><div class="itemizedlist"><ul type="disc"><li><p><a class="indexterm" name="id2615426"></a><a class="indexterm" name="id2615434"></a><a class="indexterm" name="id2615442"></a><a class="indexterm" name="id2615450"></a>
709
</p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p><a class="indexterm" name="id2621484"></a><a class="indexterm" name="id2621492"></a><a class="indexterm" name="id2621500"></a><a class="indexterm" name="id2621508"></a>
710
710
Winbind honors and does not override account controls set in Active Directory.
711
711
This means that password change, logon hours, and so on, are (or soon will be) enforced
712
712
by Samba winbind. At this time, an out-of-hours login is denied and password
713
713
change is enforced. At this time, if logon hours expire, the user is not forcibly
714
714
logged off. That may be implemented at some later date.
715
</p></li><li><p><a class="indexterm" name="id2615468"></a><a class="indexterm" name="id2615476"></a>
715
</p></li><li class="listitem"><p><a class="indexterm" name="id2621527"></a><a class="indexterm" name="id2621535"></a>
716
716
Sign'n'seal (plus schannel support) has been implemented in Samba-3. Beware of potential
717
717
problems acknowledged by Microsoft as having been fixed but reported by some as still
718
718
possibly an open issue.
719
</p></li><li><p><a class="indexterm" name="id2615492"></a><a class="indexterm" name="id2615500"></a><a class="indexterm" name="id2615508"></a><a class="indexterm" name="id2615516"></a>
719
</p></li><li class="listitem"><p><a class="indexterm" name="id2621551"></a><a class="indexterm" name="id2621559"></a><a class="indexterm" name="id2621566"></a><a class="indexterm" name="id2621574"></a>
720
720
The combination of Kerberos 5, plus OpenLDAP, plus Samba, cannot replace Microsoft
721
721
Active Directory. The possibility to do this is not planned in the current Samba-3
722
722
roadmap. Samba-3 does aim to provide further improvements in interoperability so that
723
723
UNIX/Linux systems may be fully integrated into Active Directory domains.
724
</p></li><li class="listitem"><p>
725
725
This chapter reviewed mechanisms by which Samba servers may be kept secure. Each of
726
726
the four key methodologies was reviewed with specific reference to example deployment
728
</p></li></ul></div></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2615543"></a>Questions and Answers</h2></div></div></div><p>
729
</p><div class="qandaset"><dl><dt> <a href="kerberos.html#id2615558">
728
</p></li></ul></div></div></div><div class="sect1" title="Questions and Answers"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2621601"></a>Questions and Answers</h2></div></div></div><p>
729
</p><div class="qandaset" title="Frequently Asked Questions"><a name="id2621610"></a><dl><dt> <a href="kerberos.html#id2621617">
730
730
Does Samba-3 require the Sign'n'seal registry hacks needed by Samba-2?
731
</a></dt><dt> <a href="kerberos.html#id2615629">
731
</a></dt><dt> <a href="kerberos.html#id2621687">
732
732
Does Samba-3 support Active Directory?
733
</a></dt><dt> <a href="kerberos.html#id2615660">
733
</a></dt><dt> <a href="kerberos.html#id2621718">
734
734
When Samba-3 is used with Active Directory, is it necessary to run mixed-mode operation, as was
735
735
necessary with Samba-2?
736
</a></dt><dt> <a href="kerberos.html#id2615698">
736
</a></dt><dt> <a href="kerberos.html#id2621757">
737
737
Is it safe to set share-level access controls in Samba?
738
</a></dt><dt> <a href="kerberos.html#id2615728">
738
</a></dt><dt> <a href="kerberos.html#id2621786">
739
739
Is it mandatory to set share ACLs to get a secure Samba-3 server?
740
</a></dt><dt> <a href="kerberos.html#id2615804">
740
</a></dt><dt> <a href="kerberos.html#id2621863">
741
741
The valid users did not work on the [homes].
742
742
Has this functionality been restored yet?
743
</a></dt><dt> <a href="kerberos.html#id2615870">
743
</a></dt><dt> <a href="kerberos.html#id2621929">
744
744
Is the bias against use of the force user and force group
745
745
really warranted?
746
</a></dt><dt> <a href="kerberos.html#id2615934">
746
</a></dt><dt> <a href="kerberos.html#id2621992">
747
747
The example given for file and directory access control forces all files to be owned by one
748
748
particular user. I do not like that. Is there any way I can see who created the file?
749
</a></dt><dt> <a href="kerberos.html#id2615982">
749
</a></dt><dt> <a href="kerberos.html#id2622040">
750
750
In the book, “The Official Samba-3 HOWTO and Reference Guide”, you recommended use
751
751
of the Windows NT4 Server Manager (part of the SRVTOOLS.EXE) utility. Why
752
752
have you mentioned only the use of the Windows 200x/XP MMC Computer Management utility?
753
</a></dt><dt> <a href="kerberos.html#id2616048">
753
</a></dt><dt> <a href="kerberos.html#id2622107">
754
754
I tried to set valid users = @Engineers, but it does not work. My Samba
755
755
server is an Active Directory domain member server. Has this been fixed now?
756
</a></dt></dl><table border="0" summary="Q and A Set"><col align="left" width="1%"><tbody><tr class="question"><td align="left" valign="top"><a name="id2615558"></a><a name="id2615561"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2615564"></a><a class="indexterm" name="id2615572"></a>
756
</a></dt></dl><table border="0" width="100%" summary="Q and A Set"><col align="left" width="1%"><col><tbody><tr class="question"><td align="left" valign="top"><a name="id2621617"></a><a name="id2621619"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2621622"></a><a class="indexterm" name="id2621630"></a>
757
757
Does Samba-3 require the <code class="constant">Sign'n'seal</code> registry hacks needed by Samba-2?
758
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2615591"></a><a class="indexterm" name="id2615599"></a><a class="indexterm" name="id2615607"></a>
758
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2621650"></a><a class="indexterm" name="id2621657"></a><a class="indexterm" name="id2621665"></a>
759
759
No. Samba-3 fully supports <code class="constant">Sign'n'seal</code> as well as <code class="constant">schannel</code>
760
760
operation. The registry change should not be applied when Samba-3 is used as a domain controller.
761
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2615629"></a><a name="id2615631"></a></td><td align="left" valign="top"><p>
761
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2621687"></a><a name="id2621690"></a></td><td align="left" valign="top"><p>
762
762
Does Samba-3 support Active Directory?
763
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2615642"></a>
763
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2621700"></a>
764
764
Yes. Samba-3 can be a fully participating native mode Active Directory client. Samba-3 does not
765
765
provide Active Directory services. It cannot be used to replace a Microsoft Active Directory
766
766
server implementation. Samba-3 can function as an Active Directory client (workstation) toolkit,
767
767
and it can function as an Active Directory domain member server.
768
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2615660"></a><a name="id2615662"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2615665"></a>
768
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2621718"></a><a name="id2621721"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2621724"></a>
769
769
When Samba-3 is used with Active Directory, is it necessary to run mixed-mode operation, as was
770
770
necessary with Samba-2?
771
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2615682"></a>
771
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2621740"></a>
772
772
No. Samba-3 can be used with NetBIOS over TCP/IP disabled, just as can be done with Windows 200x
773
773
Server and 200x/XPPro client products. It is no longer necessary to run mixed-mode operation,
774
774
because Samba-3 can join a native Windows 2003 Server ADS domain.
775
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2615698"></a><a name="id2615701"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2615704"></a>
775
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2621757"></a><a name="id2621759"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2621762"></a>
776
776
Is it safe to set share-level access controls in Samba?
777
777
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
778
778
Yes. Share-level access controls have been supported since early versions of Samba-2. This is
779
779
very mature technology. Not enough sites make use of this powerful capability, neither on
780
780
Windows server or with Samba servers.
781
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2615728"></a><a name="id2615730"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2615733"></a>
781
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2621786"></a><a name="id2621788"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2621792"></a>
782
782
Is it mandatory to set share ACLs to get a secure Samba-3 server?
783
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2615749"></a><a class="indexterm" name="id2615757"></a><a class="indexterm" name="id2615765"></a><a class="indexterm" name="id2615773"></a><a class="indexterm" name="id2615781"></a>
783
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2621807"></a><a class="indexterm" name="id2621815"></a><a class="indexterm" name="id2621823"></a><a class="indexterm" name="id2621832"></a><a class="indexterm" name="id2621840"></a>
784
784
No. Samba-3 honors UNIX/Linux file system security, supports Windows 200x ACLs, and provides
785
785
means of securing shares through share definition controls in the <code class="filename">smb.conf</code> file. The additional
786
786
support for share-level ACLs is like frosting on the cake. It adds to security but is not essential
788
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2615804"></a><a name="id2615806"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2615810"></a>
788
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2621863"></a><a name="id2621865"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2621868"></a>
789
789
The <em class="parameter"><code>valid users</code></em> did not work on the <em class="parameter"><code>[homes]</code></em>.
790
790
Has this functionality been restored yet?
791
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2615837"></a>
791
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2621896"></a>
792
792
Yes. This was fixed in Samba-3.0.2. The use of this parameter is strongly recommended as a safeguard
793
793
on the <em class="parameter"><code>[homes]</code></em> meta-service. The correct way to specify this is:
794
794
<a class="link" href="smb.conf.5.html#VALIDUSERS" target="_top">valid users = %S</a>.
795
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2615870"></a><a name="id2615872"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2615876"></a><a class="indexterm" name="id2615883"></a><a class="indexterm" name="id2615891"></a>
795
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2621929"></a><a name="id2621931"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2621934"></a><a class="indexterm" name="id2621942"></a><a class="indexterm" name="id2621950"></a>
796
796
Is the bias against use of the <em class="parameter"><code>force user</code></em> and <em class="parameter"><code>force group</code></em>
797
797
really warranted?
798
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2615918"></a>
798
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2621977"></a>
799
799
There is no bias. There is a determination to recommend the right tool for the task at hand.
800
800
After all, it is better than putting users through performance problems, isn't it?
801
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2615934"></a><a name="id2615936"></a></td><td align="left" valign="top"><p>
801
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2621992"></a><a name="id2621994"></a></td><td align="left" valign="top"><p>
802
802
The example given for file and directory access control forces all files to be owned by one
803
803
particular user. I do not like that. Is there any way I can see who created the file?
804
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2615948"></a>
804
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2622007"></a>
805
805
Sure. You do not have to set the SUID bit on the directory. Simply execute the following command
806
806
to permit file ownership to be retained by the user who created it:
807
807
</p><pre class="screen">
810
810
Note that this required no more than removing the <code class="constant">u</code> argument so that the
811
811
SUID bit is not set for the owner.
812
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2615982"></a><a name="id2615984"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2615987"></a>
813
In the book, “<span class="quote">The Official Samba-3 HOWTO and Reference Guide</span>”, you recommended use
812
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2622040"></a><a name="id2622042"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2622046"></a>
813
In the book, <span class="quote">“<span class="quote">The Official Samba-3 HOWTO and Reference Guide</span>”</span>, you recommended use
814
814
of the Windows NT4 Server Manager (part of the <code class="filename">SRVTOOLS.EXE</code>) utility. Why
815
815
have you mentioned only the use of the Windows 200x/XP MMC Computer Management utility?
816
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2616015"></a><a class="indexterm" name="id2616023"></a>
816
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p><a class="indexterm" name="id2622074"></a><a class="indexterm" name="id2622081"></a>
817
817
Either tool can be used with equal effect. There is no benefit of one over the other, except that
818
818
the MMC utility is present on all Windows 200x/XP systems and does not require additional software
819
819
to be downloaded and installed. Note that if you want to manage user and group accounts in your
820
820
Samba-controlled domain, the only tool that permits that is the NT4 Domain User Manager, which
821
821
is provided as part of the <code class="filename">SRVTOOLS.EXE</code> utility.
822
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2616048"></a><a name="id2616051"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2616054"></a><a class="indexterm" name="id2616062"></a><a class="indexterm" name="id2616070"></a>
822
</p></td></tr><tr class="question"><td align="left" valign="top"><a name="id2622107"></a><a name="id2622109"></a></td><td align="left" valign="top"><p><a class="indexterm" name="id2622112"></a><a class="indexterm" name="id2622120"></a><a class="indexterm" name="id2622128"></a>
823
823
I tried to set <em class="parameter"><code>valid users = @Engineers</code></em>, but it does not work. My Samba
824
824
server is an Active Directory domain member server. Has this been fixed now?
825
825
</p></td></tr><tr class="answer"><td align="left" valign="top"></td><td align="left" valign="top"><p>
826
826
The use of this parameter has always required the full specification of the domain account, for
827
827
example, <em class="parameter"><code>valid users = @"MEGANET2\Domain Admins"</code></em>.
828
</p></td></tr></tbody></table></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"></div><div class="footnote"><a class="ulink" href="http://199.105.191.226/Man/2699/020430msdoj/" target="_top"><sup>[<a name="ftn.id2613153" href="#id2613153" class="ulink">13</a>] </sup>ITWorld.com</a></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="RefSection.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="RefSection.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="DomApps.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Part�III.�Reference Section�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�Chapter�12.�Integrating Additional Services</td></tr></table></div></body></html>
828
</p></td></tr></tbody></table></div></div><div class="footnotes"><br><hr width="100" align="left"><div class="footnote"></div><div class="footnote"><a class="ulink" href="http://199.105.191.226/Man/2699/020430msdoj/" target="_top"><sup>[<a name="ftn.id2619212" href="#id2619212" class="ulink">13</a>] </sup>ITWorld.com</a></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="RefSection.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="RefSection.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="DomApps.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Part�III.�Reference Section�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�Chapter�12.�Integrating Additional Services</td></tr></table></div></body></html>