Samba3-ByExample.pdf

(3940 KB) Pobierz
Samba-3 by Example
Practical Exercises in Successful Samba Deployment
John H. Terpstra
May 27, 2009
ABOUT THE COVER
ARTWORK
The cover artwork of this book continues the freedom theme of the first
edition of “Samba-3 by Example”. The history of civilization demonstrates
the fragile nature of freedom. It can be lost in a moment, and once lost, the
cost of recovering liberty can be incredible. The last edition cover featured
Alfred the Great who liberated England from the constant assault of Vikings
and Norsemen. Events in England that finally liberated the common people
came about in small steps, but the result should not be under-estimated.
Today, as always, freedom and liberty are seldom appreciated until they are
lost. If we can not quantify what is the value of freedom, we shall be little
motivated to protect it.
Samba-3 by Example Cover Artwork:
The British houses of parliament are a
symbol of the Westminster system of government. This form of government
permits the people to govern themselves at the lowest level, yet it provides
for courts of appeal that are designed to protect freedom and to hold back
all forces of tyranny. The clock is a pertinent symbol of the importance of
time and place.
The information technology industry is being challenged by the imposition
of new laws, hostile litigation, and the imposition of significant constraint of
practice that threatens to remove the freedom to develop and deploy open
source software solutions. Samba is a software solution that epitomizes
freedom of choice in network interoperability for Microsoft Windows clients.
I hope you will take the time needed to deploy it well, and that you may
realize the greatest benefits that may be obtained. You are free to use it in
ways never considered, but in doing so there may be some obstacles. Every
obstacle that is overcome adds to the freedom you can enjoy. Use Samba
well, and it will serve you well.
vii
ACKNOWLEDGMENTS
Samba-3 by Example
would not have been written except as a result of
feedback provided by reviewers and readers of the book
The Official Samba-
3 HOWTO and Reference Guide.
This second edition was made possible by
generous feedback from Samba users. I hope this book more than answers
the challenge and needs of many more networks that are languishing for a
better networking solution.
I am deeply indebted to a large group of diligent people. Space prevents me
from listing all of them, but a few stand out as worthy of mention. Jelmer
Vernooij made the notable contribution of building the XML production
environment and thereby made possible the typesetting of this book.
Samba would not have come into existence if Andrew Tridgell had not taken
the first steps. He continues to lead the project. Under the shadow of his
mantle are some great folks who never give up and are always ready to
help. Thank you to: Jeremy Allison, Jerry Carter, Andrew Bartlett, Jelmer
Vernooij, Alexander Bokovoy, Volker Lendecke, and other team members
who answered my continuous stream of questions — all of which resulted in
improved content in this book.
My heartfelt thanks go out also to a small set of reviewers (alphabetically
listed) who gave substantial feedback and significant suggestions for im-
provement: Tony Earnshaw, William Enestvedt, Eric Hines, Roland Gru-
ber, Gavin Henry, Steven Henry, Luke Howard, Tarjei Huse, Jon Johnston,
Alan Munter, Mike MacIsaac, Scott Mann, Ed Riddle, Geoff Scott, Santos
Soler, Misty Stanley-Jones, Mark Taylor, and J´rˆme Tournier.
eo
My appreciation is extended to a team of more than 30 additional reviewers
who helped me to find my way around dark corners.
Particular mention is due to Lyndell, Amos, and Melissa who gave me the
latitude necessary to spend nearly an entire year writing Samba documen-
tation, and then gave more so this second edition could be created.
viii
CONTENTS
Contents
ABOUT THE COVER ARTWORK
ACKNOWLEDGMENTS
LIST OF EXAMPLES
LIST OF FIGURES
LIST OF TABLES
FOREWORD
PREFACE
vii
viii
xix
xxv
xxvii
xxix
xxxii
Part I
Example Network Configurations
xli
1
3
3
4
4
5
6
7
9
10
11
19
19
20
20
25
EXAMPLE NETWORK CONFIGURATIONS
Chapter 1 NO-FRILLS SAMBA SERVERS
1.1 Introduction
1.2 Assignment Tasks
1.2.1 Drafting Office
1.2.1.1 Dissection and Discussion
1.2.1.2 Implementation
1.2.1.3 Validation
1.2.2 Charity Administration Office
1.2.2.1 Dissection and Discussion
1.2.2.2 Implementation
1.2.2.3 Validation
1.2.3 Accounting Office
1.2.3.1 Dissection and Discussion
1.2.3.2 Implementation
1.3 Questions and Answers
ix
x
Contents
Chapter 2 SMALL OFFICE NETWORKING
2.1 Introduction
2.1.1 Assignment Tasks
2.2 Dissection and Discussion
2.2.1 Technical Issues
2.2.2 Political Issues
2.3 Implementation
2.3.1 Validation
2.3.2 Notebook Computers: A Special Case
2.3.3 Key Points Learned
2.4 Questions and Answers
Chapter 3 SECURE OFFICE NETWORKING
3.1 Introduction
3.1.1 Assignment Tasks
3.2 Dissection and Discussion
3.2.1 Technical Issues
3.2.1.1 Hardware Requirements
3.2.2 Political Issues
3.3 Implementation
3.3.1 Basic System Configuration
3.3.2 Samba Configuration
3.3.3 Configuration of DHCP and DNS Servers
3.3.4 Printer Configuration
3.3.5 Process Startup Configuration
3.3.6 Validation
3.3.7 Application Share Configuration
3.3.7.1 Comments Regarding Software Terms of Use
3.3.8 Windows Client Configuration
3.3.9 Key Points Learned
3.4 Questions and Answers
Chapter 4 THE 500-USER OFFICE
4.1 Introduction
4.1.1 Assignment Tasks
4.2 Dissection and Discussion
4.2.1 Technical Issues
4.2.2 Political Issues
4.3 Implementation
4.3.1 Installation of DHCP, DNS, and Samba Control Files
29
30
30
31
31
33
33
39
44
44
45
53
53
54
56
56
59
61
61
63
66
71
72
74
75
84
85
86
88
89
105
106
107
108
108
110
110
110
Zgłoś jeśli naruszono regulamin