CentOS System Administration Essentials
eBook - ePub

CentOS System Administration Essentials

  1. 174 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

CentOS System Administration Essentials

About this book

CentOS is widely respected as a very powerful and flexible Linux distribution, and it can be used as a web server, file server, FTP server, domain server, or a multirole solution. It is designed to handle the more demanding needs of business applications such as network and system administration, database management, and web services. CentOS is self-sufficient and fast while working, with the added benefit of global acceptance as a large number of the world's web servers run on it.

This book not only concentrates on the basics, but also supplements your existing knowledge on subject areas that are important in the Enterprise market, such as directory services, security configuration management, and web-based architecture. By the end of this book, you will be able to manage an Enterprise Linux network focused on management-centralized configuration, user management, and filesystem enhancements by covering everything from the latest filesystem advances with BTRFS through to learning about the new web server on the block—Nginx.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access CentOS System Administration Essentials by Andrew Mallett in PDF and/or ePUB format, as well as other popular books in Computer Science & Data Processing. We have over one million books available in our catalogue for you to explore.

Information

CentOS System Administration Essentials


Table of Contents

CentOS System Administration Essentials
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
Downloading the color images of this book
Errata
Piracy
Questions
1. Taming vi
CLI trickery – shortcuts that you will love
Vim and vi
Getting the .vimrc setup the way you like
Search and replace
Learning to remove extraneous comments from a file with a few deft key strokes
Summary
2. Cold Starts
The GRUB and MBR
When is the root filesystem not the root filesystem?
Editing stanzas in GRUB
Adding a root entry to a stanza
Adding a kernel entry to a stanza
Adding an initrd entry to a stanza
Working on the GRUB console
Protecting the GRUB menu with passwords
Boot splashing with plymouth
Applying different themes
Summary
3. CentOS Filesystems – A Deeper Look
A magician's secret
Hard links
Symbolic links
Special permissions
The SUID bit
The SGID bit
The sticky bit
Naming your pipes
Understanding the command stat
The last access time
The last modified time
The last changed time
Enterprise filesystem shootout
What BTRFS has to offer
Installing BTRFS
Creating a BTRFS filesystem
Expanding a BTRFS filesystem
Volume management with BTRFS
Balancing the filesystem
Adding an entry to /etc/fstab
Creating an RAID1 mirror
Using BTRFS snapshots
Summary
4. YUM – Software Never Looked So Good
Managing software installation with RPM files
Creating your own RPM file
Creating the Plymouth theme
tup.plymouth
tup.script
Creating the theme RPM
Using YUM
YUM plugins
Creating a YUM Repository
/etc/yum.repos.d/
Summary
5. Herding Cats – Taking Control of Processes
Managing services with Upstart
Creating your own Upstart script
Managing processes
Using the pgrep command
Using the pstree command
Using the pkill command
Using the pmap command
Summary
6. Users – Do We Really Want Them?
Managing public and private groups
Linux groups
Adding users to groups
Evaluating private group usage
Getent
Quotas
Setting quotas
Scripting user creation
Summary
7. LDAP – A Better Type of User
LDAP concepts
Installing 389-ds
Configuring DNS or hostname records
Setting TCP keepalives
Setting file descriptors
Creating the directory server user and group
The EPEL repository
Installing and configuring 389-ds
Testing the installation
LDAP user account management
Adding users using the GUI console
Adding users from the command line
LDAP authentication
Summary
8. Nginx – Deploying a Performance-centric Web Server
Installing and configuring Nginx
Installing Nginx
Configuring Nginx
Configuring a 404 Document Not Found Error page
Installing PHP
Installing MySQL
Create dynamic web content
Summary
9. Puppet – Now You Are the Puppet Master
Installing the Puppet master
Configuring the firewall
DNS
Network Time Protocol
The Puppet lab repository
Puppet resource
Managing packages, services, and files
Classes
Resource definition
Puppet facts
Using include
Creating and testing manifests
Enrolling remote puppet agents
Summary
10. Security Central
Understanding PAM configuration files
Type
Control
The module path
Module arguments
Limits of PAM
Domain
Type
Item
SELinux
Reading the current SELinux mode
Setting the SELinux mode
Preventing mode changes from the command line
Understanding SELinux contexts
Troubleshooting SELinux
Hardening Linux
Password auditing
Preparing a password file
Cracking passwords
Weakening the algorithm
Hardening the password
Summary
11. Graduation Day
Securing remote access to your system
The SSH public key
Analyzing the risks of default settings
Populating the keystore
Public key authentication
Root logins
Conclusion
Best practices of OpenLDAP
Best practices of Nginx
Mastering Puppet
What's new in CentOS 7
Locale
Time and date information
Managing services
Additional ways to repair your machine than just using the single user mode
Remote management
Systemd and nonstandard subcommands
The Samba 4.1 package
Filesystem changes
Password policies
Summary
Index

CentOS System Administration Essentials

Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2014
Production reference: 1181114
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78398-592-0
www.packtpub.com
Cover image by ...

Table of contents

  1. CentOS System Administration Essentials