万本电子书0元读

万本电子书0元读

顶部广告

Webmin Administrator's Cookbook电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Micha? Karzyński

出  版  社:Packt Publishing

出版时间:2014-03-26

字       数:293.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Written in a cookbook format with practical recipes this book helps you to perform various administrative tasks using Webmin and enables you to perform common jobs more efficiently. This book is perfect for System administrators who want to learn more advanced concepts of Webmin and how it can help to set up a server for development, testing or deployment.
目录展开

Webmin Administrator's Cookbook

Table of Contents

Webmin Administrator's Cookbook

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Errata

Piracy

Questions

1. Setting Up Your System

Introduction

Installing Webmin on a Debian-based system

How to do it...

How it works...

There's more...

See also

Installing Webmin on an RPM-based system

How to do it...

How it works...

There's more...

See also

Installing Webmin on another system

Getting ready

How to do it...

How it works...

See also

Connecting to Webmin

Getting ready

How to do it...

How it works...

There's more...

Changing Webmin's listening port

Specifying the IP address on which Webmin listens

Installing additional Webmin modules

Getting ready

How to do it...

How it works...

There's more...

Installing a module from a repository

Uninstalling a module

See also

Monitoring what Webmin is doing

Getting ready

How to do it...

How it works...

There's more...

Rolling back file changes

See also

Controlling which system services are started at boot

How to do it...

How it works...

There's more...

Creating a custom init script

Inspecting active processes

Inspecting the installed software packages

How to do it...

How it works...

There's more...

Viewing the files installed with a package

Identifying which package installed a file

Installing software packages

Getting ready

How to do it...

How it works...

There's more...

Updating the installed packages to the latest versions

How to do it...

How it works...

There's more...

Enabling Webmin to send an e-mail

Getting ready

How to do it...

How it works...

See also

Getting an e-mail when new versions of packages become available

Getting ready

How to do it...

How it works...

There's more...

Reading the documentation of the installed software

How to do it...

How it works...

There's more...

2. User Management

Introduction

Creating a Webmin user

Getting ready

How to do it...

How it works...

There's more...

Clone a Webmin user

Switch to user

See also

Creating a Webmin group with access to specific modules and options

How to do it...

How it works...

There's more...

Permissions for all modules

See also

Allowing users to log in to Webmin with the system credentials

Getting ready

How to do it...

How it works...

There's more...

Creating Webmin users based on system accounts

Getting ready

How to do it...

How it works...

Controlling who is currently using Webmin

How to do it...

How it works...

Creating a system user account

Getting ready

How to do it...

How it works...

Modifying a user's UID and other information

How to do it...

How it works...

Temporarily disabling a user account

How to do it...

How it works...

Creating and editing a system group

How to do it...

How it works...

Changing a user's password

Getting ready

How to do it...

How it works...

Exporting users and importing them into another system

How to do it...

How it works...

Webmin's batch file format for operations on users

Webmin's batch file format for operations on groups

There's more...

Export and import system groups

Batch update user accounts

Batch delete user accounts

See also

Installing Usermin

How to do it...

How it works...

See also

3. Securing Your System

Introduction

Server security checklist

Keeping your system up-to-date

Turning off unnecessary services

Building a firewall around your system

Performing backups

Monitoring your system

Verifying the strength of your passwords

Verifying the system security and setting up intrusion detection and prevention software

Setting up a Linux firewall

Some iptables terminology

Getting ready

How to do it...

How it works...

There's more...

See also

Allowing access to a service through the firewall

Getting ready

How to do it...

How it works...

There's more...

Creating a service accessible only from the internal network

See also

Verifying your firewall by port scanning

Getting ready

How to do it...

How it works...

There's more...

Host discovery with Nmap

Scanning all ports

Scanning without administrative privileges

See also

Turning off unnecessary services

How to do it...

How it works...

Verifying the strength of passwords

Getting ready

How to do it...

How it works...

Disabling root login over SSH

How to do it...

How it works...

Restricting Webmin access to a specific IP

Getting ready

How to do it...

How it works...

There's more...

Allowing access from multiple IP addresses

Allowing access from a dynamically allocated IP

Allowing access from an IP range

Allowing access from the local network

Connecting to Webmin securely over an SSH tunnel

Getting ready

How to do it...

How it works...

There's more...

Sharing the SSH tunnel with other machines

Creating a tunnel on Windows using Putty

See also

Closing inactive Webmin sessions automatically

How to do it...

How it works...

4. Controlling Your System

Introduction

Executing a command on the server

How to do it...

How it works...

There's more...

Executing a series of commands

Executing commands conditionally

Executing a command from history

Executing a command as another user

Getting ready

How to do it...

How it works...

There's more...

Passing input to a command

Running tasks in background

Setting a command to be executed in the future

Getting ready

How to do it...

How it works...

There's more...

See also

Scheduling a command to run regularly with cron

Getting ready

How to do it...

How it works...

There's more...

Disabling a cron task temporarily

Cloning a cron task

Specifying which users can schedule tasks with cron

Creating a panel for the commands that you execute often

Getting ready

How to do it...

How it works...

There's more...

Cloning a command

Specifying command arguments

Making the command available in Usermin

See also

Creating a panel with the database commands that you execute often

Getting ready

How to do it...

How it works...

See also

Running a terminal emulator in the browser

How to do it...

How it works...

There's more...

5. Monitoring Your System

Introduction

Viewing and searching through system logfiles

Getting ready

How to do it...

How it works…

There's more...

Configuring system logs to refresh automatically

See also

Saving Syslog messages to a file

Getting ready

How to do it...

How it works...

There's more...

Adding other logfiles to Webmin

Getting ready

How to do it…

How it works...

There's more...

Configuring logfile rotation

Getting ready

How to do it...

How it works...

There's more...

Rotating logfiles on demand

Editing default options

Sending logfiles by email when rotating

Listing recent logins

How to do it...

How it works...

There's more...

Receiving an e-mail when a service stops running

Getting ready

How to do it...

How it works...

There's more...

Inspecting monitor history

Using predefined monitors

Monitoring system load

Monitoring disk space

See also

Automatically restarting a service that goes down

Getting ready

How to do it...

How it works...

Monitoring a remote server

Getting ready

How to do it...

How it works...

There's more...

Checking that a remote server is up

Checking that a remote server is running a network service

6. Managing Files on Your System

Introduction

Downloading files from the server

How to do it...

How it works...

See also

Uploading files to the server

Getting ready

How to do it...

How it works...

There's more...

Downloading files from the Web directly onto your server

Downloading files from the Web in the background

Managing files and directories on the server

Getting ready

How to do it...

Copying or moving a file or directory

Renaming a file or directory

Deleting a file or directory

Editing a file on the server

Creating a directory on the server

Creating a new file on the server

Creating a symbolic link on the server

Downloading a directory and its content

Extracting files from a compressed archive

How it works...

See also

Changing file ownership and permissions

Getting ready

How to do it...

How it works...

There's more...

Enabling the setuid bit on an executable file

Setting the sticky bit on a directory

Changing ACLs on a directory

Setting up network-shared folders for Windows

Getting ready

How to do it...

Creating a UNIX pseudo user

Creating a Samba shared network folder

Creating Samba user accounts

Granting Samba users access to the shared folder

How it works...

There's more...

Sharing home directories

Checking who's connected and disconnecting sessions

Debugging Samba

Mounting a Windows-shared folder

Getting ready

How to do it...

How it works...

There's more...

Setting up an NFS-shared volume

Getting ready

How to do it...

How it works...

There's more...

Granting access to multiple clients

See also

Mounting a remote NFS volume

Getting ready

How to do it...

How it works...

There's more...

Mounting NFS v4 exports

See also

Giving users access to your server via SFTP

Getting ready

How to do it...

How it works...

See also

Giving users access to your server via FTP

How to do it...

Opening FTP access in your firewall

How it works...

Passive and active FTP connections

Global configuration and virtual servers

There's more...

Restricting access to users' home directories

Denying FTP access to some users

FTP-only users

See also

7. Backing Up Your System

Introduction

Backing up configuration files

Getting ready

How to do it...

How it works...

There's more...

See also

Restoring configuration files from backup

How to do it...

How it works...

There's more...

See also

Automatically backing up configuration files

Getting ready

How to do it...

How it works...

See also

Creating a backup of a selected directory

Getting ready

How to do it...

How it works...

There's more...

Restoring files from a backup archive

See also

Creating a backup of an entire mount point

Getting ready

How to do it...

How it works...

There's more...

Creating an incremental backup archive

Restoring data from a backup archive

See also

Backing up to a remote host

Getting ready

How to do it...

How it works...

Setting up automatic backups

How to do it...

How it works...

Backing up databases

How to do it...

How it works...

See also

8. Running an Apache Web Server

Introduction

Installing Apache on your system

Getting ready

How to do it...

How it works...

There's more...

Setting Apache to start at system boot time

Monitoring that Apache is up and running

See also

Restarting Apache

How to do it...

How it works...

There's more...

Verifying Apache configuration syntax

Enabling Apache modules

How to do it...

How it works...

There's more...

Installing additional modules from software packages

Creating a static HTML site

How to do it...

How it works...

See also

Creating a virtual host

Getting ready

How to do it...

How it works...

There's more...

Creating an IP-based virtual host

See also

Setting options for directories, files, and locations

Getting ready

How to do it...

How it works...

There's more...

Setting options on files with names matching a pattern

Setting options for specific URLs

Changing matching path or pattern

Setting options using an .htaccess file

Creating a password-protected website

Getting ready

How to do it...

Creating a user account

How it works...

There's more...

Keeping Apache and system accounts synchronized

See also

Displaying a listing of files in a directory

Getting ready

How to do it...

How it works...

There's more...

See also

Redirecting incoming requests

Getting ready

How to do it...

How it works...

There's more...

Creating a filesystem alias

Setting up encrypted websites with SSL

Getting ready

Generating a private key

Making a self-signed certificate

Obtaining a commercially signed certificate

Inspecting certificate data

How to do it...

How it works...

There's more...

Logging incoming requests and errors

Getting ready

How to do it...

How it works...

See also

Analyzing logfiles using Webalizer

Getting ready

How to do it...

How it works...

There's more...

9. Running a MySQL Database Server

Introduction

Installing the MySQL database server

How to do it...

How it works...

There's more...

Making MySQL ready for production use

See also

Allowing access to MySQL over the network

Getting ready

How to do it...

Instructing MySQL server to listen for network connections

Creating a new user

Granting user access to database

Testing the connection

How it works...

There's more...

Managing databases remotely

See also

Accessing your MySQL server over an SSH tunnel

Getting ready

How to do it...

How it works...

There's more...

Making an SSH tunnel in MySQL Workbench

See also

Creating a new database

How to do it...

How it works...

See also

Creating users and granting permissions to databases

Getting ready

How to do it...

Creating a user account

Granting privileges

How it works...

There's more...

Granting permissions to a specific database table

Granting permissions to a specific column in a database table

Automatically granting new system users access to MySQL

Creating a backup of your database

Getting ready

How to do it...

How it works...

There's more...

Backing up all databases automatically

Exporting a database table to CSV

See also

Executing custom SQL commands

How to do it...

How it works...

See also

Restoring database from the backup

Getting ready

How to do it...

How it works...

There's more...

Editing the structure of your database

Getting ready

How to do it...

Creating a table in a database

Adding a field to a database table

Editing a field

Creating an index

Deleting an index

Deleting a field

Deleting a table from the database

How it works...

See also

Editing records in a database

Getting ready

How to do it...

Adding a row to database table

Editing a row

Deleting a row

How it works...

See also

Checking who is using your database server

How to do it...

How it works...

There's more...

Installing phpMyAdmin

How to do it...

How it works...

There's more...

10. Running a PostgreSQL Database Server

Introduction

Installing the PostgreSQL database server

How to do it...

How it works...

See also

Locating the PostgreSQL server configuration files

Getting ready

How to do it...

How it works...

There's more...

Determining location of other configuration files and data files

Checking values of other settings

Allowing access to PostgreSQL over the network

Getting ready

How to do it...

How it works...

See also

Accessing the PostgreSQL server over an SSH tunnel

Getting ready

How to do it...

How it works...

See also

Creating a new database

How to do it...

How it works...

See also

Creating users and granting permissions

How to do it...

How it works...

There's more...

See also

Creating a backup of your database

Getting ready

How to do it...

How it works...

There's more...

Backing up all databases automatically

Exporting a database table to CSV

See also

Executing custom SQL commands

How to do it...

How it works...

There's more...

Executing a SQL script from a file

See also

Restoring a database from backup

How to do it...

How it works...

There's more...

Editing the structure of your database

Getting ready

How to do it...

How it works...

See also

Editing records in a database

Getting ready

How to do it...

How it works...

See also

Installing phpPgAdmin

How to do it...

How it works...

11. Running Web Applications

Introduction

Generating dynamic pages using CGI

Getting ready

Checking what user and group Apache is running as

How to do it...

How it works...

There's more...

Displaying incoming request headers

Displaying incoming request body

See also

Installing PHP

Getting ready

How to do it...

How it works...

See also

Changing PHP configuration settings

Getting ready

How to do it...

How it works...

There's more...

Modifying PHP settings for a directory using .htaccess files

Modifying PHP settings dynamically inside script code

See also

Displaying PHP errors while debugging

How to do it...

How it works...

See also

Logging in PHP

Getting ready

How to do it...

How it works...

There's more...

See also

Installing WordPress on your server

How to do it...

Creating a database

Creating a virtual host and installing WordPress

How it works...

See also

Installing Drupal on your server

Getting ready

How to do it...

Creating a database

Creating a virtual host and installing WordPress

How it works...

See also

Installing a Django-based application using mod_wsgi

How to do it...

How it works...

See also

12. Setting Up an E-mail Server

Introduction

Setting up your server to send and receive e-mails

Getting ready

How to do it...

How it works...

See also

Setting up secure IMAP access to mailboxes

Getting ready

How to do it...

How it works...

There's more...

See also

Setting up a secure SMTP relay for users

Getting ready

How to do it...

How it works...

There's more...

See also

Controlling the mail queue

Getting ready

How to do it...

How it works...

Reading and writing e-mails on the server

How to do it...

How it works...

Configuring e-mail aliases

How to do it...

How it works...

There's more...

Creating a simple mailing list

Using .forward files

See also

Filtering incoming mail using Procmail and SpamAssassin

How to do it...

How it works...

There's more...

See also

Debugging e-mail-related problems

Getting ready

How to do it...

How it works...

There's more...

Analyzing mail logs

Testing message sending through Webmin

Sending mail from the command line

Using Telnet to test SMTP authentication

See also

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部