Table Of ContentRed Hat Enterprise Linux 7
System Administrator's Guide
Deployment, Configuration, and Administration of Red Hat Enterprise Linux
7
Jana Heves Maxim Svistunov Jaromír Hradílek
Douglas Silas Martin Prpič Stephen Wadeley
Tomáš Čapek Petr Kovář Miroslav Svoboda
Petr Bokoč Peter Ondrejka Eliška Slobodová
Eva Kopalová John Ha David O'Brien
Michael Hideo Don Domingo
Red Hat Enterprise Linux 7 System Administrator's Guide
Deployment, Configuration, and Administration of Red Hat Enterprise Linux
7
Jana Heves
Red Hat Customer Content Services
[email protected]
Maxim Svistunov
Red Hat Customer Content Services
[email protected]
Jaromír Hradílek
Red Hat Customer Content Services
Douglas Silas
Red Hat Customer Content Services
Martin Prpič
Red Hat Customer Content Services
Stephen Wadeley
Red Hat Customer Content Services
Tomáš Čapek
Red Hat Customer Content Services
Petr Kovář
Red Hat Customer Content Services
Miroslav Svoboda
Red Hat Customer Content Services
Petr Bokoč
Red Hat Customer Content Services
Peter Ondrejka
Red Hat Customer Content Services
Eliška Slobodová
Red Hat Customer Content Services
Eva Kopalová
Red Hat Customer Content Services
John Ha
Red Hat Customer Content Services
David O'Brien
Red Hat Customer Content Services
Michael Hideo
Red Hat Customer Content Services
Don Domingo
Red Hat Customer Content Services
Legal Notice
Copyright © 2016 Red Hat, Inc.
This document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0
Unported License. If you distribute this document, or a modified version of it, you must provide
attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red
Hat trademarks must be removed.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert,
Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity
Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other
countries.
Linux ® is the registered trademark of Linus Torvalds in the United States and other countries.
Java ® is a registered trademark of Oracle and/or its affiliates.
XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United
States and/or other countries.
MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and
other countries.
Node.js ® is an official trademark of Joyent. Red Hat Software Collections is not formally
related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack ® Word Mark and OpenStack Logo are either registered trademarks/service
marks or trademarks/service marks of the OpenStack Foundation, in the United States and other
countries and are used with the OpenStack Foundation's permission. We are not affiliated with,
endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Abstract
The System Administrator's Guide documents relevant information regarding the deployment,
configuration, and administration of Red Hat Enterprise Linux 7. It is oriented towards system
administrators with a basic understanding of the system. To expand your expertise, you might
also be interested in the Red Hat System Administration I (RH124), Red Hat System
Administration II (RH134), Red Hat System Administration III (RH254), or RHCSA Rapid Track
(RH199) training courses.
Table of Contents
Table of Contents
.P .a .r t. .I .. B. .a .s .i c. .S .y .s .t .e .m . .C .o .n . f.i g. u. .r a. t. i.o .n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.C .h .a .p . t.e .r . 1. .. S. y. s. t. e. m. . L. o. c. a. l.e . a. n. .d . K. e. y. b. .o .a .r d. . C. o. n. .f i.g .u . r.a .t .i o. n. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.1. Setting the System Locale 7
1.2. Changing the Keyboard Layout 9
1.3. Additional Resources 10
.C .h .a .p . t.e .r . 2. .. C. o. .n .f i.g . u. r.i n. .g . t. h. e. .D . a. t.e . a. n. .d . T. .i m. .e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1. 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1. Using the timedatectl Command 12
2.2. Using the date Command 15
2.3. Using the hwclock Command 17
2.4. Additional Resources 19
.C .h .a .p . t.e .r . 3. .. M. .a .n .a .g .i n. .g . U. .s .e .r s. .a .n .d . .G . r.o .u . p. s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1. Introduction to Users and Groups 21
3.2. Managing Users in a Graphical Environment 22
3.3. Using Command Line Tools 24
3.4. Additional Resources 29
.C .h .a .p . t.e .r . 4. .. G. .a .i n. i.n . g. .P .r .i v. i.l e. g. e. s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1. The su Command 31
4.2. The sudo Command 32
4.3. Additional Resources 33
.P .a .r t. .I I.. .S .u . b. s. c. r.i p. .t i.o . n. .a .n .d . .S .u .p . p. o. r. t. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.C .h .a .p . t.e .r . 5. .. R. e. g. .i s. t.e .r .i n. g. .t .h .e . S. .y .s .t e. m. . a. n. .d . M. .a .n .a .g . i.n .g . S. .u .b .s .c .r .i p. t. i.o .n .s . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1. Registering the System and Attaching Subscriptions 36
5.2. Managing Software Repositories 36
5.3. Removing Subscriptions 37
5.4. Additional Resources 38
.C .h .a .p . t.e .r . 6. .. A. c. c. e. s. s. i.n . g. .S .u . p. p. o. .r t. .U .s .i n. .g . t. h. e. .R . e. d. .H . a. t. S. .u .p .p . o. r.t . T. .o .o .l . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.1. Installing the Red Hat Support Tool 39
6.2. Registering the Red Hat Support Tool Using the Command Line 39
6.3. Using the Red Hat Support Tool in Interactive Shell Mode 39
6.4. Configuring the Red Hat Support Tool 39
6.5. Opening and Updating Support Cases Using Interactive Mode 41
6.6. Viewing Support Cases on the Command Line 43
6.7. Additional Resources 43
.P .a .r t. .I I.I .. I.n .s .t .a .l l.i n. g. . a. n. d. .M . a. n. .a .g .i n. g. . S. o. f. t.w . a. r.e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.C .h .a .p . t.e .r . 7. .. Y. u. .m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7.1. Checking For and Updating Packages 45
7.2. Working with Packages 51
7.3. Working with Package Groups 60
7.4. Working with Transaction History 63
7.5. Configuring Yum and Yum Repositories 69
7.6. Yum Plug-ins 81
7.7. Additional Resources 84
.P .a .r t. .I V. .. I.n . f.r a. s. t. r.u . c. t.u . r.e . S. e. r. v. i.c .e .s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8. 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.C .h .a .p . t.e .r . 8. .. M. .a .n .a .g . i.n .g . S. .e .r v. i.c .e .s . w. .i t.h . .s .y .s .t e. m. .d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8. 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
System Administrator's Guide
8.1. Introduction to systemd 87
8.2. Managing System Services 89
8.3. Working with systemd Targets 96
8.4. Shutting Down, Suspending, and Hibernating the System 101
8.5. Controlling systemd on a Remote Machine 103
8.6. Creating and Modifying systemd Unit Files 103
8.7. Additional Resources 118
.C .h .a .p . t.e .r . 9. .. O. .p .e .n . S. S. H. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . 2. 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.1. The SSH Protocol 121
9.2. Configuring OpenSSH 124
9.3. OpenSSH Clients 132
9.4. More Than a Secure Shell 135
9.5. Additional Resources 136
.C .h .a .p . t.e .r . 1. 0. .. T. .i g. e. r. V. N. .C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1. 3. 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10.1. VNC Server 138
10.2. Sharing an Existing Desktop 140
10.3. VNC Viewer 141
10.4. Additional Resources 144
.P .a .r t. .V .. .S . e. r.v .e .r s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1. 4. 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.C .h .a .p . t.e .r . 1. 1. .. W. .e .b . .S .e .r v. e. r. s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . 4. 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11.1. The Apache HTTP Server 146
.C .h .a .p . t.e .r . 1. 2. .. M. .a .i l. S. .e .r v. e. r.s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . 7. 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12.1. Email Protocols 171
12.2. Email Program Classifications 174
12.3. Mail Transport Agents 175
12.4. Mail Delivery Agents 187
12.5. Mail User Agents 194
12.6. Additional Resources 195
.C .h .a .p . t.e .r . 1. 3. .. D. .i r.e .c .t .o .r y. .S . e. r.v .e .r s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . 9. 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13.1. OpenLDAP 197
.C .h .a .p . t.e .r . 1. 4. .. F. i.l e. .a .n . d. .P .r .i n. t. .S .e .r v. e. r. s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. 1. 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
14.1. Samba 215
14.2. FTP 229
14.3. Print Settings 235
.C .h .a .p . t.e .r . 1. 5. .. C. o. .n .f i.g . u. r.i n. .g . N. .T .P . .U .s .i n. .g . t. h. e. .c .h .r .o .n .y . S. .u .i t. e. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2. 5. 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15.1. Introduction to the chrony Suite 255
15.2. Understanding chrony and Its Configuration 256
15.3. Using chrony 262
15.4. Setting Up chrony for Different Environments 267
15.5. Using chronyc 268
15.6. Additional Resources 269
.C .h .a .p . t.e .r . 1. 6. .. C. .o .n .f .i g. u. r. i.n .g . N. .T . P. .U . s. i.n .g . n. .t p. .d . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 . 7. 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16.1. Introduction to NTP 271
16.2. NTP Strata 271
16.3. Understanding NTP 272
16.4. Understanding the Drift File 273
16.5. UTC, Timezones, and DST 273
2
Table of Contents
16.5. UTC, Timezones, and DST 273
16.6. Authentication Options for NTP 273
16.7. Managing the Time on Virtual Machines 274
16.8. Understanding Leap Seconds 274
16.9. Understanding the ntpd Configuration File 274
16.10. Understanding the ntpd Sysconfig File 276
16.11. Disabling chrony 276
16.12. Checking if the NTP Daemon is Installed 277
16.13. Installing the NTP Daemon (ntpd) 277
16.14. Checking the Status of NTP 277
16.15. Configure the Firewall to Allow Incoming NTP Packets 277
16.16. Configure ntpdate Servers 278
16.17. Configure NTP 279
16.18. Configuring the Hardware Clock Update 284
16.19. Configuring Clock Sources 285
16.20. Additional Resources 285
.C .h .a .p . t.e .r . 1. 7. .. C. .o .n .f .i g. u. r. i.n .g . P. .T .P . .U .s .i n. .g . p. t. p. 4. .l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 . 8. 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
17.1. Introduction to PTP 287
17.2. Using PTP 289
17.3. Using PTP with Multiple Interfaces 292
17.4. Specifying a Configuration File 292
17.5. Using the PTP Management Client 292
17.6. Synchronizing the Clocks 293
17.7. Verifying Time Synchronization 294
17.8. Serving PTP Time with NTP 296
17.9. Serving NTP Time with PTP 297
17.10. Synchronize to PTP or NTP Time Using timemaster 297
17.11. Improving Accuracy 301
17.12. Additional Resources 301
.P .a .r t. .V .I .. M. .o . n. i.t .o .r i.n . g. .a .n .d . .A .u .t .o .m . a. t. i.o .n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. 0. 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.C .h .a .p . t.e .r . 1. 8. .. S. .y .s .t e. m. . M. .o . n. i.t .o .r i.n . g. .T . o. o. l.s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. 0. 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
18.1. Viewing System Processes 304
18.2. Viewing Memory Usage 307
18.3. Viewing CPU Usage 309
18.4. Viewing Block Devices and File Systems 309
18.5. Viewing Hardware Information 315
18.6. Checking for Hardware Errors 317
18.7. Monitoring Performance with Net-SNMP 318
18.8. Additional Resources 331
.C .h .a .p . t.e .r . 1. 9. .. O. .p . e. n. L. M. .I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. 3. 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
19.1. About OpenLMI 333
19.2. Installing OpenLMI 334
19.3. Configuring SSL Certificates for OpenPegasus 335
19.4. Using LMIShell 340
19.5. Using OpenLMI Scripts 378
19.6. Additional Resources 378
.C .h .a .p . t.e .r . 2. 0. .. V. .i e. w. i.n . g. .a .n .d . .M . a. n. a. g. i.n . g. .L .o .g . .F .i l.e .s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. 8. 0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
20.1. Locating Log Files 380
20.2. Basic Configuration of Rsyslog 380
20.3. Using the New Configuration Format 394
20.4. Working with Queues in Rsyslog 396
3
System Administrator's Guide
20.4. Working with Queues in Rsyslog 396
20.5. Configuring rsyslog on a Logging Server 405
20.6. Using Rsyslog Modules 409
20.7. Interaction of Rsyslog and Journal 412
20.8. Structured Logging with Rsyslog 413
20.9. Debugging Rsyslog 416
20.10. Using the Journal 416
20.11. Managing Log Files in a Graphical Environment 422
20.12. Additional Resources 427
.C .h .a .p . t.e .r . 2. 1. .. A. .u .t .o .m . a. t. i.n .g . S. .y .s .t e. m. . T. .a .s .k .s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 . 2. 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
21.1. Cron and Anacron 429
21.2. At and Batch 434
21.3. Additional Resources 438
.C .h .a .p . t.e .r . 2. 2. .. A. .u .t .o .m . a. t. i.c . B. u. .g . R. .e .p .o .r .t i.n . g. .T . o. o. l. (.A . B. R. .T . ). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. 3. 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22.1. Introduction to ABRT 439
22.2. Installing ABRT and Starting its Services 439
22.3. Configuring ABRT 441
22.4. Detecting Software Problems 448
22.5. Handling Detected Problems 450
22.6. Additional Resources 452
.C .h .a .p . t.e .r . 2. 3. .. O. .P .r .o .f i.l e. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4. 5. 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
23.1. Overview of Tools 454
23.2. Using operf 455
23.3. Configuring OProfile Using Legacy Mode 458
23.4. Starting and Stopping OProfile Using Legacy Mode 463
23.5. Saving Data in Legacy Mode 464
23.6. Analyzing the Data 464
23.7. Understanding the /dev/oprofile/ directory 469
23.8. Example Usage 470
23.9. OProfile Support for Java 470
23.10. Graphical Interface 471
23.11. OProfile and SystemTap 474
23.12. Additional Resources 474
.P .a .r t. .V .I I.. .K . e. r.n .e .l ,. M. .o . d. u. l.e . a. n. .d . D. .r i.v .e .r .C . o. n. f. i.g .u .r .a .t i.o . n. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 . 7. 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.C .h .a .p . t.e .r . 2. 4. .. W. .o . r.k .i n. g. .w . i.t .h . t. h. e. .G . R. .U .B . .2 . B. .o .o . t. L. o. .a .d .e .r . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 . 7. 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
24.1. Introduction to GRUB 2 477
24.2. Configuring the GRUB 2 Boot Loader 478
24.3. Making Temporary Changes to a GRUB 2 Menu 478
24.4. Making Persistent Changes to a GRUB 2 Menu Using the grubby Tool 479
24.5. Customizing the GRUB 2 Configuration File 481
24.6. GRUB 2 Password Protection 486
24.7. Reinstalling GRUB 2 488
24.8. GRUB 2 over a Serial Console 489
24.9. Terminal Menu Editing During Boot 491
24.10. Unified Extensible Firmware Interface (UEFI) Secure Boot 496
24.11. Additional Resources 497
.C .h .a .p . t.e .r . 2. 5. .. M. .a .n .u . a. l.l y. .U .p . g. r.a .d . i.n .g . t. h. e. .K . e. r.n .e .l . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 . 9. 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
25.1. Overview of Kernel Packages 498
25.2. Preparing to Upgrade 499
25.3. Downloading the Upgraded Kernel 500
4
Table of Contents
25.3. Downloading the Upgraded Kernel 500
25.4. Performing the Upgrade 501
25.5. Verifying the Initial RAM Disk Image 501
25.6. Verifying the Boot Loader 503
.C .h .a .p . t.e .r . 2. 6. .. W. .o . r.k .i n. g. .w . i.t .h . K. e. r. n. e. l. M. .o .d . u. l.e .s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5. 0. 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
26.1. Listing Currently-Loaded Modules 505
26.2. Displaying Information About a Module 506
26.3. Loading a Module 509
26.4. Unloading a Module 510
26.5. Setting Module Parameters 511
26.6. Persistent Module Loading 512
26.7. Installing Modules from a Driver Update Disk 512
26.8. Signing Kernel Modules for Secure Boot 515
26.9. Additional Resources 521
.A .p .p . e. n. d. i.x . A. .. .R .P . M. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5. 2. 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.1. RPM Design Goals 523
A.2. Using RPM 524
A.3. Finding and Verifying RPM Packages 530
A.4. Common Examples of RPM Usage 531
A.5. Additional Resources 532
.A .p .p . e. n. d. i.x . B. .. .R . e. v. i.s .i o. n. .H . i.s .t .o .r y. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5. 3. 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B.1. Acknowledgments 533
.I n. d. e. x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5. 3. 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
Description:(RH199) training courses. localectl(1) — The manual page for the localectl command line utility documents rhel-7-server-rpms — the repository in which the updated package is located. The format of such a file is outlined in the man page for each utility. Chapt er 13. Direct ory Servers. 2