CentOS Quick Start Guide
eBook - ePub

CentOS Quick Start Guide

Get up and running with CentOS server administration

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

CentOS Quick Start Guide

Get up and running with CentOS server administration

Book details
Book preview
Table of contents
Citations

About This Book

A concise walk-through of CentOS 7, starting from installation to securing it's environment.

Key Features

  • No previous Linux environment experience needed for reading this book
  • Get comfortable with a popular and stable Red Hat Enterprise Linux distribution
  • Most of the command line based concepts are explained with graphics

Book Description

Linux kernel development has been the worlds largest collaborative project to date. With this practical guide, you will learn Linux through one of its most popular and stable distributions.

This book will introduce you to essential Linux skills using CentOS 7. It describes how a Linux system is organized, and will introduce you to key command-line concepts you can practice on your own. It will guide you in performing basic system administration tasks and day-to-day operations in a Linux environment.

You will learn core system administration skills for managing a system running CentOS 7 or a similar operating system, such as RHEL 7, Scientific Linux, and Oracle Linux. You will be able to perform installation, establish network connectivity and user and process management, modify file permissions, manage text files using the command line, and implement basic security administration after covering this book.

By the end of this book, you will have a solid understanding of working with Linux using the command line.

What you will learn

  • Understand file system hierarchy and essential command-line skills
  • Use Vi editor, I/O redirections and how to work with common text manipulating tools
  • Create, delete, modify user accounts and manage passwords and their aging policy
  • Manage file ownership, permissions, and ACL
  • Execute process management and monitoring on the command line
  • Validate and manage network configuration using nmcli
  • Manage remote logins using SSH and file transfer using SCP and Rsync
  • Understand system logging, how to control system services with systemd and systemctl, and manage firewalId

Who this book is for

Any individual who wants to learn how to use Linux as server or desktop in his environment. Whether you are a developer, budding system administrator, or tech lover with no previous Linux administration background, you will be able to start your journey in Linux using CentOS 7 with this book.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
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 access CentOS Quick Start Guide by Shiwang Kalkhanda in PDF and/or ePUB format, as well as other popular books in Computer Science & Cyber Security. We have over one million books available in our catalogue for you to explore.

Information

Year
2018
ISBN
9781789341461
Edition
1

Overview of Essential Advance Utilities

In this chapter, we will learn some advanced and essential concepts related to the system, such as logging, controlling system services, firewalls, and Security Enhanced Linux (SELinux). Logging plays a key role in debugging and troubleshooting system applications. A solid understanding of logging will make your daily operations easier to handle and will also give you a deep insight into the application's functioning.
In this final chapter, we will learn the different logging mechanisms available in CentOS 7, such as journald and rsyslog. By now, you have seen how to install, update, and remove applications. Now, we will see how to control these applications and system services using the systemd and systemctl utilities. Finally, we will understand the basic usage of firewalld and SELinux to secure running services and harden the security of the system.
We will cover the following:
  • Understanding system logging
  • Working with rsyslogd and journald
  • Understanding control of systems and services
  • Working with systemd and systemctl
  • Understanding SELinux concepts
  • Working with SELinux
  • Understanding firewall concepts in CentOS 7
  • Working with firewalld

Understanding system logging

Most application programs and the kernel write their event information in log files maintained at different locations. It helps in keeping track of activities that are taking place on the system and also forms an essential part of system auditing. Monitoring of log files helps in spotting any unusual activity in the system. Logging also helps in troubleshooting any application problems. By convention, Linux uses the /var/log/ directory for storing logs in the system.
Starting with CentOS 7, we have two logging services that exist in the system:
  • Rsyslog service
  • Systemd-journald service
System time service should be properly configured before configuring log services, as time is an important component of log files.

Working with rsyslog

The rsyslog service centrally collects the log messages from different applications running in the Linux system. It collects the logs based on their type and their priorities, and stores them persistently in the /var/logfollows:/ directory.
The following table lists some important log files maintained by rsyslog, along with their description:
Log file path
Description
/var/log/messages
Most standard log messages are stored here, except authentication logs, email logs, and some application debugging logs.
/var/log/secure
Authentication logs containing errors and other messages are stored here.
/var/log/maillog
Mail server logs are stored here.
/var/log/boot.log
Boot/system startup messages are logged here.
/var/log/cron
It stores cron job (scheduler) logs.
/var/log/wtmp
Login activity logs are kept here.
/var/log/dmesg
Kernel messages are stored here.
/var/log/cups
Printing service logs are stored here.
/var/log/samba
Samba service logs are kept here, not managed by rsyslog. The Samba service directly writes logs here.
/var/log/httpd
This directory contains Apache web server logs, not managed by rsyslog. Apache directly writes logs in these files.
/var/log/audit/
Contains the auditd service logs and SELinux log files.
Rsyslogd is an application in Linux syst...

Table of contents

  1. Title Page
  2. Copyright and Credits
  3. Dedication
  4. About Packt
  5. Contributors
  6. Preface
  7. Getting Started with CentOS 7
  8. Command-Line and Filesystem Navigation
  9. Managing Text Files
  10. User and Group Management
  11. Managing File Permissions
  12. Process Management
  13. Managing Networking in CentOS
  14. Software Package Management
  15. Overview of Essential Advance Utilities
  16. Other Books You May Enjoy