The Book of Webmin
Total Page:16
File Type:pdf, Size:1020Kb
The Book of Webmin Or: How I Learned to Stop Worrying and Love Unix by Joe Cooper The Book of Webmin: Or: How I Learned to Stop Worrying and Love Unix by Joe Cooper Copyright © 2000, , 2001, , 2002 Joe Cooper Documenting system configuration and ongoing system maintenance using the Webmin [http://www.webmin.com/webmin] web based administration tool. Table of Contents Preface ......................................................................................... xii Conventions Used in This Guide ............................................................. xii Who Webmin is For ....................................................................... xiii Who This Book is For ...................................................................... xiv Why a Webmin Book? ...................................................................... xv How to Contact the Author and Errata ....................................................... xvii How to Contact No Starch Press ............................................................ xvii Acknowledgments ........................................................................ xvii 1. Getting and Installing Webmin ................................................................... 1 Where to Download Webmin ................................................................. 1 Installing Webmin ........................................................................... 1 Installing from a tar.gz .................................................................. 1 Installing from an RPM ................................................................. 5 Installing from a pkg ................................................................... 5 After Installation ............................................................................ 5 Changing Webmin Passwords from the Command Line .................................... 6 Changing the Webmin Port from the Command Line ....................................... 6 Restarting Webmin from the Command Line .............................................. 7 2. Logging In ..................................................................................... 8 Logging in with Netscape or Internet Explorer .................................................. 8 Logging in with Lynx ........................................................................ 8 A First Look ................................................................................ 9 3. Webmin Category ............................................................................. 12 Webmin Actions Log ....................................................................... 12 Webmin Configuration ...................................................................... 12 IP Access Control ..................................................................... 13 Port and Address ...................................................................... 14 Logging ............................................................................. 15 Proxy Servers ........................................................................ 15 User Interface ........................................................................ 15 Webmin Modules ..................................................................... 15 Operating System ..................................................................... 18 Language ............................................................................ 18 Index Page Options ................................................................... 18 Upgrade Webmin ..................................................................... 19 Authentication ........................................................................ 19 Reassign Modules .................................................................... 21 Edit Categories ....................................................................... 21 Webmin Themes ...................................................................... 21 Trusted Referers ...................................................................... 22 Anonymous Module Access ............................................................ 22 SSL Encryption ....................................................................... 22 Certificate Authority .................................................................. 22 Webmin Servers ............................................................................ 24 Webmin Users ............................................................................. 25 Editing a Webmin User ................................................................ 25 Creating Webmin Users ............................................................... 26 Webmin Groups ...................................................................... 26 Tutorial: Securing Webmin .................................................................. 27 Password Policy ...................................................................... 27 Setting Network Access Controls ....................................................... 30 Enabling SSL ........................................................................ 32 Firewall Configuration ................................................................. 34 Other Security Techniques and Tools .................................................... 35 4. Usermin: A Webmin for Users .................................................................. 38 Introduction to Usermin ..................................................................... 38 Usermin Installation ........................................................................ 39 Checking for the Authen-PAM Perl Module .............................................. 39 Getting Usermin ...................................................................... 40 Installing the Package or Tarball ........................................................ 40 Installing Usermin from an RPM ....................................................... 40 Usermin Configuration ...................................................................... 41 Usermin Module Configuration ......................................................... 42 Available Modules .................................................................... 46 When to Use Usermin ................................................................. 46 5. General System Configuration .................................................................. 48 Bootup and Shutdown ...................................................................... 48 Disk and Network Filesystems ............................................................... 49 Linux Native Filesystem Mount Details ................................................. 50 Linux Advanced Mount Options ........................................................ 52 Solaris Filesystem Options ............................................................. 54 Solaris Advanced Mount Options ....................................................... 54 System Documentation ..................................................................... 56 System Documentation Search ......................................................... 56 Searching documentation from another module ........................................... 56 Process Manager ........................................................................... 57 Scheduled Commands ...................................................................... 57 Scheduled Cron Jobs ....................................................................... 58 Software Packages ......................................................................... 59 Introduction to Package Managers ...................................................... 59 Supported Operating Systems .......................................................... 60 Using the Package Manager ............................................................ 60 System Logs ............................................................................... 63 Adding a System Log ................................................................. 64 Users and Groups .......................................................................... 66 Users and Groups Module Configuration ................................................ 66 Creating a new User ................................................................... 73 6. Server and Daemon Configuration ............................................................... 80 Introduction to Servers ...................................................................... 80 7. Apache Webserver ............................................................................. 82 Global Configuration ....................................................................... 82 Processes and Limits ....................................................................... 83 Networking and Addresses .................................................................. 86 Apache Modules ........................................................................... 89 About Apache Modules ................................................................ 90 MIME Types .............................................................................. 93 Miscellaneous ............................................................................. 94 CGI Programs ............................................................................. 96 Per-Directory Options Files .................................................................. 97 Virtual Servers ............................................................................