Table of Contents for
Linux Bible, 9th Edition

Version ebook / Retour

Cover image for bash Cookbook, 2nd Edition Linux Bible, 9th Edition by Christopher Negus Published by John Wiley & Sons, 2015
  1. Cover Page
  2. Title Page
  3. Copyright
  4. Dedication
  5. About the Author
  6. About the Technical Editor
  7. Credits
  8. Acknowledgments
  9. Contents at a Glance
  10. Contents
  11. Introduction
  12. Part I: Getting Started
  13. Chapter 1: Starting with Linux
  14. Chapter 2: Creating the Perfect Linux Desktop
  15. Part II: Becoming a Linux Power User
  16. Chapter 3: Using the Shell
  17. Chapter 4: Moving around the Filesystem
  18. Chapter 5: Working with Text Files
  19. Chapter 6: Managing Running Processes
  20. Chapter 7: Writing Simple Shell Scripts
  21. Part III: Becoming a Linux System Administrator
  22. Chapter 8: Learning System Administration
  23. Chapter 9: Installing Linux
  24. Chapter 10: Getting and Managing Software
  25. Chapter 11: Managing User Accounts
  26. Chapter 12: Managing Disks and Filesystems
  27. Part IV: Becoming a Linux Server Administrator
  28. Chapter 13: Understanding Server Administration
  29. Chapter 14: Administering Networking
  30. Chapter 15: Starting and Stopping Services
  31. Chapter 16: Configuring a Print Server
  32. Chapter 17: Configuring a Web Server
  33. Chapter 18: Configuring an FTP Server
  34. Chapter 19: Configuring a Windows File Sharing (Samba) Server
  35. Chapter 20: Configuring an NFS File Server
  36. Chapter 21: Troubleshooting Linux
  37. Part V: Learning Linux Security Techniques
  38. Chapter 22: Understanding Basic Linux Security
  39. Chapter 23: Understanding Advanced Linux Security
  40. Chapter 24: Enhancing Linux Security with SELinux
  41. Chapter 25: Securing Linux on a Network
  42. Part VI: Extending Linux into the Cloud
  43. Chapter 26: Using Linux for Cloud Computing
  44. Chapter 27: Deploying Linux to the Cloud
  45. Part VII: Appendixes
  46. Appendix A: Media
  47. Appendix B: Exercise Answers
  48. Index
  49. Linux® Bible, Ninth Edition

Index

! (exclamation point), 80, 155, 160, 267, 495

(double quotes), 155, 160, 262, 266

# (hash mark), 67

$ (dollar sign), 67, 79, 85, 89, 155, 156

$# variable, 156157

$(()) notation, 159

$@ variable, 156

$0 variable, 156

% (percent), 145

& (ampersand), 82, 8384, 144, 162

` (backtick), 39, 84, 155

' (single quotes), 155

( (left parenthesis), 82, 155

> (greater than sign), 82, 103

< (less than sign), 82, 103

) (right parenthesis), 82, 155

* (asterisk), 108, 128, 155, 163, 263, 288, 534, 571

+ (plus sign), 107, 111, 112, 129, 138, 145, 272, 292, 521

- (hyphen), 7172, 106, 129, 130, 165, 757

(minus sign), 111, 145

-- (double hyphen), 7172

/ (forward slash), 94, 97, 99, 100, 124, 533

\! special character, 90

\# special character, 90

\$ special character, 90

\[ special character, 90

\] special character, 90

; (semicolon), 82, 83, 132, 444, 516, 517, 659

= (equal sign), 7172

? (question mark), 103, 124, 128, 534

[] (brackets), 89, 103, 124, 243, 337, 418

\ (backslash), 90, 108, 115, 132, 155, 515

\ special character, 90

^ (caret), 165

{} (curly braces), 105, 131132, 157

| (pipe), 8, 8283, 103, 139, 162, 166

~ (tilde), 79, 101, 108, 119

3DES, 631

A

absolute path, 100

Accelerated Indirect GLX (AIGLX) project, 5860

Access Control Lists (ACLs), 271276

Access Vector Cache (AVC) denials, 670, 673, 689692, 694, 697, 834

account PAM context, 651

ACLs (Access Control Lists), 271276

acpi=off boot option, 217

activity reports, 323

Advanced Encryption Standard (AES), 630, 631, 645

Advanced Intrusion Detection Environment (aide), 620622

AES (Advanced Encryption Standard), 630, 631, 645

aescrypt, 645

affs filesystem, 303

aide, 620622

AIGLX (Accelerated Indirect GLX) project, 5860

alias command, 75, 87

aliases

command aliases, 75, 87

IP addresses, 356357

aliases file, 186

allusers directory, 107, 132

Alt+SysRq keystrokes, 585

amanda utility, 593

Amazon EC2, 765766

anaconda installer, 17, 212, 213, 216, 219, 275

Ansible, 344

apache administrative login, 190

Apache Software Foundation (ASF), 450

Apache web server, 449

configuration files, 457462

installing, 450454

publishing web content, 464465

securing, 455457

SSL/TLS, 465471

starting, 454455

troubleshooting, 471475

virtual hosts, adding, 462464

apache2.conf file, 457

Apple

OS X vs. Linux, 6

printers, 427, 433

application launchers, 5556

Applications Menu extension, 4243

appSocket connections, 427, 433

ARC4, 631

ArcFour, 631

arguments, 7174

Aroha, Ryan Sawhill, 647

arrow keys

3D AIGLX desktop, 59, 60

command history, 81

command-line editing, 77, 78

GNOME 3 desktop, 39, 40

GRUB Legacy, 226

vi text editor, 120

ASF (Apache Software Foundation), 450

ash, 65

asymmetric key cryptography, 466, 633637

AT&T Bell Laboratories, 710

Audio CD Extractor, 195

audit logs, SELinux, 612614, 690

audit.log file, 689690

audit2allow command, 674, 687, 695

audit2why command, 687

auditd, 612614, 625, 689690, 692, 829

auditing Linux systems, 622624

auditing network services, 699710

auditing advertisements, 704708

controlling access, 708710

evaluating access, 701704

aureport command, 690

ausearch command, 612613, 614, 690, 835

auth PAM context, 651

authconfig command, 279, 655657, 660, 665

authconfig-gtk, 176

Authentication Configuration window, 279281

Authentication, graphical admin tool, 176

autofs facility, 545548

avahi administrative login, 190

AVC (Access Vector Cache) denials, 670, 673, 689692, 694, 697, 834

B

“Baby Bell” companies, 9

background commands, 8384

background processes, 139

killing, 146148

listing, 138143

referring to, 145146

renicing, 148149

starting, 144145

BackTrack, 623

backup shell script, 168

basename command, 95

BASH environment variable, 86

.bash_history file, 82

/.bash_logout file, 89

/.bash_profile file, 88

/.bashrc file, 89

.bashrc file, 9192

bash shell, 6566. See also shell

command-line completion, 7980

command-line editing, 7779

configuration files, 8889

environment variables, 8588, 8889

file-matching metacharacters, 102103

file-redirection metacharacters, 103104

locating commands, 7476

moving programs between background and foreground, 144

parameter expansion, 157158

prompt, setting, 8991

running commands, 7073

shell history, 7677, 8082

untyped variables, 158159

BASH_VERSION environment variable, 86

bashrc file, 88, 89, 186

bc command, 158159

bcrypt, 645

befs filesystem, 302

Bell Laboratories, 710

Bell-LaPadula Mandatory Access security model, 672

Berkeley Software Distribution. See BSD

Berkeley Software Distribution License, 1516

bin administrative login, 190

/bin directory, 98

administrative commands, 183

user commands, 7475

bind package, 317

BIOS, 225226, 554557, 779

blkid command, 306

block ciphers, 628, 630, 631

block devices, 110

Blowfish, 630, 645

Bluetooth, 42

Booleans, SELinux management via, 688689

/boot directory, 98, 223

/boot/grub/grub.conf file, 226229

/boot/grub2/grub.cfg file, 230231

Boot Log, 609

boot.log file, 189, 609

booting

boot options, 216219

dual booting, 216219

GRUB boot loader, 224231

troubleshooting, 551568

from USB drive, 799780

brace expansion characters, 105

Brasero, 195

browser-based graphical management tools, 177

BSD (Berkeley Software Distribution)

AT&T lawsuit, 13

origin of, 910

btmp file, 610

btrfs filesystem, 302

built-in commands, 75

C

C Library Functions man page section, 93

C programming language, 9

C shell, 65, 69, 70

Caesar Cipher, 630

case command, 162163

case ... esac, 163

CAST5, 631, 647

ccrypt, 645

cd command, 100102

CDP (Clean Desk Policy), 592

centralized user accounts, 278281

Ceph, 5, 731

CERT (Computer Emergency Readiness Team), 623

certificates, SSL, 280, 465471

cgroups, 149151

chage command, 76, 594595, 600601, 603

chains, netfilter/iptables firewall, 714715

character devices, 110

chcat command, 685

chcon command, 465, 685, 816, 833, 834

checkmodule, 687

checkpolicy, 687

checksums, 628

Chef, 344, 732

chkconfig --list sshd command, 325

chkconfig sshd on command, 325

chkrootkit, 619620

chmod command, 100, 101102, 104, 111112, 168, 273, 276

chrony administrative login, 190

cifs filesystem, 302

cipher text. See also decryption; encryption hashing, 628630

ClamAV, 618

classification level attribute, SELinux, 673

Clean Desk Policy (CDP), 592

“Client denied by server configuration” error, 474

cloud computing, 729748, 749767

Amazon EC2 deployment, 765766

authentication, 731

cgroups, 149151

cloud controllers, 730731

cloud types, 75751

cloud-based Linux installations, 211

creating Linux images, 751760

creating virtual machines, 740744

deployment, 732

exercises, 747748, 837838

hypervisors, 730, 735738

OpenStack, 5, 18, 177, 211, 731, 732, 750, 752, 760765

OpenStack deployment, 760765

platforms, 732

providing networked storage, 738740

RHELOSP (Red Hat Enterprise Linux OpenStack Platform), 177

setting up, 734747

storage, 731

cloud-init facility, 751753, 757760

cloud.cfg file, 754

Cloudforms, 187, 751

clustering, 5

cnegus-test-project, 761

commands

administrative, 182183

aliases, 75, 87

arguments, 7174

arithmetic results, passing, 8485

background commands, 8384

built-in, 75

command-line completion, 7980

command-line editing, 7779

finding, 7476

getting information about, 9294

history list, 75, 7677, 8082

man pages, 70, 9394

options, 7174

piping between, 8283

printing-related, 439441

recalling, 7682

running, 7076

sequential commands, 83

shell prompt, 67

substitution, 84

syntax, 7173

system administration, 182183

Common UNIX Printing System. See CUPS

Common Vulnerabilities and Exposures (CVE), 607

Compiz window manager, 50, 51, 58

compliance reviews, 623

compute nodes, 730

Computer Emergency Readiness Team (CERT), 623

Configuration Editor, 176

configuration errors, 472474

configuration files

administrative, 183188

Apache web server, 457462

bash shell, 8889

networking, 362367

contexts, PAM, 650651

control flags, PAM, 651652

control groups, 149151

cp command, 114

cpio utility, 593

cracklib utility, 598

Cron Log, 609

crontab files, 186, 571

crypto-utils package, 452

cryptography, 627648

encryption/decryption

cipher keys, 631637

ciphers, 630

digital signatures, 637639

exercises, 668, 830832

hashing, 628630

cryptsetup command, 641642

crypttab file, 562, 640641

csh, 65, 69, 70

csh.cshrc file, 186

CUPS, 423446. See also printers; printing

adding printers, 425426

command-line printing, 439441

configuring CUPS server, 436437

configuring print servers, 441443

features, 423425

manual configuration, 438439

Print Settings window, 428435

starting CUPS server, 437438

web-based administration, 426428

cups package, 317

cupsd.conf file, 436437

custom routes, 370371

cut command, 165

CVE (Common Vulnerabilities and Exposures), 607

D

d special character, 90

DAC (Discretionary Access Controls), 669670

daemon processes, 45

cgroups and, 149150

checking config files, 183

/etc/httpd directory, 184

/etc/xinetd.d directory, 185186

port numbers and, 320

rsyslog.conf file, 187

running under separate administrative logins, 190

/sbin directory, 99

Udev and, 194

/usr/sbin dirctory, 182

xinetd.conf file, 188

Damn Small Linux, 202

dash, 65, 69

Data Encryption Standard (DES), 466, 631

Date & Time, graphical admin tool, 176

date --help command, 73

date command, 70, 7273

DEB packaging, 236238

decryption, 628

cryptographic cipher keys, 631637

cryptographic ciphers, 630631

digital signatures, 637639

dependency failures, 569571

DES (Data Encryption Standard), 466, 631

/dev directory, 98

Devices and Special Files man page section, 93

df command, 341342

DHCP servers, 207, 210, 348, 349, 355, 363364, 372, 576

Digital Signature Algorithm (DSA), 638

digital signatures, 637639

directives, Apache web server, 457460

directories

absolute path, 100

adding current to PATH, 91

assigning partitions, 223224

changing, 100102

changing permissions, 101102, 104, 111112, 168, 273, 276

creating, 100, 101, 109, 162

encrypting, 642645

GID directories, 276278

listing, 105108

DirectoryIndex directive, 459

“Directory index forbidden by rule” error, 475

Disabled mode, SELinux, 673674, 680682

disaster recovery, 592593

Discretionary Access Controls (DAC), 669670

disk storage, 283284

Disk Usage Analyzer, 176

Disk Utility, 177

distributions, 1620. See also specific distributions

dmesg command, 191, 192183, 203

dmesg file, 609, 610

DNS servers

/etc/resolv.conf file, 366367

configuring Linux as, 372373

hostname resolution, 576577

hypervisor-storage system communication, 738

interface configuration, 355358

named.conf file, 187

queries, checking, 367

RHCE exam, 2526

dnsdomainname command, 355

Domain Name System, graphical admin tool, 176

dovecot package, 317

dpkg Log, 609

dpkg.log file, 609

DSA (Digital Signature Algorithm), 638

du command, 342343

dual booting, 214215

dumb terminals, 144

dump utility, 291, 305, 307, 593, 606, 610

Duplicity, 646

E

echo command, 7980, 85, 92

El Gamal, 631

elementary OS, 19

elif statements, 160

Elliptic Curve Cryptosystems, 631

emacs command, 118

encryptfs command, 642645

encryption, 628

cryptographic cipher keys, 631637

cryptographic ciphers, 630631

digital signatures, 637639

directories, 642645

files, 645

filesystems, 640642

from GNOME desktop, 646647

with Pyrite, 647648

SSL/TLS, 465471

Enforcing mode, SELinux, 674, 680682

enterprise environments

Linux installation, 211213

network configuration, 371373

RPM package management, 256257

Samba, 525

server administration, 344

user/group account management, 270278

env command, 85

environment variables

bash shell, 8889

expanding, 85

errata, 607

ErrorDocument direction, 459

esac, 163

escaping shell characters, 155

/etc directory, 98, 184, 186188

/etc/aliases file, 186

/etc/apache2/apache2.conf file, 457

/etc/bashrc file, 88, 89, 186

/etc/cloud/cloud.cfg file, 754

/etc/cron directory, 184

/etc/crontab file, 186

/etc/crypttab file, 562, 641642

/etc/csh.cshrc file, 186

/etc/cups directory, 184, 424

/etc/cups/cupsd.conf file, 436437

/etc/cups/mime.types file, 439

/etc/cups/printers.conf file, 435, 438439, 442443

/etc/default directory, 184

/etc/exports file, 186, 528, 529, 531, 532535

/etc/fstab file, 186, 274, 275, 276, 305306

/etc/group file, 186

/etc/gshadow file, 186

/etc/host.conf file, 186

/etc/hostname file, 186, 365

/etc/hosts file, 79, 186, 365366, 738

/etc/hosts.allow file, 186, 322

/etc/hosts.d file, 186

/etc/hosts.deny file, 186, 322

/etc/httpd directory, 184

/etc/httpd/conf.d directory, 452

/etc/httpd/conf.d/ssl.conf file, 467

/etc/init.d directory, 184185

/etc/inittab file, 187, 382386, 389391, 398399, 412413

/etc/logrotate.d/httpd file, 451

/etc/logrotate.d/samba file, 502

/etc/logrotate.d/vsftpd file, 480

/etc/mail directory, 185

/etc/mtab file, 187

/etc/mtools.conf file, 187

/etc/named.conf file, 187, 373

/etc/nfsmount.conf file, 545

/etc/nsswitch.conf file, 187, 366367

/etc/ntp.conf file, 187

/etc/pam.d file, 650

/etc/pam.d.vsftpd file, 480

/etc/pam.d/common-auth file, 660

/etc/pam.d/other file, 655

/etc/pam.d/passwd file, 661

/etc/pam.d/su file, 664

/etc/pam.d/system-auth file, 659, 661663, 666

/etc/passwd file, 69, 71, 82, 187, 264, 269, 278, 279, 280, 601603

/etc/pcmcia directory, 185

/etc/pki/tls/private/localhost.key file, 468

/etc/pki/tsl/cert/localhost.crt file, 468

/etc/postfix directory, 185

/etc/ppp directory, 185

/etc/printcap file, 187

/etc/profile file, 88, 89, 187

/etc/protocols file, 187

/etc/rc.d//rc#.d directory, 384

/etc/rc.d/rc5.d directory, 384

/etc/rc?.d directory, 185

/etc/resolv.conf file, 349, 364, 366

/etc/rpc file, 187

/etc/rsyslog.conf file, 187, 335336

/etc/samba directory, 502

/etc/samba/smb.conf file, 444, 511, 516521

/etc/samba/smbusers file, 502

/etc/security directory, 185

/etc/security/limits.conf file, 657658, 832

/etc/security/time.conf file, 659660

/etc/selinux/config file, 679680

/etc/services file, 187, 699700

/etc/shadow file, 187, 628

/etc/shells file, 187

/etc/skel directory, 185

/etc/sudoers file, 187

/etc/sysconfig directory, 185

/etc/sysconfig/network file, 365

/etc/sysconfig/network-scripts directory, 363, 365

/etc/sysconfig/rhn/up2date file, 242

/etc/sysconfig/samba file, 502, 503

/etc/sysct1.conf file, 25

/etc/systemd directory, 185

/etc/systemd/system directory, 420

/etc/termcap file, 188

/etc/tmpfiles.d/httpd.conf file, 451

/etc/ttytab file, 381

/etc/vsftpd/chroot_list file, 489

/etc/vsftpd/ftpusers file, 481, 489

/etc/vsftpd/user_list file, 481, 489

/etc/vsftpd/vsftpd.conf file, 480, 488

/etc/X11 directory, 188

/etc/X11/xorg.conf file, 60

/etc/xinetd.d directory, 185186

/etc/xinetd/conf file, 188

/etc/yum.conf file, 242

/etc/yum.repos.d/*.repo files, 243

Ethernet channel bonding, 368370

EUID environment variable, 86

execute bits, 106, 107, 110, 111, 129, 276278

exercises and answers

Apache web servers, 475476, 815818

basic security, 624625, 829830

cloud computing, 747748, 837838

cryptography, 668, 830832

filesystem, 115116, 786787

FTP servers, 497, 818821

GNOME, 61, 781783

Linux installation, 231232, 795797

network security, 724725, 835837

networking, 374375, 807810

NFS servers, 550, 824826

PAM, 668, 830832

printing, 446447, 813815

processes, 151152, 789790

RPM packages, 258, 797798

Samba servers, 526, 822824

SELinux, 696697, 832835

server administration, 345346, 805807

shell, 95, 784786

shell scripts, 169, 790793

starting/stopping services, 422, 810813

system administration, 199200, 793795

text files, 134135, 787789

troubleshooting Linux, 587588, 826829

user and group accounts, 281282, 798802

exim package, 317

exit command, 69, 75, 81, 87, 88

exports file, 186, 528, 529, 531, 532535

expr command, 158159

ext filesystem, 302

ext2 filesystem, 302

ext3 filesystem, 302

ext4 filesystem, 302

Extended Multiuser Mode runlevel, 382

F

Facebook, LAMP stack, 3

false positives, 619

fc command, 8182

FCEDIT environment variable, 86

FCoE (Fibre Channel over Ethernet) devices, 220

fdisk command, 222223, 286288, 289, 290, 292, 296, 557, 802803

Fedora

aliased ls command, 105

backup script, 168

backup shell script, 168

booting from USB drive, 779

downloading, 772774

GNOME Terminal, 68

installing from live media, 203207

mcedit text editor, 118

NFS Server Configuration window, 531532

vs. RHEL, 18

server packages, 316318

sudo command, 174

system-config-* tools, 175177

terminal emulators, 68

updatedb command, 125

virtual consoles, switching between, 69

Fedora Security Spin, 623

Fibre Channel over Ethernet (FCoE) devices, 220

File Formats and Conventions man page section, 93

“File permissions prevent access” error, 474

file redirection, 8, 103104

file sharing. See Samba

file-matching metacharacters, 102103

files

copying, 329332

encrypting, 645

finding, 125133

find command, 127132

grep command, 132133

locate command, 125126

integrity, ensuring, 639640

listing, 105108

security context, SELinux, 683, 684685

filesystems, 97116

basic commands, 100102

copying files, 114

creating, 310311

directory hierachy, 9799

exercises, 115116, 311312, 786787, 802804

integrity, ensuring, 640642

listing files/directories, 105109

metacharacters, 102105

monitoring, 615622

mounting, 301310

moving files, 114

permissions, 109113, 603604

removing files, 114115

scans, 616618

securing, 603606

unmounting, 309

filter table, iptables, 713

find command, 127132, 343

finding

commands, 7476

files

find command, 127132

grep command, 132133

locate command, 125126

packages, 246247

fingerprints, 628

Firefox, FTP server access, 493

firestarter application, 711

Firewall, graphical admin tool, 176

firewalld service, 316, 712713

firewalls, 710724

categories, 710711

firewalld service, 316, 321, 712713

iptables utility, 316, 713724

opening for FTP, 483486

opening for NFS, 537538

RHCE exam, 26

Samba configuration, 507508

firmware RAID devices, 220

firstboot command, 210

“first picture” databases, 620622

fixfiles command, 685

foomatic package, 317

for ... do loop, 163164

foreground processes, 137152

killing, 146148

limiting with cgroups, 149151

listing, 138143

managing, 144146

renicing, 148149

fork bombs, 657

FOSS (Free and Open Source Software), 12

free software, 12

Free Software Directory, 12

Free Software Foundation (FSF), 1112, 26

FreeBSD, 13, 225

fstab file, 186, 305306

FTP clients, 492496

FTP Log, 609

FTP servers, 477497

allowing uploading, 489491

configuring, 488492

exercises, 497, 818821

FTP clients, 492496

installing, 479480

securing, 483488

starting, 480483

user access, 488489

FTP Transfer Log, 609

G

Games man page section, 94

gconf-editor, 52, 176

gedit text editor, 117, 118, 152, 181, 328329

general regular expression parser. See grep command

Gentoo distribution, 16

bin login, 190

nano text editor, 118

ongoing updates, 214

software packaging, 236

getenforce command, 486, 539, 680, 697, 834

getent command, 280

getfacl command, 271

getsebool command, 509, 688, 697, 834, 689694

gfs2 filesystem, 303

gFTP client, 495496

Gibson Research Corporation, 624

GID directories, 276278

Global Unique Identifiers (GUID), 286

GlusterFS, 5

GNOME 2 desktop, 4960

Metacity window manager, 5052

panels, 50, 5357

System Monitor, 142143

GNOME 3 desktop, 3349

command box, 40

Fedora GNOME desktop live image, 3233

installing software, 4648

Nautilus file manager, 4546, 47, 50, 195196, 522523

navigating with keyboard, 3841

navigating with mouse, 3438

Rhythmbox music player, 4849, 195, 196

shell extensions, 4245

setting up, 4142

stopping, 49

System Monitor, 142143

Window menu, 37

GNOME Display Manager Log, 609

GNOME Terminal, 68

GNOME Tweak Tool, 4445

gnome-disks, 177

gnome-system-monitor, 142143

gnome-terminal, 68

gnome-utils, 176

GNU Hurd project, 12

GNU Lesser General Public License (LGPL), 15

GNU project, 1112, 14

GNU Public License (GPL), 12, 14, 15, 27

gnupg2 package, 632

Google Cloud Platform, 732

gpg, 645

gpg-agent daemon, 632

gpg-zip, 646

gpg2, 632637, 632639, 830831

gpgcheck, 242

gpgcheck, 242

gpgkey, 243

GPL (GNU Public License), 12, 14, 15, 27

GRand Unified Bootloader (GRUB), 224231

graphical boot option, 217

Graphical Mode runlevel, 382

graphical system administration tools, 175177

grep command, 69, 84, 132133, 165

group accounts, 269270

creating, 270

exercises, 281282, 798802

managing in the enterprise, 270278

process association, 137, 268270

group file, 186

groupadd command, 270

groupmod command, 270

GRUB (GRand Unified Bootloader), 224231

GRUB 2, 229231

GRUB Legacy, 225229

grub.cfg file, 230231

grub.conf file, 226229

gshadow file, 186

GUID (Global Unique Identifiers) partitions, 286

H

h special character, 90

Hadoop, 450

HAL (Hardware Abstraction Layer), 194

Halt runlevel, 382

hard disks

partitioning, 285295

storage overview, 283284

hardware

boot options for disabling, 217

requirements, 202203

hashed passwords, 601603

hashing, 628630

help command, 9293

here documents, 104

here text, 104

Hesiod authentication, 176

HISTCMD environment variable, 86

HISTFILE environment variable, 82, 86

HISTFILESIZE environment variable, 86

history command, 75, 7677, 8081, 8082

history of Linux, 616

$HOME directory, 184

/home directory, 97, 98, 224

HOME environment variable, 86, 108109, 155

host-based firewalls, 711

host.conf file, 186

hostname command, 7071

hostname file, 186

hosts file, 79, 186

hosts.allow file, 186

hosts.deny file, 186

HOSTTYPE environment variable, 86

HP JetDirect connections, 427, 433

hpfs filesystem, 303

hpijs package, 317

HTTP, graphical admin tool, 176

httpd package, 184, 254255, 317, 318, 449, 450453

httpd-manual package, 317, 452

Hurd project, 12

hybrid cloud, 751

RHELOSP, 177

hypervisors, 730

configuring, 735738

creating virtual machines, 740744

managing virtual machines, 744745

migrating virtual machines, 745747

providing networked storage, 738740

I

id command, 73

IDEA, 631

identification and authentication process, 648

IDS (Intrusion Detection System) software, 620622

if ... elif statements, 160

if ... then statements, 159162

ifconfig command, 353

include control flag, PAM, 652

info command, 93

init systems

advantages, 377

systemd, 378386

adding new services, 419422

backward compatibility to SysVinit, 39799

basics, 392397

checking services for, 402403

configuring default target, 413414

configuring persistent services, 410412

starting/stopping, 406408

SysVinit, 378386

adding services, 414417

checking services for, 400401

configuring persistent services, 408409

default runlevel, 412413

disabling services, 409

starting and stopping services, 403404

systemd's backward compatibility, 397399

Upstart's backward compatibility, 388392

Upstart, 554

adding new services, 417419

backward compatibility to SysVinit, 388392

checking services for, 401402

configuring default runlevel, 413

configuring persistent services, 409410

starting/stopping services, 405

inittab file, 187, 382386, 389391, 398399, 412413

installing

Apache web server, 450454

FTP servers, 479480

Linux, 201232

anaconda installer, 17, 212, 213, 216, 219, 275

boot options, 216219

cloud-based installations, 211

dual booting, 214215

enterprise environments, 211213

from Live media, 203207

GRUB boot loader, 224231

hardware requirements, 202203

partitioning hard drives, 220224

RHEL installation DVD, 208210

specialized storage, 219220

upgrade procedures, 213214

virtualization, 216

NFS servers, 529530

RPM packages, 239240, 253

Samba, 500502

servers, 316318

integer arithmetic, 158159

interactive copying, 332

Internet Printing Protocol (IPP), 424, 427, 432433

Intrusion Detection System (IDS) software, 620622

Intrusion Prevention software, 620

ip addr show command, 352

IP addresses, 348349. See also iptables utility

Ethernet channel bonding, 368370

setting aliases, 356357

setting manually, 355356

setting routes, 357358

IPP (Internet Printing Protocol), 424, 427, 432433

iptables, 316, 321, 578579, 713724, 816, 819820, 823825, 836

Apache web server, 455456

chains, 714715

FTP servers, 483486

NFS servers, 536538

policies, 715, 717722

rules, 715, 717722

Samba servers, 507508

saving configuration, 722724

securing Apache, 455456

tables, 713714

targets, 715

ISO images, 628, 771779

iso9660 filesystem, 302

J

JBoss, 18

jed text editor , 118

jfs filesystem, 303

joe text editor, 118

John the Ripper, 614615

journalctl command, 188189, 192, 200, 317, 334, 608, 610611

K

K shell, 65, 69, 70

K3b, 777778

kafs filesystem, 302

Kali Linux, 19

kate text editor, 118

kedit text editor, 118

Kernel Log, 609

Kernel-based Virtual Machine. See KVM

Kernighan, Brian, 9

key pairs, 633637

key rings, 633637, 639, 668, 831

key-based authentication, 332334

Kickstart, 177

kickstart files, 177, 212, 213, 216, 218219, 257

killall command, 146148, 152

killing processes, 146148

KNOPPIX distribution, 16, 32, 214, 237

krb5-server package, 317

ksh, 65, 69, 70

KVM (Kernel Virtualization Module), 730, 733, 735738

L

LAMP stack, 3

Language, graphical admin tool, 176

Last.fm, 49

lastlog command, 610

lastlog file, 609, 610

LastLog log, 609

LDAP (Lightweight Directory Access Protocol), 279281, 317, 452, 547

LDP/LPR printers, 433434

less command, 77

Lesser General Public License (LGPL), 15

let command, 158159

level attribute, SELinux security context, 675677

lftp command, 493495

LGPL (GNU Lesser General Public License), 15

/lib directory, 98

/lib/systemd/system directory, 420

libpam.so, 648

libvirtd, 733, 735738

licenses, open source, 1516, 27. See also GPL

limits.conf file, 657658, 832

Linux

bootable CD/DVD, creating, 776779

distributions, 1620. See also specific distributions

features overview, 45

history of, 616

installing, 201232

overview, 46

professional opportunities, 2026

vs. proprietary operating systems, 6

Linux Foundation, 14, 20

Linux Mint, 19

Linux Unified Key Setup (LUKS), 640

Linux-PAM System Administrator's Guide, 667

listing

modules, 197198

processes, 138143

with ps command, 138140

with System Monitor, 142143

with top command, 140141

live Linux ISO images, 3233, 203207

load_policy , 687

local printers, 429432

localhost.crt file, 468

localhost.key file, 468

locate command, 75, 76, 125126

logging

SELinux logging, 689692

system logging, 334340

logical volume management (LVM), 295301

Login Log, 609

Logout Log, 609

logrotate, 322323

logrotate.d/samba file, 502

logrotate.d/vsftpd file, 480

logwatch, 322, 339340

loops

for ... do, 163164

until ... do, 164

while ... do, 164

lp administrative login, 190

lpc command, 440441

lpr command, 435, 440

lprm command, 441

ls command, 7172, 102103, 105108, 105109

lscpu command, 194

lsmod command, 197198

lspci command, 193

lsusb command, 193194

LUKS (Linux Unified Key Setup), 640

lvdisplay command, 299

LVM (logical volume management), 295301

lvs command, 641642

LXDE (Lightweight X11 Desktop Environment), 14, 29, 31, 32, 250251

LXLE, 19

M

Magnatune, 49

MAIL environment variable, 85, 86

Mail Log, 609

Mail Transport Agent (MTA), 317

maillog file, 609

man command, 9394

man pages, 70, 9394

Mandrake distribution, 17

Mandriva distribution, 17

mangle table, iptables, 713

MariaDB, 26, 318

MBR (Master Boot Record), 286

mcedit text editor, 118

md5sum, 252, 256, 628629, 639, 831

/media directory, 98

memory, troubleshooting, 580585

message digests, 628

messages log file, 189, 337, 338339, 610, 690691

metacharacters

$ (dollar sign), 85

& (ampersand), 82, 8384, 144, 162

; (semicolon), 82, 83, 132, 444, 516, 659

| (pipe), 8, 8283, 103, 139, 162, 166

command substitution, 84

definition of, 82

file-direction, 103104

file-matching, 102103

text searches, 124

Metacity window manager, 5052

mime.types file, 439

mini-PaaS, 734

Minimum policy, SELinux, 678, 682

Minix, 67, 13, 221, 302

minix filesystem, 302

/misc directory, 98

Miscellaneous man page section, 94

MIT license, 16

mkdir command, 100, 101, 109, 162

mkfs command, 310311

mkswap command, 303304

MLS (Multi-Level Security), 672673

MLS policy, SELinux, 678, 682

/mnt directory, 98

mod_perl package, 452

mod_ssl package, 452, 467

mod_userdir module, 464465

modprobe command, 198

modules

listing, 197198

loading, 198

PAM, 652653

removing, 198199

monitoring systems, 608622

filesystems, 615622

log files, 608611

user accounts, 612615

mount command, 307309, 541544

mounting filesystems, 301310

defining mountable filesystems, 305306

disabling swap areas, 304305

enabling swap areas, 303304

mount command, 307309

NFS filesystems, 541548

supported filesystems, 301303

unmounting filesystems, 309, 549

Mozilla license, 16

msdos filesystem, 302

MTA (Mail Transport Agent), 317

mtab file, 187

mtools.conf file, 187

multi-user.target file, 395397, 398399, 413414, 420421, 567

Multics project, 8

Multilevel plus networking runlevel, 562563

multipath devices, 220

Multiuser Mode runlevel, 382

multiuser plus networking state (rc3.d), 185

Multiuser runlevel, 562

multiuser state (rc2.d), 185

Multiuser, networking, plus graphical user interface runlevel, 563

multiuser, networking, plus GUI login state (rc5.d), 185

Music Integration extension, 43

music players

Music Integration extension, 43

Rhythmbox, 4849, 195, 196

mv command, 114

MySQL databases, 3, 318, 452, 609

mysql package, 318

MySQL Server Log, 609

mysql-server package, 318

mysqld.log file, 609

N

n special character, 90

named.conf file, 187, 373

nano text editor, 89, 118

nat table, iptables, 713

Nautilus file manager, 4546, 47, 50, 195196, 522523

ncpfs filesystem, 303

NCSA HTTPD, 450

nedit text editor, 118

Nero, 777

/net directory, 546547

Net/1, 13

Net/2, 13

NetBSD, 13, 225

netfilter/iptables firewall. See iptables utility

netmask, 355, 356, 357, 361, 370

Network Information Service (NIS) databases, 279, 366

network packets, 710

network security

auditing advertisements, 704708

auditing network services, 699710

controlling access, 708710

evaluating access, 701704

firewalls, 710724

categories, 710711

firewalld service, 712713

iptables utility, 321, 713724

network-based firewalls, 711

network-scripts directory, 363

networking, 347375

checking network interfaces, 350355

configuration files, 362367

configuring

from the command line, 360371

in the enterprise, 371373

network interfaces, 355358

proxy connections, 358359

editing connections, 360362

exercises, 374375, 807810

troubleshooting, 573580

NetworkManager, 348

checking network interfaces, 350352

configuring network interfaces, 355358

configuring proxy connections, 358359

disabling, 412

editing /etc/resolv.conf file, 366

editing connections, 360362

turning off, 363

newgrp command, 269

news administrative login, 190

News Log, 609

NFS servers, 527550

administration setup tasks, 527528

exercises, 550, 824826

installing, 529530

mounting NFS filesystems, 541548

RHCE exam, 26

securing, 536540

sharing NFS filesystems, 531536

starting, 530531

viewing shares, 540541

NFS, graphical admin tool, 176

nfs-server package, 530

nfs-utils package, 529530

nfs_export_all_ro SELinux file context, 539

nfs_export_all_rw SELinux file context, 539

nfsmount.conf file, 545

NFSv4, 536

nice command, 148149

nis databases, 279, 366

nisplus databases, 366

nmap utility, 701708

nmb service, 502

starting, 505506

stopping, 506

nmtui command, 360, 362

nnn special character, 90

nodma boot option, 217

nofb boot option, 217

nofirewire boot option, 217

noide boot option, 217

noipv6 boot option, 217

nompath boot option, 217

non-repudiation, 593

nonet boot option, 217

noparport boot option, 217

nopcmcia boot option, 217

noprobe boot option, 217

noscsi boot option, 217

Notifications Alert extension, 43

nousb boot option, 217

nsswitch.conf file, 187

ntfs filesystem, 303

ntp.conf file, 187

ntpd package, 26, 317, 317, 319

numa-off boot option, 217

O

OLDPWD environment variable, 86, 108

one-command actions, 162

Open Source Development Labs, 14

Open Source Initiative (OSI), 12, 1416

open source software, 12

Open Sources: Voices from the Open Source Revolution, 14

OpenBSD, 13, 225

openldap package, 317

openldap-servers package, 317

openssh-client package, 324, 326

openssh-server package, 324326

openssl command, 263, 469470, 473, 476, 646, 816817

OpenStack, 5, 18, 177, 211, 731, 732, 750, 752, 760765

cloud deployment, 760765

operating systems

overview, 46

proprietary, 6

operational modes, SELinux, 673674, 680682

/opt directory, 98

optional control flag, PAM, 652

Options directive, 459

options, command, 7174

OS X vs. Linux, 6

OSI (Open Source Initiative), 12, 1416, 710, 711

OSTYPE environment variable, 80, 86

Overview screen

GNOME 3 desktop, 34, 35, 40

OpenStack dashboard, 723724

P

Package Collections, 316

Package Groups, 316

packages. See software packages

packet filters, 711

PAM (Pluggable Authentication Module), 648667

administering, 654667

good passwords, enforcing, 660663

PAM-aware application configuration files, 654655

resources, implementing, 657658

sudo use, encouraging, 664

system event configuration files, 653654, 655657

time restrictions, implementing, 658660

user accounts, locking, 665667

authentication process, 649654

benefits, 649

contexts, 650651

control flags, 651652

exercises, 668, 830832

information sources, 667

modules, 652653

PAM Module Reference, 667

pam-auth-config utility, 656

PAM-aware applications, 648649

pam-limits module, 657

pam.conf file, 667

pam.d file, 650

pam.d.vsftpd file, 480

pam.d/common-auth file, 660

pam.d/other file, 655

pam.d/passwd file, 661

pam.d/su file, 664

pam.d/system-auth file, 661663

pam_cracklib module, 660664

pam_deny.so module, 655

pam_tully2 module, 665667

pam_wheel module, 664

panels, GNOME 2 desktop, 50, 5357

partition tables, 286

partitioning, 220224, 285295

LVM partitions, 295301

multiple-partition disks, 292295

partition types, 221222

RAID partitions, 221222

reasons for, 220221

single-partition disks, 288291

tips for creating, 222224

viewing partitions, 286288

passdb.tdb file, 521

passwd command, 598599

passwd file, 69, 71, 82, 187, 601603

password PAM context, 651

passwords, 321, 596602

best practices, 599601

detecting bad account passwords, 614615

enforcing with PAM, 660663

hashed, 601603

Passwords and Keys window, GNOME, 646

PATH environment variable, 86, 91, 92, 182

penetration testing, 623

permission errors, 474475

permissions

ACLs (Access Control Lists), 271276

Apache, 455

filesystem, 109113, 603604

Samba, 510511

Permissive mode, SELinux, 674, 680682

persistent services, enabling, 408412

php package, 452

php-ldap package, 452

physical security, 591--592

ping command, 353

pipe (|), 8, 8283, 103, 139, 162, 166

Places Status Indicator extension, 4243

plaintext, 627

Pluggable Authentication Module. See PAM

podcasts, 4849

policies, iptables, 715, 717722

policy rules, SELinux, 672, 678679, 686688

policy types, SELinux, 677678, 682

policyoreutils-gui, 176

portability of UNIX, 89

positional parameters, 156157, 169

POSIX (Portable Operating System Interface), 10, 14, 642

postfix administrative login, 190

postfix package, 317

postgresql package, 318

PostgreSQL service, 318

postgresql-server package, 318

PPID environment variable, 80, 86

“Premature end of script headers” errors, 475

Presentation Mode extension, 43

Print Screen key, Metacity, 52

print servers, configuring, 441445

Print Settings window, 428435

printcap file, 187

printers. See also CUPS

adding, 425426

LDP/LPR, 433434

local, 429432

as print servers, 441445

Print Settings window, 428435

remote, 432435

SMB, 434435

status, listing, 440441

web-based CUPS administration, 426428

printers.conf file, 435, 438439, 442443

printing. See also CUPS

exercises, 446447, 813815

lpr command, 440

removing print jobs, 441

Printing, graphical admin tool, 176

private cloud, 750

private key cryptography, 466, 632633

private/public key cryptography, 466, 633637

/proc directory, 99

proc filesystem, 302

process sandboxing, 670

processes, 137152

killing, 146148

limiting with cgroups, 149151

listing, 138143

with ps command, 138140

with System Monitor, 142143

with top command, 140141

process IDs, 137

referring to background processes, 145146

renicing, 148149

security context, SELinux, 685686

starting background processes, 144145

profile file, 88, 89, 187

programming constructs, 66

case command, 162163

for ... do loop, 163164

if ... then statements, 159162

parameter expansion, 157158

until ... do loop, 164

while ... do loop, 164

prompt, shell, 67

PROMPT_COMMAND environment variable, 87

proprietary operating systems, 6

protocols file, 187

proxy connections, configuring, 358359

ps -el command, 676677

ps -eZ command, 677

ps command, 138140

PS1 environment variable, 80, 85, 87, 8991, 90, 91

PS2 environment variable, 80, 89

PS3 environment variable, 80, 89

PS4 environment variable, 80, 89

public cloud, 750

Public FTP, 46

publishing web content, 464465

Puppet, 344, 732

pure-ftpd package, 317

pvdisplay command, 299

pwd command, 7071, 100102, 478, 495

PWD environment variable, 80, 87, 108

Pyrite, 647648

Q

QEMU, 733, 742

R

RAID partitions, 221222

rainbow tables, 602

RANDOM environment variable, 87

raw table, iptables, 714

Raymond, Eric S., 16

RBAC (Role Based Access Controls), 669, 670, 671672, 673

rc0.d (shutdown state), 185

rc1.d (single-user state), 185

rc2.d (multiuser state), 185

rc3.d (multiuser plus networking state), 185

RC4, 466, 631

rc4.d (user-defined state), 185

RC5, 631

rc5.d (multiuser, networking, plus GUI login state), 185

RC6, 631

rc6.d (reboot state), 185

read command, 157

Reboot runlevel, 382, 563

reboot state (rc6.d), 185

recalling commands, 7682

Red Hat Certified Engineer (RHCE), 21, 2223, 2426

Red Hat Certified System Administrator (RHCSA), 21, 2224

Red Hat Cloudforms, 187, 751

Red Hat Enterprise Linux. See RHEL

Red Hat Enterprise Linux OpenStack Platform (RHELOSP), 177

Red Hat Enterprise Virtualization, 18

Red Hat Enterprise Virtualization (RHEV), 177

reiserfs filesystem, 302

remote access

configuring keys for, 763764

managing with SSH, 323334

remote printers, 432435

renice command, 148149

*.repo files, 243

repositories

boot options, 218219

dependency failures, 569571

managing with YUM, 240252

repudiation, 593

Required control flag, PAM, 652

requisite control flag, PAM, 652

rescue mode, 585587

reserved words, command order and, 75

resolution=1024x768 boot option, 217

restorecon command, 487, 510, 513, 540, 685, 693, 820, 834

restricted deletion directories, 278

RHCE (Red Hat Certified Engineer), 21, 2223, 2426

RHCSA (Red Had Certified System Administrator), 21, 2224

RHEL (Red Hat Enterprise Linux), 1718

aliased ls command, 105

backup script, 168

browser-based admin tools, 177

vs. Fedora, 18

GNOME Terminal, 68

installing, 208211

ISO image, 774

mcedit text editor, 118

Networking Guide, 26

RHELOSP, 177

RHEV, 177

software subscriptions, 21

sudo command, 174

System Administrator's Guide, 26

system-config-* tools, 175177

terminal emulators, 68

updatedb command, 125

RHEL OpenStack Platform, 18

RHELOSP (Red Hat Enterprise Linux OpenStack Platform), 177

RHEV (Red Hat Enterprise Virtualization), 177, 732

Rhythmbox music player, 4849, 195, 196

Rijndael, 631. 645

Ritchie, Dennis, 8, 9

rlogin command, 323

rm command, 87, 114115

rmdir command, 115

rmmod command, 198199

rmp -V command, 323

role attribute, SELinux security context, 675677

Role Based Access Controls (RBAC), 669, 670, 671672, 673

/root directory, 9798, 99

Root Password, graphical admin tool, 176

root user, 177182

rootkits, 619620

route command, 353354, 358

router, Linux as, 371372

Roxio Creator, 777

rpc administrative login, 190

rpc file, 187

rpm command, 252256

RPM packages, 236237, 238240

installing, 239240, 247249. 253, 253

managing with YUM, 240252

querying information, 254255

removing, 248249, 253

searching for, 246247

updating, 249251

verifying, 255256

RSA algorithm, 631, 635, 638

rsync command, 330332

rsyslog, 317, 322323, 334339, 344

rsyslog.conf file, 187, 335336

rsyslogd, 188, 189, 319320, 322323, 334, 337339, 689690, 692

rules, iptables, 715, 717722

runcon command, 686

running commands, 7076

S

s special character, 90

Samba, 499526

accessing shares, 521525

configuring, 511521

exercises, 526, 822824

in enterprise environments, 525

installing, 500502

securing, 506511

starting, 502506

stopping, 506

Samba Log, 609

Samba NFS, 176

samba package, 500502

Samba SWAT, 500

samba-client package, 501

samba-common package, 500502

samba-config-samba package, 501

samba-swat package, 501

samba-winbind package, 501

sandbox command, 686

sanity checking, 181, 183

SANS Institute, 624

Santa Cruz Operation (SCO), 10, 11

sar command, 323, 340341

/sbin directory, 99, 182

scanning filesystem, 616618

SCC (Secure Computing Corporation), 669

SCO (Santa Cruz Operation), 10, 11

scp command, 321, 323, 324, 326, 329330, 329332, 334

Seahorse, 646, 647

sealert command, 690691

secon command, 683

SECONDS environment variable, 87

secret key cryptography, 466, 632633

Secure WebDav, 46

Secure Computing Corporation (SCC), 669

secure log file, 189

Secure Shell. See SSH

Secure Sockets Layer (SSL), 465471, 816

security

Apache web server, 455457, 465471

cryptography, 627648

encryption/decryption, 630639

exercises, 668, 830832

hashing, 628630

disaster recovery, 592593

filesystem security, 603606

FTP servers, 483488

network security

auditing advertisements, 704708

auditing network services, 699710

controlling access, 708710

evaluating access, 701704

firewalls, 710724

NFS servers, 536540

PAM (Pluggable Authentication Modules), 648667

passwords, 596602

physical security, 591592

Samba, 506511

SELinux. See SELinux

server security, 321322

configuration file settings, 322

firewalls, 321

password protection, 321

SELinux, 322

TCP Wrappers, 322

user accounts, 593596

security clearance attribute, SELinux, 673

security contexts, SELinux, 672, 674677, 683686

security labels, SELinux, 672, 684685

Security Log, 609

security reviews, 623624

security table, iptables, 714

sed command, 166

SELinux

Apache web server, 456457

AVC (Access Vector Cache) denials, 670, 673, 689692, 694, 697, 834

benefits, 669671

configuring, 679689

via Booleans, 688689

for FTP server, 486487

mode, 680682

for NFS servers, 539540

policy rule packages, 686688

policy type, 682

for Samba, 508510

security contexts, 683686

exercises, 696697, 832835

information sources, 695

logging, 689692

MLS (Multi-Level Security), 672673

operational modes, 673674, 680682

policy rules, 672, 678679, 686688

policy types, 677678, 682

RHCE exam, 25

securing Apache, 456457

security contexts, 672, 674677, 683686

TE (Type Enforcement), 671672

troubleshooting, 689694

SELinux Management, 176

semanage command, 487, 509, 510, 540, 684, 693, 820

semodule command, 686, 687, 692, 834

semodule_deps, 687

semodule_expand, 687

semodule_link, 687

semodule_package, 687

Sendmail Log, 609

sendmail package, 317

sequential commands, 83

server administration

configuring servers, 318319

enterprise servers, 344

exercises, 345346, 805807

installing servers, 316318

monitoring servers, 322323

package categories, 316318

remote access, managing, 323334

securing servers, 321322

starting servers, 319320

system logging, configuring, 334340

system resources, checking, 340341

system space, checking, 341343

server internal errors, 474475

service ssh start command, 325

service sshd start command, 325

services, 377422

adding, 414422

default runlevel, configuring, 412414

initialization daemon, 378399

persistent services, enabling, 408412

status, checking, 399403

stopping and starting, 403408

target units, configuring, 412414

services file, 187, 699700

Services, graphical admin tool, 176

session PAM context, 651

set GID, 107, 270, 271, 276277

set UID, 107, 276277

setfacl command, 271, 272274

setsebool command, 487, 509, 518, 540, 688689, 694

sftp command, 332

SHA-1 hash, 630, 639, 831

SHA-2 hash, 630, 639640

sha1sum command, 639, 831

sha224sum command, 639640

shadow file, 187, 628

shared folders, Samba, 513514

shell

choosing, 6970

commands. See commands

default, identifying, 69

environment variables, 8588

escaping shell characters, 155

exercises, 95, 784786

exiting, 88

prompt, 67

starting, 6669

shell history, 7666, 8082

shell scripts, 153168

backup example, 168

command-line arguments, 154

debugging, 154

executing, 154

exercises, 169, 790793

integer arithmetic, 158159

programming constructs, 159164

telephone list example, 167168

text-manipulation programs, 164166

variables, 154158

shells file, 187

SHLVL environment variable, 87

showmount command, 540541

Shutdown runlevel, 562

shutdown state (rc0.d), 185

SIGABRT signal, 147

SIGCONT signal, 146, 147

SIGHUP signal, 146, 147, 148

SIGINT signal, 147

SIGKILL signal, 146, 147

signals, 146148

signatures, 628

SIGQUIT signal, 147

SIGSTOP signal, 146, 147

SIGTERM signal, 146, 147, 148

Single User Mode runlevel, 382

Single-user runlevel, 562

single-user state (rc1.d) file, 185

skipddc boot option, 217

Slackware, 16, 202

SMB printers, 434435

smb service, 502505

starting, 503505

stopping, 506

smb.conf file, 183, 444, 511, 516521

smbclient command, 504, 505, 508, 515

smbpasswd command, 521

smbusers file, 502

Snort, 620

software packages

DEB, 236238

exercises, 258, 797798

RPM, 238240

installing, 239240, 253

managing in the enterprise, 256257

managing with YUM, 240252

querying information, 254255

verifying, 255256

sanity testing configuration files, 183

server package categories, 316318

tarballs, 236237

troubleshooting, 568573

updating, 607

verifying, 615616

Software window, 47, 233235

Spacewalk, 257

SpamAssassin, 450

special characters

inserting, 78, 90

metacharacters, 102105

spooler file, 609

SQL Server, 318

Squid Log, 609

squid package, 317, 453

SSH (Secure Shell), 323334

client tools, 326332

key-based authentication, 332334

openssh-server service, 324326

RHCE exam, 26

ssh command

for remote execution, 328329

for remote login, 326328

X11 forwarding, 328329

ssh-copy command, 333

ssh-copy-id command, 346

ssh-keygen command, 333

ssh256sum command, 639640

ssh384sum command, 639640

ssh512sum command, 639640

sshd service, 320, 324326, 332, 334

SSL (Secure Sockets Layer), 465471, 816

ssl.conf file, 467

Stallman, Richard M., 11

status ssh command, 325

stop process, 147

stream ciphers, 628, 631

stream editor (sed), 166

su command, 174, 178179

subnet mask, 349, 351

substack control flag, PAM, 652

substituting commands, 84

sudo command, 174, 180182, 664

sudoers file, 187

sufficient control flag, PAM, 652

SUID permissions, 603606

Sun Microsystems, 11

NIS (Network Information Service), 279

PAM (Pluggable Authentication Modules), 610

shell choice and, 70

ufs filesystem, 303

VirtualBox, 216

SVID (System V Interface Definition), 10, 14

swap areas

disabling, 304305

enabling, 303304

swapoff command, 304305

symbolic links, 106, 108, 110, 161, 330, 331, 399, 414, 421, 618

symmetric cryptography, 466, 632633

syntax, 7173

/sysconfig/samba file, 502

sysct1.conf file, 25

SYSLINUX boot loader, 224

syslogd, 189

sysstat package, 323, 340, 565

System Activity Reporter (sar), 323, 340341

system administration

administrative commands, 182183

checking/configuring hardware, 190199

configuration files, 183188

graphical tools, 175177

log files, 188189

systemd journal, 188189

using other administrative accounts, 189190

using root user account, 177182

System Administration Tools and Daemons man page section, 94

System Calls man page section, 93

System Log, 610

System Monitor, 142143

system monitoring, 608622

filesystems, 615622

log files, 608611

user accounts, 612615

system resources, monitoring, 340341

System Settings window, GNOME 3 desktop, 4142

system space, checking, 341343

System V init, 552553

System V Interface Definition (SVID), 10, 14

system-config-bind, 176

system-config-date, 176

system-config-firewall, 176

system-config-httpd, 176

system-config-kickstart, 177

system-config-network, 360

system-config-nfs, 176, 532

system-config-printer, 176, 317, 425, 429, 432433

system-config-rootpassword, 176

system-config-samba, 176, 444, 500, 501, 511516

system-config-selinux, 509, 689

system-config-services, 176

system-config-users, 176

systemctl command, 438

systemctl enable sshd.service command, 325

systemctl list-unit-files command, 393394

systemctl start sshd.service command, 325

systemctl status sshd.service command, 325

systemd, 378386

adding new services, 419422

backward compatibility to SysVinit, 39799

basics, 392397

checking services for, 402403

configuring default target, 413414

configuring persistent services, 410412

starting/stopping, 406408

systemd journal, 188189

systemd, 553554

SysVinit, 378386

adding services, 414417

checking services for, 400401

configuring persistent services, 408409

default runlevel, 412413

disabling services, 409

starting and stopping services, 403404

systemd's backward compatibility, 397399

Upstart's backward compatibility, 388392

T

t special character, 90

tarballs, 236237

target units, configuring, 412414

Targeted policy, SELinux, 678, 682

targeted SELinux policies, 672

targets, iptables, 715

tcsh, 65, 69

TCP Wrappers

allowing FTP access in, 486

NFS access, 539

TE (Type Enforcement), 671672

telephone list shell script, 167168

telnet command, 323

termcap file, 188

Terminal window, 6869

testparm command, 183

text

cut command, 165

grep command, 165

sed command, 166

tr command, 165166

text editors. See also specific editors

configuration files structure, 184

exercises, 134135, 787789

vi, 117124

adding text, 119120

changing text, 121122

copying text, 121122

deleting text, 121122

ex mode, 124

exiting, 122123

movement commands, 123

moving around in text, 120121

pasting text, 122

searching for text, 124

tutorial, 124

text files

editing, 117124

finding, 125134

The Open Group, 14

Thompson, Ken, 8

time.conf file, 659660

TLS (Transport Layer Security), 280, 452, 465471

TMOUT environment variable, 87, 91

/tmp directory, 99, 224

togglebool command, 688

TomCat, 450

top command, 140141, 583584

Torvalds, Linus, 67, 10, 1314, 26

touch command, 102, 105

tr command, 165166

traceroute command, 354355

Transport Layer Security (TLS), 280, 452, 465471

tripwire, 620

troubleshooting

boot up, 551568

exercises, 587588, 826829

memory, 580585

networking, 573580

in rescue mode, 585587

SELinux, 689694

software packages, 568573

web servers, 471475

TrueCrypt, 640

ttytab file, 381

tune2fs command, 275

type attribute, SELinux security context, 675677

type command, 75

Type Enforcement, SELinux, 671672

U

u special character, 90

Ubuntu

Apache configuration file, 457

autofs, installing, 545

booting from USB drive, 779780

chkrootkit installation, 619

ClamAV packages, 618

cloud images, 756757

GRUB boot loader, 224231

installing from installation DVD, 201

John the Ripper installation, 614

Live ISO image, 775776

lvs command, installing, 641

netfilter/iptables firewall, 716, 724

nmap installation, 701

openssh-server installation, 324

PAM modules, finding, 652

SELinux installation, 670

SELinux policy packages, checking, 682

sudo privilege, 174

upgrade options, 213214

verifying packages, 616

vsftpd installation, 479

UEFI(Unified Extensible Firmware Interface), 554557

ufs filesystem, 303

umask command, 112113

umount command, 309, 549

umsdos filesystem, 302

unalias command, 87

uname command, 72, 155156

Undefined runlevel, 563

Unified Extensible Firmware Interface (UEFI), 554557

United States Computer Emergency Readiness Team, 623

Univel, 10

UNIX

commercialized, 911

foundational elements, 89

GNU project, 11, 12, 14

portability, 89

UNIX Laboratory, 1011

UNIX System Laboratories (USL), 1011

UnixWare, 10, 11

unmounting filesystems, 309, 549

until...do loop, 164

untyped variables, 158

up2date file, 242

update-rc.d ssh defaults command, 325

updatedb command, 125126, 149

updating

Linux, 213214

packages, 249251

software packages, 607

Upstart, 554

adding new services, 417419

backward compatibility to SysVinit, 388392

checking services for, 401402

configuring default runlevel, 413

configuring persistent services, 409410

starting/stopping services, 405

Upstart init daemon, 378, 379, 380, 386392

upstream software providers, 239

USB drive, booting from, 779780

use_nfs_home_dirs SELinux file context, 539540

user accounts

centralized, 278281

creating, 259268

adding users, 262265

deleting users, 268

modifying users, 266267

setting user defaults, 265266

definition in /etc/password, 69

exercises, 281282, 798802

/home directory, 224

locking with PAM, 665667

managing in the enterprise, 270278

monitoring, 612615

Nautilus, 45

process association, 137, 142

root, 177182

Samba, 512513

securing, 593596

system administrators and, 174

user attribute, SELinux security context, 674677

User Commands man page section, 93

User Defined runlevel, 382

USER environment variable, 85

user-defined state (rc4.d), 185

useradd command, 260, 262266

userdel command, 268

usermod command, 266267

Users & Groups, graphical admin tool, 176

Users window, 259, 261, 262, 279

USL (UNIX System Laboratories), 1011

/usr directory, 99, 223

/usr/bin directory, 74, 183

/usr/local/bin directory, 74

/usr/sbin directory, 182

UUCP Log, 610

V

Vagrant, 344, 732

/var directory, 99, 224

/var/allusers directory, 107, 132

/var/autofs directory, 546

/var/cache/yum directory, 243, 252, 572, 573

/var/ftp directory, 478, 481, 482, 487, 490

/var/lib/libvirt/images directory, 737, 738, 741

/var/lib/rpm directory, 244, 252, 572

/var/lib/samba/private/passdb.tdb file, 521

/var/log directory, 322, 334, 336, 608611

/var/log/audit/audit.log file, 689690

/var/log/httpd directory, 475

/var/log/httpd/error.log file, 472

/var/log/messages file, 337

/var/log/samba directory, 502, 510

/var/log/secure file, 594

/var/logs/dmesg file, 192193

/var/named directory, 373

/var/salesdocs directory, 268

/var/stuff directory, 275276

/var/www/error directory, 451452

/var/www/html directory, 455

/var/www/manual directory, 452

verifying RPM packages, 255256

Very Secure FTP Daemon. See vsftpd

vfat filesystem, 302

vgdisplay command, 299

vi text editor, 117124

adding text, 119120

changing text, 121122

copying text, 121122

deleting text, 121122

ex mode, 124

exiting, 122123

movement commands, 123

moving around in text, 120121

pasting text, 122

searching for text, 124

tutorial, 124

vim command, 119, 124, 184, 318, 561

vimtutor command, 124, 181

virt-install, 740, 753, 756

virt-manager, 730, 733734, 737, 740744, 754755

virt-viewer, 734

virtual consoles, 69

exiting shell, 88

tty1, 73

virtual hosts, adding, 462464

virtual machines, 730

creating, 740744

managing, 744745

migrating, 745747

virtual network computing (vnc) installations, 218

VirtualBox, 204, 216

virtualization, 5

Linux installation, 216

Red Hat Enterprise Virtualization, 18, 177

RHEL OpenStack Platform, 18

Xen, 5, 204, 216, 730

virus signatures, 618

viruses, 618622

VMWare, 204, 216

vnc (virtual network computing) installations, 218

vnc boot option, 218

vncconnect=hostname[:port] boot option, 218

vncpassword=password boot option, 218

volume groups, 295301, 804

vsftpd, 317, 477479. See also FTP servers

installing, 479480

Internet setup, 491492

relating Linux file permissions, 488

securing, 483488

starting, 480483

user access, 488489

writing to, 489491

vsftpd.conf file, 480, 488

vsftpd.log file, 609

W

w special character, 90

web servers

Apache web server

configuration files, 457462

installing, 450454

publishing web content, 464465

securing, 455457

SSL/TLS, 465471

starting, 454455

troubleshooting, 471475

virtual hosts, adding, 462464

RHCE exam, 25

troubleshooting, 471475

webalizer package, 453

webalizer package, 317

WebDav, 46

while...do loop, 164

who am i command, 69

who command, 73

Winbind, 279

Window List extension, 4243

window managers, 31

Compiz, 50, 51, 58

Metacity, 5052

window menu, GNOME 3 desktop, 37

Windows

file sharing. See Samba

vs. Linux, 6

Linux ISO image, burning, 776777

Workspace Switcher, Metacity, 52, 58

wtmp file, 610

X

X Windowing System, 3032

X.Org X11 Log, 610

X11 forwarding, 328329

xdriver-vesa boot option, 217

Xen, 5, 204, 216, 730

xeyes command, 152

Xfce desktop, 14, 29, 31, 32

xferlog file, 609

XFree86.0.log file, 189

xfs filesystem, 303

xinetd.conf file, 188

Xorg.0.log file, 189, 610

xorg.conf file, 60, 188

Y

ypserv package, 317

YUM (Yellowdog Updater Modified) project, 240252

downloading packages, 252

installing packages, 247249

maintaining package database/cache, 251252

removing packages, 248249

searching for packages, 246247

updating packages, 249251

using with third-party repositories, 244245

yum command, 241244, 245252

YUM Log, 610

yum.conf file, 242

yum.log file, 242, 610

Z

Zipcloak, 646

Zorin OS, 19