Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Front Cover
Title Page
Copyright
Preface
Acknowledgments
About the Author
Conventions Used in this Book
About the RHCSA (EX200) and RHCE (EX300) Exams
About this Book
Table of Contents
RHCSA Section
01. Installing RHEL7 on Physical Computer Using Local DVD
Overview of Linux
Linux Distributions from Red Hat
Obtaining, Planning, and Installing RHEL7
Downloading RHEL7 and Preparing Boot Media
Installation Media Options
Hardware Requirements
Planning the Installation
Virtual Console Screens
Installation Logs
LAB Setup for Practicing RHCSA & RHCE Exam Objectives
Exercise 1-1: Install RHEL7 Server Using DVD
Initiating Installation
Configuring Date & Time
Adding Support for Keyboards and Languages
Choosing Installation Source
Selecting Software to be Installed
Configuring Installation Destination
Configuring Network & Hostname
Beginning Installation
Setting root Password and Creating a User Account
Finishing Installation
Performing Post-Installation Tasks
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 1-1: Perform a Default Local Installation
Lab 1-2: Perform a Custom Local Installation
02. Using Basic Linux Tools
Accessing a RHEL System Remotely
Accessing from Another Linux System
Accessing from Windows
Common Linux Commands
Understanding the Command Syntax
Listing Files and Directories
Printing Working Directory
Changing Directories
Showing the Terminal File
Listing Currently Logged-In Users
Inspecting System’s Uptime
Viewing User Login Name
Examining User and Group Information
Viewing History of Successful User Login Attempts
Viewing History of Failed User Login Attempts
Displaying Recent User Logins
Viewing System Information
Displaying and Setting Hostname
Clearing the Screen
Displaying and Setting System Date and Time
Listing and Modifying System Timezone
Displaying Command Path
Counting Words, Lines, and Characters
Listing PCI, USB, and CPU Device Information
Compression Tools
Using gzip and gunzip
Using bzip2 and bunzip2
Archiving Tools
Using tar
Using star
The vi (vim) Editor
Modes of Operation
Starting vi
Inserting text
Navigating within vi
Deleting Text
Undoing and Repeating
Searching and Replacing Text
Copying, Moving, and Pasting Text
Changing Text
Saving and Quitting vi
Online Help
Using man
man Sections
Searching by Keyword
Displaying Short Description
The info Command
Documentation in the /usr/share/doc Directory
Red Hat Enterprise Linux 7 Documentation
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 2-1: Navigate Linux Directory Tree
Lab 2-2: Verify User and Group Identity
Lab 2-3: Check User Login Attempts
Lab 2-4: Identify the System and Kernel
Lab 2-5: Check and Modify System Date and Time
Lab 2-6: Check System Uptime and Count Lines
Lab 2-7: Archive, List, and Restore Files
Lab 2-8: Practice the vi Editor
03. Working with Files and File Permissions
File System Tree
The Root File System (/) – Disk-Based
The Boot File System (/boot) – Disk-Based
The Variable File System (/var) – Disk-Based
The UNIX System Resources File System (/usr) – Disk-Based
The Optional File System (/opt) – Disk-Based
The Home File System (/home) – Disk-Based
The Devices File System (/dev) – Virtual
The Process File System (/proc) – Virtual
The System File System (/sys) – Virtual
The Temporary File System (/tmp) – Virtual
Absolute and Relative Pathnames
Absolute Path
Relative Path
File Types
Regular Files
Directory Files
Executable Files
Symbolic Link Files
Device Files
File and Directory Operations
Creating Files and Directories
Listing Files and Directories
Displaying File Contents
Copying Files and Directories
Moving and Renaming Files and Directories
Removing Files and Directories
File and Directory Control Attributes
Finding Files
Using the find Command
Linking Files and Directories
Soft Link
Hard Link
File and Directory Permissions
Determining Access Permissions
Permission Classes
Permission Types
Permission Modes
Modifying Access Permissions
Exercise 3-1: Modify File Permissions Using Symbolic Notation
Exercise 3-2: Modify File Permissions Using Octal Notation
Default Permissions
Calculating Default Permissions
File Ownership and Group Membership
Exercise 3-3: Modify File Ownership and Group Membership
Special Permissions
The setuid Bit on Executable Files
The setgid Bit on Executable Files
The setgid Bit on Shared Directories
Exercise 3-4: Use setgid for Group Collaboration
The Sticky Bit on Public Directories
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 3-1: Find Files and Determine File Types
Lab 3-2: File and Directory Operations
Lab 3-3: Find Files Using Different Criteria
Lab 3-4: Manipulate File Permissions
Lab 3-5: Configure Group Collaboration
04. Dealing with the Bash Shell, Processes, and Scheduling
Introducing the BASH Shell
Variables
Setting and Unsetting Variables, and Viewing their Values
Command and Variable Substitution
Input, Output, and Error Redirection
Command History
Command Line Editing
Tab Completion
Tilde Substitution
Regular Expression
Metacharacters
Quoting Mechanisms
Understanding Processes
Viewing and Monitoring Processes
Viewing and Monitoring Processes Graphically
Listing a Specific Process
Listing Processes by User and Group Ownership
Process States
Understanding Process Niceness
Viewing and Changing Process Niceness
Renicing a Running Process
Controlling Processes with Signals
Understanding Job Scheduling
Controlling User Access
Scheduler Log File
Using at
Exercise 4-1: Submit, View, List, and Remove an at Job
Using crontab
Syntax of User Crontab Files
Exercise 4-2: Add, List, and Remove a Cron Job
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 4-1: Customize the Shell Prompt
Lab 4-2: Redirect the Standard Input, Output, and Error
Lab 4-3: Nice and Renice a Process
Lab 4-4: Configure a User Crontab File
05. Managing Software Packages
Package Overview
Packages and Packaging
Package Naming
Package Dependency
Package Database
Red Hat Subscription Management Service
Red Hat Customer Portal
Subscription Asset Manager
Subscription-Manager
Registering a System and Attaching Subscription
Detaching Subscription and Unregistering the System
Managing Packages with rpm
Querying Packages
Installing a Package
Upgrading a Package
Freshening a Package
Overwriting a Package
Removing a Package
Extracting Files from an Installable Package
Validating Package Integrity and Credibility
Viewing GPG Keys
Verifying Package Attributes
Exercise 5-1: Perform Package Management Tasks Using rpm
Managing Packages with yum
Yum Configuration File
Yum Repository
The yum Command
Viewing Enabled Repositories
Exercise 5-2: Create a Local Yum Repository
Exercise 5-3: Create a DVD Yum Repository
Listing Packages and Package Groups
Installing and Updating Packages and Package Groups
Displaying Package and Package Group Header Information
Searching Packages
Removing Packages and Package Groups
Checking for Package Updates
Downloading Packages
Exercise 5-4: Perform Package Management Tasks Using yum
Viewing yum Transaction History
Managing Packages with Graphical Toolset
Adding and Removing Packages
Viewing and Updating Packages
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 5-1: Set up a Third Party Yum Repository
Lab 5-2: Configure a Local Yum Repository
Lab 5-3: Install Package Groups
06. Configuring Server Virtualization and Network Installing RHEL7
Server Virtualization Technology
Virtualization Benefits
Verifying Host Virtualization Support
Virtualization Packages
Virtual Network Switch and Virtual Network Interface
Storage Pool and Storage Volume
Virtualization Management Tools
The Virtual Machine Manager (virt-manager)
The virsh Command
The virt-install Command
Managing Hypervisor
Exercise 6-1: Create a NAT Virtual Network Using virt-manager
Exercise 6-2: Define a NAT Virtual Network Using virsh
Exercise 6-3: Create a Storage Pool and Volume Using virt-manager
Exercise 6-4: Create a Storage Pool and Volume Using virsh
Configuring FTP Installation Server
Exercise 6-5: Configure an FTP Installation Server
Exercise 6-6: Replace DVD Yum Repository with FTP Yum Repository
Exercise 6-7: Set Up Bi-directional Communication Between Host and Virtual Machines
Network Installing RHEL Using virt-manager
Exercise 6-8: Network Install RHEL7 Using virt-manager
Kickstart Installation Method
Creating a Kickstart Configuration File
Exercise 6-9: Network Install RHEL7 Using virt-install with Kickstart Configuration
The wget Utility
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 6-1: Create a Virtual Network
Lab 6-2: Create a Virtual Storage Pool
Lab 6-3: Perform a Network Installation of RHEL7
Lab 6-4: Perform a Kickstart Installation of RHEL7
Lab 6-5: Add Virtual Disks to Virtual Machines
07. Booting RHEL7, Updating Kernel, and Logging Messages
Linux Boot Process
The Firmware Phase
The GRUB Phase
The Kernel Phase
The Initialization Phase
Managing GRUB
Understanding the GRUB Menu
The /etc/default/grub File
The /boot/grub2/grub.cfg File
Booting into Specific Targets
Exercise 7-1: Resetting the Root User Password
Modifying the Default Kernel to Boot
The Linux Kernel
Determining Kernel Version
Understanding Kernel Directory Structure
Managing the Kernel
Installing and Updating the Kernel
Exercise 7-2: Install a New Kernel
Listing Loaded Modules
Displaying Module Information
Loading and Unloading Modules
Installing New Modules
init and Upstart
Overview of systemd
Units
Targets
Control Groups
Managing Units and Control Groups
The systemctl Command
Managing Units
Managing Service Units
Managing Target Units
Viewing System Boot Performance Statistics
Managing Control Groups
System Logging
The System Log Configuration File
Maintaining and Managing Log Files
The Boot Log File
The System Log File
Understanding the Journal
Viewing the Journal
Storing Journal Information Persistently
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 7-1: Modify the Default Boot Target
Lab 7-2: Install a New Kernel
08. Managing Users and Groups
Understanding Local User Authentication Files
The passwd File
The shadow File
The group File
The gshadow File
Maintaining Integrity of Authentication Files
Preventing Corruption in Authentication Files
Activating and Deactivating Shadow Password Mechanism
Managing User Accounts and Password Aging with Commands
The useradd, usermod, and userdel Commands
The chage Command
The passwd Command
The useradd and login.defs Files
Exercise 8-1: Create a User Account with Default Values
Exercise 8-2: Create a User Account with Custom Values
Exercise 8-3: Create a User Account with No Login Access
Exercise 8-4: Set up Password Aging on User Accounts
Exercise 8-5: Modify and Delete a User Account
Switching Users
Doing as Superuser
Managing Group Accounts with Commands
The groupadd, groupmod, and groupdel Commands
The gpasswd Command
Exercise 8-6: Create, Modify, and Delete Group Accounts
Exercise 8-7: Manage Groups with gpasswd Command
Managing Users, Groups, and Password Aging with the User Manager Tool
Shell Startup Files
System-wide Shell Startup Files
Per-user Shell Startup Files
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 8-1: Create and Modify a User Account
Lab 8-2: Modify a Group Account
09. Partitioning and Managing Disk Storage
MBR vs GPT
Adding and Verifying Virtual Block Storage
Adding 3x2GB Virtual Block Disks Using virt-manager
Adding 1x2GB Virtual Block Disk Using Command Line
Verifying the New Storage
Managing Storage with parted
Exercise 9-1: Create an MBR Partition Table and a Partition Using parted
Exercise 9-2: Delete an MBR Partition Using parted
Managing Storage with gdisk
Exercise 9-3: Create a GPT Partition Table and a Partition Using gdisk
Exercise 9-4: Delete a GPT Partition Using gdisk
Partitioning with the Graphical Disk Utility
Understanding Logical Volume Manager
Physical Volume
Volume Group
Physical Extent
Logical Volume
Logical Extent
Thin Provisioning
Managing Storage with Logical Volume Manager
LVM Commands
Exercise 9-5: Create a Physical Volume and a Volume Group
Exercise 9-6: Create a Logical Volume
Exercise 9-7: Extend a Volume Group and a Logical Volume
Exercise 9-8: Rename, Reduce, and Remove a Logical Volume
Exercise 9-9: Reduce and Remove a Volume Group
Exercise 9-10: Uninitialize a Physical Volume
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 9-1: Manage Partitioning with parted
Lab 9-2: Manage Partitioning with gdisk
Lab 9-3: Manage Storage with LVM
10. Constructing and Using File Systems and Swap
Understanding File Systems
Types of File System
Extended File Systems
XFS File System
VFAT File System
Managing File Systems
File System Administration Commands
Mounting and Unmounting a File System
Determining the UUID of a File System
Labeling a File System
Automatically Mounting a File System at Reboots
Reporting File System Usage
Exercise 10-1: Create and Mount Extended File Systems
Exercise 10-2: Resize an Extended File System
Exercise 10-3: Create, Mount, and Extend an XFS File System
Exercise 10-4: Create and Mount a VFAT File System
Exercise 10-5: Create, Mount, Unmount, and Remove File Systems
Checking and Repairing Extended File Systems
Exercise 10-6: Repair a Damaged Extended File System
Checking and Repairing an XFS File System
Mounting and Unmounting Remote File Systems
Exercise 10-7: Mount and Unmount an NFS File System
Exercise 10-8: Mount and Unmount a CIFS File System
AutoFS
Benefits of Using AutoFS
How AutoFS Works
AutoFS Configuration File
AutoFS Maps
Exercise 10-9: Access an NFS Share with a Direct Map
Exercise 10-10: Access an NFS Share with an Indirect Map
Automounting User Home Directories Using Wildcard Substitution
Understanding and Managing Swap
Determining Swap Usage
Exercise 10-11: Create and Activate Swap Spaces
Exercise 10-12: Deactivate and Remove Swap Spaces
Access Control Lists (ACLs)
ACL Management Commands
The Role of the mask Value
Exercise 10-13: Determine, Set, and Delete Access ACLs
Default ACLs
Exercise 10-14: Set, Confirm, and Delete Default ACLs
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 10-1: Create and Mount an Extended File System
Lab 10-2: Automount a Network File System
Lab 10-3: Create and Enable Swap
Lab 10-4: Apply ACL Settings
11. Controlling Access through Firewall and SELinux
Understanding and Managing Firewall
iptables with and without firewalld
Understanding the iptables Configuration File
Controlling iptables and firewalld Services
The iptables Command
Exercise 11-1: Add and Activate iptables Rules
Exercise 11-2: Add and Remove iptables Rules
Understanding firewalld Configuration Files
The firewall-cmd Command
Exercise 11-3: Add and Manage Firewall Rules
Exercise 11-4: Modify and Remove Firewall Rules
Overview of the Firewall Configuration Tool
Overview of Security Enhanced Linux
Key Terms
SELinux Contexts for Users
SELinux Contexts for Processes
SELinux Contexts for Files
SELinux Contexts for Ports
Domain Transitioning
Copying, Moving, and Archiving Files with SELinux Contexts
SELinux Booleans
Managing SELinux
Management Commands
Controlling Activation Mode
Querying Status
Exercise 11-5: Modify SELinux Contexts for Users
Exercise 11-6: Modify SELinux Contexts for Files
Exercise 11-7: Add a Non-Standard Port to SELinux Policy
Exercise 11-8: Copy Files with and without SELinux Context
Overview of the SELinux Administration Tool
Viewing and Analyzing SELinux Alerts
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 11-1: Add Firewall Rules
Lab 11-2: Disable and Enable the SELinux Operating Mode
12. Administering Network Interfaces and Network Clients
Basic Networking
Hostname
IPv4 Address
Network Classes
Subnetting and Subnet Mask
Protocol
TCP and UDP Protocols
Ethernet Address and Address Resolution Protocol
Network Interfaces
Consistent Interface Naming
Understanding Interface Configuration File
Understanding the Hosts Table
Interface Administration Commands
What is NetworkManager?
Exercise 12-1: Present, Configure, and Activate a Network Interface Manually
The nmcli Command
Exercise 12-2: Present, Configure, and Activate a Network Interface Using NetworkManager CLI
Testing Network Connectivity with ping
Overview of Graphical Network Administration Tools
The NTP Client
Activate the NTP Client
Overview of the System-Config-Date GUI
The OpenLDAP Client
Benefits of Using OpenLDAP
OpenLDAP Terminology
OpenLDAP Roles
OpenLDAP Client Packages
OpenLDAP Client Configuration Files
The authconfig Command
Exercise 12-3: Configure LDAP Client to Obtain User and Group Information
Overview of Graphical Authentication Configuration Tool
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 12-1: Assign a New IP to the System
13. Securing Access with SSH and TCP Wrappers
The OpenSSH Service
OpenSSH Versions and Algorithms
Encryption Techniques
Authentication Methods
OpenSSH Packages
Commands and Daemon
System-Wide Server and Client Configuration Files
Per-User Client Files
Exercise 13-1: Configure Private/Public Key-Based Authentication
Executing a Command Remotely Using ssh
Copying Files Using scp
Transferring Files Using sftp
Accessing OpenSSH Server from Windows
TCP Wrappers
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 13-1: Establish Key-Based Authentication
Lab 13-2: Configure TCP Wrappers to Secure Services
RHCE Section
14. Writing Shell Scripts
Shell Scripts
Displaying System Information
Executing a Script
Debugging a Shell Script
Using Local Variables
Using Pre-Defined Environment Variables
Parsing Command Output
Understanding and Using Command Line Arguments
Shifting Command Line Arguments
Writing an Interactive Script
Logical Statements
Exit Codes
Test Conditions
The if-then-fi Statement
The if-then-else-fi Statement
The if-then-elif-fi Statement
Looping Statements
Test Conditions
The for-do-done Loop
The while-do-done Loop
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 14-1: Write a Script to Create Logical Volumes
Lab 14-2: Write a Script to Create File Systems
15. Configuring Bonding, Teaming, IPv6, and Routing
Link Aggregation
Interface Bonding
Exercise 15-1: Configure Interface Bonding by Editing Files
Using the nmcli Command to Configure Bonding and Teaming
Exercise 15-2: Configure Interface Bonding with NetworkManager CLI
Interface Teaming
Exercise 15-3: Configure Interface Teaming by Editing Files
Exercise 15-4: Configure Interface Teaming with NetworkManager CLI
Graphical Network Administration Tools for Configuring Bonding and Teaming
IPv6
Managing IPv6
Exercise 15-5: Configure and Test IPv6 Addresses
Routing
Routing Table
Managing Routes
Exercise 15-6: Add Static Routes Manually
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 15-1: Set Up Teaming between Two Systems Using NetworkManager TUI
Lab 15-2: Set Up Bonding between Two Systems Using NetworkManager TUI
Lab 15-3: Configure Static Routes
16. Synchronizing Time with NTP
Understanding Network Time Protocol
Time Source
NTP Roles
Stratum Levels
Managing Network Time Protocol
NTP Packages and Utilities
NTP Configuration File
Exercise 16-1: Use Pre-Defined NTP Polling Client
Exercise 16-2: Configure NTP Server and Polling Client
Exercise 16-3: Configure an NTP Peer
Exercise 16-4: Configure a Broadcast Server and Client
Overview of System-Config-Date Tool
Updating System Clock Manually
Querying NTP Servers
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 16-1: Configure the Network Time Protocol Service
17. Working with Firewalld and Kerberos
Understanding Firewalld
Network Zones
Services
Ports
Direct Interface and Rich Language
Network Address Translation and IP Masquerading
Port Forwarding
Managing Firewalld
firewalld Command Options for Zone Management
Exercise 17-1: View and Manage Zones
firewalld Command Options for Service Management
Exercise 17-2: View and Manage Services
firewalld Command Options for Port Management
Exercise 17-3: View and Manage Ports
firewalld Command Options for Using Rich Language Rules
Exercise 17-4: Manage Rules Using Rich Language
firewalld Command Options for Masquerade Management
Exercise 17-5: Add and Remove Masquerading
firewalld Command Options for Port Forwarding
Exercise 17-6: Add and Remove Port Forwarding
Understanding and Managing Kerberos
Terminology
How Kerberos Authenticates Clients
Kerberos Packages and Utilities
Exercise 17-7: Configure a Client to Authenticate Using Kerberos
Overview of Authentication Configuration Tool for Kerberos Client Setup
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 17-1: Create a Persistent firewalld Service
Lab 17-2: Create a Persistent Rich Rule
Lab 17-3: Configure a Kerberos Client
18. Tuning Kernel Parameters, Reporting System Usage, and Logging Remotely
Understanding and Tuning Kernel Parameters
Run-Time Parameters
Exercise 18-1: Tune Run-Time Kernel Parameters
Boot-Time Parameters
Exercise 18-2: Tune Boot-Time Kernel Parameters
Generating System Usage Reports
The sysstat Toolset
The dstat Tool
Logging System Messages Remotely
Exercise 18-3: Configure a System as a Loghost
Exercise 18-4: Configure a System as a Loghost Client
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 18-1: Modify a Run-Time Kernel Parameter
Lab 18-2: Modify a Boot-Time Kernel Parameter
Lab 18-3: Set Up a Central Loghost System
19. Sharing Block Storage with iSCSI
Understanding the iSCSI Protocol
Terminology
iSCSI Software Packages
Managing iSCSI Target Server and Initiator
Understanding the targetcli Command for Target Administration
Adding 1x2GB Virtual Disk to Target Server
Exercise 19-1: Configure a Disk-Based iSCSI Target LUN
Understanding the iscsiadm Command for Initiator Administration
The /etc/iscsi/iscsid.conf File
The /etc/iscsi/initiatorname.iscsi File
Exercise 19-2: Mount the iSCSI Target on Initiator
Exercise 19-3: Configure a File-Based iSCSI Target and Mount it on Initiator
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 19-1: Build an iSCSI LUN on an LVM Logical Volume and Mount it on Initiator
20. Sharing File Storage with NFS
Understanding Network File System
Benefits of Using NFS
NFS Versions
NFS Security
NFS Daemons
NFS Commands
NFS Configuration and Functional Files
The /etc/exports File and NFS Server Options
Configuring NFS Server and Client
SELinux Requirements for NFS Operation
Exercise 20-1: Export Shares to NFS Client
NFS Client Options
Exercise 20-2: Mount a Share on NFS Client
Exercise 20-3: Export a Share for Group Collaboration on NFS Client
Exercise 20-4: Provide Secure Access to NFS Share with Kerberos
Monitoring NFS Activities
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 20-1: Share a Directory with NFS
Lab 20-2: Share a Directory for Group Collaboration
Lab 20-3: Access NFS Shares via Kerberos
21. Sharing File Storage with Samba
Understanding Samba
Benefits of Using Samba
Samba Daemon
Samba Commands
Samba Configuration and Functional Files
Understanding Samba Configuration File
Samba Software Packages
Configuring Samba Server and Client
SELinux Requirements for Samba Operation
Exercise 21-1: Provide Network Shares to Samba Client
Exercise 21-2: Access and Mount a Share on Samba Client
Exercise 21-3: Provide a Share for Group Collaboration on Samba Client
Exercise 21-4: Provide Secure Access to Samba Share with Kerberos
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 21-1: Share a Directory with Samba
Lab 21-2: Share a Directory with Samba for Group Collaboration
22. Hosting Websites with Apache
HTTP and the Apache Web Server
Apache Features
Apache Daemon
Apache Commands
Apache Configuration Files
Analysis of the httpd.conf File
Apache Log Files
Apache Software Packages
Access Control
Configuring Apache Web Servers
SELinux Requirements for Apache Operation
Exercise 22-1: Configure the Default Apache Web Server
Exercise 22-2: Modify the Default Web Server to Use a Different Home Page and Hostname
Exercise 22-3: Extend the Web Server to Provide Access to a Private Directory
Exercise 22-4: Modify the Web Server to Provide Access to Group-Managed Contents
Exercise 22-5: Modify the Web Server to Limit Access to Select Hosts on a Non-Default Port
Understanding and Configuring Apache Virtual Hosts
Virtual Host Configuration File
Exercise 22-6: Configure a Simple Virtual Host
Exercise 22-7: Configure a More Complex Virtual Host
Understanding and Configuring Apache Web Servers over SSL/TLS
HTTPS/SSL Software Packages
The OpenSSL Toolkit
The OpenSSL Configuration File and its Analysis
OpenSSL Log Files
Exercise 22-8: Generate a Key Pair and Self-Signed Certificate
Exercise 22-9: Configure a Secure Virtual Host
Overview of CGI and CGI Scripts
Exercise 22-10: Deploy a Basic CGI Script
Exercise 22-11: Run a Basic CGI Script from a non-default location
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 22-1: Configure a Web Server with User-Based and Host-Based Security
Lab 22-2: Configure a Web Server to Host Two Websites
Lab 22-3: Configure a Secure Virtual Host
Lab 22-4: Deploy a CGI Script
23. Sending and Receiving Electronic Mail
SMTP and the Email System
Common Terms
How the Email System Works
Understanding Postfix
Postfix Daemons
Postfix Commands
Postfix Configuration Files
Postfix Logging
Managing Postfix
SELinux Requirements for Postfix Operation
Exercise 23-1: Configure a Central Mail Server
Exercise 23-2: Test Central Mail Server from Remote Client
Exercise 23-3: Configure Postfix to Forward Local Mail to a Central Mail Server and Reject Incoming Mail
Exercise 23-4: Configure Postfix to Receive Local Network Mail and Forward All Mail to a Central Mail Server
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 23-1: Establish a Network Mail Server and Test It
Lab 23-2: Establish a Forwarding Mail Server and Test It
24. Configuring DNS
Domain Name System and Name Resolution
What is BIND?
DNS Name Space and Domains
DNS Root Servers
DNS Roles
Types of Nameserver Configurations
DNS Zones and Zone Files
BIND Software Packages and Service Daemon
Analysis of the Default Nameserver Configuration File
Analysis of the Default Zone Configuration File
DNS Message Logging
Configuring BIND Server
SELinux Requirements for BIND Operation
Exercise 24-1: Configure a Caching-Only DNS Server
Understanding, Configuring, and Troubleshooting DNS Client
Overview of DNS Client Configuration Files
Overview of DNS Lookup Utilities
Exercise 24-2: Configure DNS Client and Test Server Configuration
Troubleshooting DNS Client Issues
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 24-1: Configure a Caching-Only Nameserver
25. Managing MariaDB
Understanding Databases, DBMS, and MariaDB
What is a Relational Database?
Overview of MariaDB
MariaDB Software Packages and Service Daemon
MariaDB Commands
MariaDB Configuration Files
Logging MariaDB Messages
Managing MariaDB
SELinux Requirements for MariaDB Operation
Exercise 25-1: Install and Configure MariaDB
Starting the MariaDB Shell and Understanding its Usage
Displaying Connection Status
Subcommands for Database and Table Operations
Exercise 25-2: Create Database and Table, and Insert Records
Exercise 25-3: Perform SQL Queries against a Database
Exercise 25-4: Rename Table, and Update and Delete Records
Backing Up and Restoring a Database or Table
Exercise 25-5: Backup, Drop, Recreate, and Restore a Database
Chapter Summary
Chapter Review Questions
Answers to Chapter Review Questions
DIY Challenge Labs
Lab 25-1: Create a Database and Table, and Add Records
Lab 25-2: Update and Delete Records
Lab 25-3: Rebuild a Database
Appendix A: Sample RHCSA Exam 1
Appendix B: Sample RHCSA Exam 2
Appendix C: Sample RHCE Exam 1
Appendix D: Sample RHCE Exam 2
Bibliography
Glossary
Index
← Prev
Back
Next →
← Prev
Back
Next →