! (exclamation point), 80, 155, 160, 267, 495
“ (double quotes), 155, 160, 262, 266
# (hash mark), 67
$ (dollar sign), 67, 79, 85, 89, 155, 156
$(()) notation, 159
$@ variable, 156
$0 variable, 156
% (percent), 145
& (ampersand), 82, 83–84, 144, 162
' (single quotes), 155
> (greater 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), 71–72, 106, 129, 130, 165, 757
/ (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
? (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, 131–132, 157
| (pipe), 8, 82–83, 103, 139, 162, 166
3DES, 631
A
absolute path, 100
Accelerated Indirect GLX (AIGLX) project, 58–60
Access Control Lists (ACLs), 271–276
Access Vector Cache (AVC) denials, 670, 673, 689–692, 694, 697, 834
account PAM context, 651
ACLs (Access Control Lists), 271–276
acpi=off boot option, 217
activity reports, 323
Advanced Encryption Standard (AES), 630, 631, 645
Advanced Intrusion Detection Environment (aide), 620–622
AES (Advanced Encryption Standard), 630, 631, 645
aescrypt, 645
affs filesystem, 303
AIGLX (Accelerated Indirect GLX) project, 58–60
aliases
aliases file, 186
Alt+SysRq keystrokes, 585
amanda utility, 593
anaconda installer, 17, 212, 213, 216, 219, 275
Ansible, 344
apache administrative login, 190
Apache Software Foundation (ASF), 450
Apache web server, 449
publishing web content, 464–465
virtual hosts, adding, 462–464
apache2.conf file, 457
Apple
OS X vs. Linux, 6
Applications Menu extension, 42–43
appSocket connections, 427, 433
ARC4, 631
ArcFour, 631
Aroha, Ryan Sawhill, 647
arrow keys
command history, 81
GRUB Legacy, 226
vi text editor, 120
ASF (Apache Software Foundation), 450
ash, 65
asymmetric key cryptography, 466, 633–637
Audio CD Extractor, 195
audit logs, SELinux, 612–614, 690
audit2allow command, 674, 687, 695
audit2why command, 687
auditd, 612–614, 625, 689–690, 692, 829
auditing Linux systems, 622–624
auditing network services, 699–710
auditing advertisements, 704–708
aureport command, 690
ausearch command, 612–613, 614, 690, 835
auth PAM context, 651
authconfig command, 279, 655–657, 660, 665
authconfig-gtk, 176
Authentication Configuration window, 279–281
Authentication, graphical admin tool, 176
avahi administrative login, 190
AVC (Access Vector Cache) denials, 670, 673, 689–692, 694, 697, 834
B
“Baby Bell” companies, 9
background processes, 139
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
bash shell, 65–66. See also shell
command-line completion, 79–80
environment variables, 85–88, 88–89
file-matching metacharacters, 102–103
file-redirection metacharacters, 103–104
moving programs between background and foreground, 144
BASH_VERSION environment variable, 86
bcrypt, 645
befs filesystem, 302
Bell-LaPadula Mandatory Access security model, 672
Berkeley Software Distribution. See BSD
Berkeley Software Distribution License, 15–16
bin administrative login, 190
/bin directory, 98
administrative commands, 183
bind package, 317
blkid command, 306
block devices, 110
Bluetooth, 42
Booleans, SELinux management via, 688–689
/boot/grub/grub.conf file, 226–229
/boot/grub2/grub.cfg file, 230–231
Boot Log, 609
booting
brace expansion characters, 105
Brasero, 195
browser-based graphical management tools, 177
BSD (Berkeley Software Distribution)
AT&T lawsuit, 13
btmp file, 610
btrfs filesystem, 302
built-in commands, 75
C
C Library Functions man page section, 93
C programming language, 9
Caesar Cipher, 630
case ... esac, 163
ccrypt, 645
CDP (Clean Desk Policy), 592
centralized user accounts, 278–281
CERT (Computer Emergency Readiness Team), 623
certificates, SSL, 280, 465–471
chage command, 76, 594–595, 600–601, 603
chains, netfilter/iptables firewall, 714–715
character devices, 110
chcat command, 685
chcon command, 465, 685, 816, 833, 834
checkmodule, 687
checkpolicy, 687
checksums, 628
chkconfig --list sshd command, 325
chkconfig sshd on command, 325
chmod command, 100, 101–102, 104, 111–112, 168, 273, 276
chrony administrative login, 190
cifs filesystem, 302
cipher text. See also decryption; encryption hashing, 628–630
ClamAV, 618
classification level attribute, SELinux, 673
Clean Desk Policy (CDP), 592
“Client denied by server configuration” error, 474
cloud computing, 729–748, 749–767
Amazon EC2 deployment, 765–766
authentication, 731
cloud-based Linux installations, 211
creating Linux images, 751–760
creating virtual machines, 740–744
deployment, 732
OpenStack, 5, 18, 177, 211, 731, 732, 750, 752, 760–765
platforms, 732
providing networked storage, 738–740
RHELOSP (Red Hat Enterprise Linux OpenStack Platform), 177
storage, 731
cloud-init facility, 751–753, 757–760
cloud.cfg file, 754
clustering, 5
cnegus-test-project, 761
commands
arithmetic results, passing, 84–85
built-in, 75
command-line completion, 79–80
getting information about, 92–94
history list, 75, 76–77, 80–82
sequential commands, 83
shell prompt, 67
substitution, 84
system administration, 182–183
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 files
cp command, 114
cpio utility, 593
cracklib utility, 598
Cron Log, 609
crypto-utils package, 452
encryption/decryption
ciphers, 630
csh.cshrc file, 186
CUPS, 423–446. See also printers; printing
command-line printing, 439–441
configuring CUPS server, 436–437
configuring print servers, 441–443
Print Settings window, 428–435
web-based administration, 426–428
cups package, 317
cut command, 165
CVE (Common Vulnerabilities and Exposures), 607
D
d special character, 90
DAC (Discretionary Access Controls), 669–670
checking config files, 183
/etc/httpd directory, 184
/etc/xinetd.d directory, 185–186
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
Data Encryption Standard (DES), 466, 631
Date & Time, graphical admin tool, 176
date --help command, 73
decryption, 628
cryptographic cipher keys, 631–637
cryptographic ciphers, 630–631
DES (Data Encryption Standard), 466, 631
/dev directory, 98
Devices and Special Files man page section, 93
DHCP servers, 207, 210, 348, 349, 355, 363–364, 372, 576
Digital Signature Algorithm (DSA), 638
directives, Apache web server, 457–460
directories
absolute path, 100
adding current to PATH, 91
changing permissions, 101–102, 104, 111–112, 168, 273, 276
DirectoryIndex directive, 459
“Directory index forbidden by rule” error, 475
Disabled mode, SELinux, 673–674, 680–682
Discretionary Access Controls (DAC), 669–670
Disk Usage Analyzer, 176
Disk Utility, 177
distributions, 16–20. See also specific distributions
dmesg command, 191, 192–183, 203
DNS servers
/etc/resolv.conf file, 366–367
hypervisor-storage system communication, 738
interface configuration, 355–358
named.conf file, 187
queries, checking, 367
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
dumb terminals, 144
dump utility, 291, 305, 307, 593, 606, 610
Duplicity, 646
El Gamal, 631
elementary OS, 19
elif statements, 160
Elliptic Curve Cryptosystems, 631
emacs command, 118
encryption, 628
cryptographic cipher keys, 631–637
cryptographic ciphers, 630–631
files, 645
Enforcing mode, SELinux, 674, 680–682
enterprise environments
network configuration, 371–373
RPM package management, 256–257
Samba, 525
server administration, 344
user/group account management, 270–278
env command, 85
environment variables
expanding, 85
errata, 607
ErrorDocument direction, 459
esac, 163
escaping shell characters, 155
/etc directory, 98, 184, 186–188
/etc/aliases file, 186
/etc/apache2/apache2.conf file, 457
/etc/cloud/cloud.cfg file, 754
/etc/cron directory, 184
/etc/crontab file, 186
/etc/crypttab file, 562, 641–642
/etc/csh.cshrc file, 186
/etc/cups/cupsd.conf file, 436–437
/etc/cups/mime.types file, 439
/etc/cups/printers.conf file, 435, 438–439, 442–443
/etc/default directory, 184
/etc/exports file, 186, 528, 529, 531, 532–535
/etc/fstab file, 186, 274, 275, 276, 305–306
/etc/group file, 186
/etc/gshadow file, 186
/etc/host.conf file, 186
/etc/hosts file, 79, 186, 365–366, 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, 184–185
/etc/inittab file, 187, 382–386, 389–391, 398–399, 412–413
/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, 366–367
/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, 661–663, 666
/etc/passwd file, 69, 71, 82, 187, 264, 269, 278, 279, 280, 601–603
/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, 335–336
/etc/samba directory, 502
/etc/samba/smb.conf file, 444, 511, 516–521
/etc/samba/smbusers file, 502
/etc/security directory, 185
/etc/security/limits.conf file, 657–658, 832
/etc/security/time.conf file, 659–660
/etc/selinux/config file, 679–680
/etc/services file, 187, 699–700
/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, 185–186
/etc/xinetd/conf file, 188
/etc/yum.conf file, 242
/etc/yum.repos.d/*.repo files, 243
Ethernet channel bonding, 368–370
EUID environment variable, 86
execute bits, 106, 107, 110, 111, 129, 276–278
exercises and answers
Apache web servers, 475–476, 815–818
basic security, 624–625, 829–830
cloud computing, 747–748, 837–838
Linux installation, 231–232, 795–797
network security, 724–725, 835–837
server administration, 345–346, 805–807
starting/stopping services, 422, 810–813
system administration, 199–200, 793–795
troubleshooting Linux, 587–588, 826–829
user and group accounts, 281–282, 798–802
exim package, 317
exit command, 69, 75, 81, 87, 88
exports file, 186, 528, 529, 531, 532–535
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
FCEDIT environment variable, 86
FCoE (Fibre Channel over Ethernet) devices, 220
fdisk command, 222–223, 286–288, 289, 290, 292, 296, 557, 802–803
Fedora
aliased ls command, 105
backup script, 168
backup shell script, 168
booting from USB drive, 779
GNOME Terminal, 68
installing from live media, 203–207
mcedit text editor, 118
NFS Server Configuration window, 531–532
vs. RHEL, 18
sudo command, 174
system-config-* tools, 175–177
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 sharing. See Samba
file-matching metacharacters, 102–103
files
encrypting, 645
security context, SELinux, 683, 684–685
copying files, 114
exercises, 115–116, 311–312, 786–787, 802–804
listing files/directories, 105–109
moving files, 114
unmounting, 309
filter table, iptables, 713
finding
files
fingerprints, 628
Firefox, FTP server access, 493
firestarter application, 711
Firewall, graphical admin tool, 176
firewalld service, 316, 712–713
firewalld service, 316, 321, 712–713
iptables utility, 316, 713–724
RHCE exam, 26
firmware RAID devices, 220
firstboot command, 210
“first picture” databases, 620–622
fixfiles command, 685
foomatic package, 317
limiting with cgroups, 149–151
fork bombs, 657
FOSS (Free and Open Source Software), 12
free software, 12
Free Software Directory, 12
Free Software Foundation (FSF), 11–12, 26
FTP Log, 609
FTP Transfer Log, 609
G
Games man page section, 94
gedit text editor, 117, 118, 152, 181, 328–329
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
Gibson Research Corporation, 624
Global Unique Identifiers (GUID), 286
GlusterFS, 5
Metacity window manager, 50–52
command box, 40
Fedora GNOME desktop live image, 32–33
Nautilus file manager, 45–46, 47, 50, 195–196, 522–523
navigating with keyboard, 38–41
Rhythmbox music player, 48–49, 195, 196
stopping, 49
Window menu, 37
GNOME Display Manager Log, 609
GNOME Terminal, 68
gnome-disks, 177
gnome-terminal, 68
gnome-utils, 176
GNU Hurd project, 12
GNU Lesser General Public License (LGPL), 15
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, 632–637, 632–639, 830–831
gpgcheck, 242
gpgcheck, 242
gpgkey, 243
GPL (GNU Public License), 12, 14, 15, 27
GRand Unified Bootloader (GRUB), 224–231
graphical boot option, 217
Graphical Mode runlevel, 382
graphical system administration tools, 175–177
grep command, 69, 84, 132–133, 165
creating, 270
managing in the enterprise, 270–278
process association, 137, 268–270
group file, 186
groupadd command, 270
groupmod command, 270
GRUB (GRand Unified Bootloader), 224–231
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
hardware
boot options for disabling, 217
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, 76–77, 80–81, 80–82
$HOME directory, 184
HOME environment variable, 86, 108–109, 155
host-based firewalls, 711
host.conf file, 186
hostname file, 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, 254–255, 317, 318, 449, 450–453
httpd-manual package, 317, 452
Hurd project, 12
hybrid cloud, 751
RHELOSP, 177
hypervisors, 730
creating virtual machines, 740–744
managing virtual machines, 744–745
migrating virtual machines, 745–747
providing networked storage, 738–740
I
id command, 73
IDEA, 631
identification and authentication process, 648
IDS (Intrusion Detection System) software, 620–622
if ... elif statements, 160
if ... then statements, 159–162
ifconfig command, 353
include control flag, PAM, 652
info command, 93
init systems
advantages, 377
backward compatibility to SysVinit, 397–99
checking services for, 402–403
configuring default target, 413–414
configuring persistent services, 410–412
checking services for, 400–401
configuring persistent services, 408–409
disabling services, 409
starting and stopping services, 403–404
systemd's backward compatibility, 397–399
Upstart's backward compatibility, 388–392
Upstart, 554
backward compatibility to SysVinit, 388–392
checking services for, 401–402
configuring default runlevel, 413
configuring persistent services, 409–410
starting/stopping services, 405
inittab file, 187, 382–386, 389–391, 398–399, 412–413
installing
anaconda installer, 17, 212, 213, 216, 219, 275
cloud-based installations, 211
enterprise environments, 211–213
hardware requirements, 202–203
partitioning hard drives, 220–224
RHEL installation DVD, 208–210
virtualization, 216
interactive copying, 332
Internet Printing Protocol (IPP), 424, 427, 432–433
Intrusion Detection System (IDS) software, 620–622
Intrusion Prevention software, 620
ip addr show command, 352
IP addresses, 348–349. See also iptables utility
Ethernet channel bonding, 368–370
IPP (Internet Printing Protocol), 424, 427, 432–433
iptables, 316, 321, 578–579, 713–724, 816, 819–820, 823–825, 836
targets, 715
iso9660 filesystem, 302
J
JBoss, 18
jed text editor , 118
jfs filesystem, 303
joe text editor, 118
journalctl command, 188–189, 192, 200, 317, 334, 608, 610–611
K
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 rings, 633–637, 639, 668, 831
key-based authentication, 332–334
Kickstart, 177
kickstart files, 177, 212, 213, 216, 218–219, 257
KNOPPIX distribution, 16, 32, 214, 237
krb5-server package, 317
KVM (Kernel Virtualization Module), 730, 733, 735–738
L
LAMP stack, 3
Language, graphical admin tool, 176
Last.fm, 49
lastlog command, 610
LastLog log, 609
LDAP (Lightweight Directory Access Protocol), 279–281, 317, 452, 547
less command, 77
Lesser General Public License (LGPL), 15
level attribute, SELinux security context, 675–677
LGPL (GNU Lesser General Public License), 15
/lib directory, 98
/lib/systemd/system directory, 420
libpam.so, 648
licenses, open source, 15–16, 27. See also GPL
limits.conf file, 657–658, 832
Linux
bootable CD/DVD, creating, 776–779
distributions, 16–20. See also specific distributions
professional opportunities, 20–26
vs. proprietary operating systems, 6
Linux Mint, 19
Linux Unified Key Setup (LUKS), 640
Linux-PAM System Administrator's Guide, 667
listing
live Linux ISO images, 32–33, 203–207
load_policy , 687
localhost.crt file, 468
localhost.key file, 468
locate command, 75, 76, 125–126
logging
logical volume management (LVM), 295–301
Login Log, 609
Logout Log, 609
logrotate.d/samba file, 502
logrotate.d/vsftpd file, 480
loops
until ... do, 164
while ... do, 164
lp administrative login, 190
lprm command, 441
ls command, 71–72, 102–103, 105–108, 105–109
lscpu command, 194
lspci command, 193
LUKS (Linux Unified Key Setup), 640
lvdisplay command, 299
LVM (logical volume management), 295–301
LXDE (Lightweight X11 Desktop Environment), 14, 29, 31, 32, 250–251
LXLE, 19
M
Magnatune, 49
MAIL environment variable, 85, 86
Mail Log, 609
Mail Transport Agent (MTA), 317
maillog file, 609
Mandrake distribution, 17
Mandriva distribution, 17
mangle table, iptables, 713
MBR (Master Boot Record), 286
mcedit text editor, 118
md5sum, 252, 256, 628–629, 639, 831
/media directory, 98
memory, troubleshooting, 580–585
message digests, 628
messages log file, 189, 337, 338–339, 610, 690–691
metacharacters
$ (dollar sign), 85
& (ampersand), 82, 83–84, 144, 162
; (semicolon), 82, 83, 132, 444, 516, 659
| (pipe), 8, 82–83, 103, 139, 162, 166
command substitution, 84
definition of, 82
text searches, 124
Metacity window manager, 50–52
mime.types file, 439
mini-PaaS, 734
Minimum policy, SELinux, 678, 682
minix filesystem, 302
/misc directory, 98
Miscellaneous man page section, 94
MIT license, 16
mkdir command, 100, 101, 109, 162
MLS (Multi-Level Security), 672–673
/mnt directory, 98
mod_perl package, 452
modprobe command, 198
modules
loading, 198
mount command, 307–309, 541–544
defining mountable filesystems, 305–306
supported filesystems, 301–303
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, 395–397, 398–399, 413–414, 420–421, 567
Multics project, 8
Multilevel plus networking runlevel, 562–563
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
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
nat table, iptables, 713
Nautilus file manager, 45–46, 47, 50, 195–196, 522–523
ncpfs filesystem, 303
NCSA HTTPD, 450
nedit text editor, 118
Nero, 777
Net/1, 13
Net/2, 13
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, 704–708
auditing network services, 699–710
iptables utility, 321, 713–724
network-based firewalls, 711
network-scripts directory, 363
checking network interfaces, 350–355
configuring
from the command line, 360–371
NetworkManager, 348
checking network interfaces, 350–352
configuring network interfaces, 355–358
configuring proxy connections, 358–359
disabling, 412
editing /etc/resolv.conf file, 366
turning off, 363
newgrp command, 269
news administrative login, 190
News Log, 609
administration setup tasks, 527–528
mounting NFS filesystems, 541–548
RHCE exam, 26
sharing NFS filesystems, 531–536
NFS, graphical admin tool, 176
nfs-server package, 530
nfs_export_all_ro SELinux file context, 539
nfs_export_all_rw SELinux file context, 539
nfsmount.conf file, 545
NFSv4, 536
nisplus databases, 366
nmb service, 502
stopping, 506
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, 14–16
open source software, 12
Open Sources: Voices from the Open Source Revolution, 14
openldap package, 317
openldap-servers package, 317
openssh-client package, 324, 326
openssh-server package, 324–326
openssl command, 263, 469–470, 473, 476, 646, 816–817
OpenStack, 5, 18, 177, 211, 731, 732, 750, 752, 760–765
operating systems
proprietary, 6
operational modes, SELinux, 673–674, 680–682
/opt directory, 98
optional control flag, PAM, 652
Options directive, 459
OS X vs. Linux, 6
OSI (Open Source Initiative), 12, 14–16, 710, 711
OSTYPE environment variable, 80, 86
Overview screen
P
Package Collections, 316
Package Groups, 316
packages. See software packages
packet filters, 711
PAM (Pluggable Authentication Module), 648–667
good passwords, enforcing, 660–663
PAM-aware application configuration files, 654–655
resources, implementing, 657–658
sudo use, encouraging, 664
system event configuration files, 653–654, 655–657
time restrictions, implementing, 658–660
user accounts, locking, 665–667
authentication process, 649–654
benefits, 649
information sources, 667
PAM Module Reference, 667
pam-auth-config utility, 656
PAM-aware applications, 648–649
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, 661–663
pam_deny.so module, 655
pam_wheel module, 664
panels, GNOME 2 desktop, 50, 53–57
partition tables, 286
partitioning, 220–224, 285–295
multiple-partition disks, 292–295
single-partition disks, 288–291
passdb.tdb file, 521
passwd file, 69, 71, 82, 187, 601–603
password PAM context, 651
detecting bad account passwords, 614–615
Passwords and Keys window, GNOME, 646
PATH environment variable, 86, 91, 92, 182
penetration testing, 623
permissions
ACLs (Access Control Lists), 271–276
Apache, 455
Permissive mode, SELinux, 674, 680–682
persistent services, enabling, 408–412
php package, 452
php-ldap package, 452
ping command, 353
pipe (|), 8, 82–83, 103, 139, 162, 166
Places Status Indicator extension, 42–43
plaintext, 627
Pluggable Authentication Module. See PAM
policies, iptables, 715, 717–722
policy rules, SELinux, 672, 678–679, 686–688
policy types, SELinux, 677–678, 682
policyoreutils-gui, 176
positional parameters, 156–157, 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, 441–445
Print Settings window, 428–435
printcap file, 187
printers. See also CUPS
Print Settings window, 428–435
web-based CUPS administration, 426–428
printers.conf file, 435, 438–439, 442–443
printing. See also CUPS
lpr command, 440
removing print jobs, 441
Printing, graphical admin tool, 176
private cloud, 750
private key cryptography, 466, 632–633
private/public key cryptography, 466, 633–637
/proc directory, 99
proc filesystem, 302
process sandboxing, 670
limiting with cgroups, 149–151
process IDs, 137
referring to background processes, 145–146
security context, SELinux, 685–686
starting background processes, 144–145
programming constructs, 66
if ... then statements, 159–162
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, 358–359
ps -eZ command, 677
PS1 environment variable, 80, 85, 87, 89–91, 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, 464–465
pure-ftpd package, 317
pvdisplay command, 299
pwd command, 70–71, 100–102, 478, 495
PWD environment variable, 80, 87, 108
Q
R
rainbow tables, 602
RANDOM environment variable, 87
raw table, iptables, 714
Raymond, Eric S., 16
RBAC (Role Based Access Controls), 669, 670, 671–672, 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.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 state (rc6.d), 185
Red Hat Certified Engineer (RHCE), 21, 22–23, 24–26
Red Hat Certified System Administrator (RHCSA), 21, 22–24
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
*.repo files, 243
repositories
repudiation, 593
Required control flag, PAM, 652
requisite control flag, PAM, 652
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, 22–23, 24–26
RHCSA (Red Had Certified System Administrator), 21, 22–24
RHEL (Red Hat Enterprise Linux), 17–18
aliased ls command, 105
backup script, 168
browser-based admin tools, 177
vs. Fedora, 18
GNOME Terminal, 68
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, 175–177
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, 48–49, 195, 196
Rijndael, 631. 645
rlogin command, 323
rmdir command, 115
rmp -V command, 323
role attribute, SELinux security context, 675–677
Role Based Access Controls (RBAC), 669, 670, 671–672, 673
Root Password, graphical admin tool, 176
Roxio Creator, 777
rpc administrative login, 190
rpc file, 187
RPM packages, 236–237, 238–240
installing, 239–240, 247–249. 253, 253
rsyslog, 317, 322–323, 334–339, 344
rsyslog.conf file, 187, 335–336
rsyslogd, 188, 189, 319–320, 322–323, 334, 337–339, 689–690, 692
runcon command, 686
S
s special character, 90
in enterprise environments, 525
stopping, 506
Samba Log, 609
Samba NFS, 176
Samba SWAT, 500
samba-client package, 501
samba-config-samba package, 501
samba-swat package, 501
samba-winbind package, 501
sandbox command, 686
SANS Institute, 624
Santa Cruz Operation (SCO), 10, 11
SCC (Secure Computing Corporation), 669
SCO (Santa Cruz Operation), 10, 11
scp command, 321, 323, 324, 326, 329–330, 329–332, 334
secon command, 683
SECONDS environment variable, 87
secret key cryptography, 466, 632–633
Secure WebDav, 46
Secure Computing Corporation (SCC), 669
secure log file, 189
Secure Shell. See SSH
Secure Sockets Layer (SSL), 465–471, 816
security
Apache web server, 455–457, 465–471
encryption/decryption, 630–639
network security
auditing advertisements, 704–708
auditing network services, 699–710
PAM (Pluggable Authentication Modules), 648–667
configuration file settings, 322
firewalls, 321
password protection, 321
SELinux, 322
TCP Wrappers, 322
security clearance attribute, SELinux, 673
security contexts, SELinux, 672, 674–677, 683–686
security labels, SELinux, 672, 684–685
Security Log, 609
security table, iptables, 714
sed command, 166
SELinux
AVC (Access Vector Cache) denials, 670, 673, 689–692, 694, 697, 834
policy type, 682
information sources, 695
MLS (Multi-Level Security), 672–673
operational modes, 673–674, 680–682
policy rules, 672, 678–679, 686–688
RHCE exam, 25
security contexts, 672, 674–677, 683–686
TE (Type Enforcement), 671–672
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
enterprise servers, 344
remote access, managing, 323–334
system logging, configuring, 334–340
system resources, checking, 340–341
system space, checking, 341–343
server internal errors, 474–475
service ssh start command, 325
service sshd start command, 325
default runlevel, configuring, 412–414
initialization daemon, 378–399
persistent services, enabling, 408–412
stopping and starting, 403–408
target units, configuring, 412–414
Services, graphical admin tool, 176
session PAM context, 651
set GID, 107, 270, 271, 276–277
setsebool command, 487, 509, 518, 540, 688–689, 694
sftp command, 332
shared folders, Samba, 513–514
shell
commands. See commands
default, identifying, 69
escaping shell characters, 155
exiting, 88
prompt, 67
backup example, 168
command-line arguments, 154
debugging, 154
executing, 154
programming constructs, 159–164
telephone list example, 167–168
text-manipulation programs, 164–166
shells file, 187
SHLVL environment variable, 87
Shutdown runlevel, 562
shutdown state (rc0.d), 185
SIGABRT signal, 147
SIGINT signal, 147
signatures, 628
SIGQUIT signal, 147
Single User Mode runlevel, 382
Single-user runlevel, 562
single-user state (rc1.d) file, 185
skipddc boot option, 217
stopping, 506
smb.conf file, 183, 444, 511, 516–521
smbclient command, 504, 505, 508, 515
smbpasswd command, 521
smbusers file, 502
Snort, 620
software packages
managing in the enterprise, 256–257
sanity testing configuration files, 183
server package categories, 316–318
updating, 607
Spacewalk, 257
SpamAssassin, 450
special characters
spooler file, 609
SQL Server, 318
Squid Log, 609
key-based authentication, 332–334
openssh-server service, 324–326
RHCE exam, 26
ssh command
ssh-copy command, 333
ssh-copy-id command, 346
ssh-keygen command, 333
sshd service, 320, 324–326, 332, 334
SSL (Secure Sockets Layer), 465–471, 816
ssl.conf file, 467
Stallman, Richard M., 11
status ssh command, 325
stop process, 147
stream editor (sed), 166
substack control flag, PAM, 652
substituting commands, 84
sudo command, 174, 180–182, 664
sudoers file, 187
sufficient control flag, PAM, 652
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
symbolic links, 106, 108, 110, 161, 330, 331, 399, 414, 421, 618
symmetric cryptography, 466, 632–633
/sysconfig/samba file, 502
sysct1.conf file, 25
SYSLINUX boot loader, 224
syslogd, 189
sysstat package, 323, 340, 565
System Activity Reporter (sar), 323, 340–341
system administration
administrative commands, 182–183
checking/configuring hardware, 190–199
using other administrative accounts, 189–190
using root user account, 177–182
System Administration Tools and Daemons man page section, 94
System Calls man page section, 93
System Log, 610
system resources, monitoring, 340–341
System Settings window, GNOME 3 desktop, 41–42
system space, checking, 341–343
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-printer, 176, 317, 425, 429, 432–433
system-config-rootpassword, 176
system-config-samba, 176, 444, 500, 501, 511–516
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, 393–394
systemctl start sshd.service command, 325
systemctl status sshd.service command, 325
backward compatibility to SysVinit, 397–99
checking services for, 402–403
configuring default target, 413–414
configuring persistent services, 410–412
checking services for, 400–401
configuring persistent services, 408–409
disabling services, 409
starting and stopping services, 403–404
systemd's backward compatibility, 397–399
Upstart's backward compatibility, 388–392
T
t special character, 90
target units, configuring, 412–414
Targeted policy, SELinux, 678, 682
targeted SELinux policies, 672
targets, iptables, 715
TCP Wrappers
allowing FTP access in, 486
NFS access, 539
TE (Type Enforcement), 671–672
telephone list shell script, 167–168
telnet command, 323
termcap file, 188
testparm command, 183
text
cut command, 165
grep command, 165
sed command, 166
text editors. See also specific editors
configuration files structure, 184
ex mode, 124
movement commands, 123
moving around in text, 120–121
pasting text, 122
searching for text, 124
tutorial, 124
text files
The Open Group, 14
Thompson, Ken, 8
TLS (Transport Layer Security), 280, 452, 465–471
TMOUT environment variable, 87, 91
togglebool command, 688
TomCat, 450
Torvalds, Linus, 6–7, 10, 13–14, 26
Transport Layer Security (TLS), 280, 452, 465–471
tripwire, 620
troubleshooting
TrueCrypt, 640
ttytab file, 381
tune2fs command, 275
type attribute, SELinux security context, 675–677
type command, 75
Type Enforcement, SELinux, 671–672
U
u special character, 90
Ubuntu
Apache configuration file, 457
autofs, installing, 545
booting from USB drive, 779–780
chkrootkit installation, 619
ClamAV packages, 618
installing from installation DVD, 201
John the Ripper installation, 614
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
verifying packages, 616
vsftpd installation, 479
UEFI(Unified Extensible Firmware Interface), 554–557
ufs filesystem, 303
umsdos filesystem, 302
unalias command, 87
Undefined runlevel, 563
Unified Extensible Firmware Interface (UEFI), 554–557
United States Computer Emergency Readiness Team, 623
Univel, 10
UNIX
UNIX System Laboratories (USL), 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, 125–126, 149
updating
software packages, 607
Upstart, 554
backward compatibility to SysVinit, 388–392
checking services for, 401–402
configuring default runlevel, 413
configuring persistent services, 409–410
starting/stopping services, 405
Upstart init daemon, 378, 379, 380, 386–392
upstream software providers, 239
USB drive, booting from, 779–780
use_nfs_home_dirs SELinux file context, 539–540
user accounts
deleting users, 268
setting user defaults, 265–266
definition in /etc/password, 69
/home directory, 224
managing in the enterprise, 270–278
Nautilus, 45
system administrators and, 174
user attribute, SELinux security context, 674–677
User Commands man page section, 93
User Defined runlevel, 382
USER environment variable, 85
user-defined state (rc4.d), 185
userdel command, 268
Users & Groups, graphical admin tool, 176
Users window, 259, 261, 262, 279
USL (UNIX System Laboratories), 10–11
/usr/local/bin directory, 74
/usr/sbin directory, 182
UUCP Log, 610
V
/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, 608–611
/var/log/audit/audit.log file, 689–690
/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/named directory, 373
/var/salesdocs directory, 268
/var/www/error directory, 451–452
/var/www/html directory, 455
/var/www/manual directory, 452
verifying RPM packages, 255–256
Very Secure FTP Daemon. See vsftpd
vfat filesystem, 302
vgdisplay command, 299
ex mode, 124
movement commands, 123
moving around in text, 120–121
pasting text, 122
searching for text, 124
tutorial, 124
vim command, 119, 124, 184, 318, 561
virt-manager, 730, 733–734, 737, 740–744, 754–755
virt-viewer, 734
virtual consoles, 69
exiting shell, 88
tty1, 73
virtual hosts, adding, 462–464
virtual machines, 730
virtual network computing (vnc) installations, 218
virtualization, 5
Linux installation, 216
Red Hat Enterprise Virtualization, 18, 177
RHEL OpenStack Platform, 18
virus signatures, 618
vnc (virtual network computing) installations, 218
vnc boot option, 218
vncconnect=hostname[:port] boot option, 218
vncpassword=password boot option, 218
vsftpd, 317, 477–479. See also FTP servers
relating Linux file permissions, 488
vsftpd.log file, 609
w special character, 90
web servers
Apache web server
publishing web content, 464–465
virtual hosts, adding, 462–464
RHCE exam, 25
webalizer package, 453
webalizer package, 317
WebDav, 46
while...do loop, 164
who am i command, 69
who command, 73
Winbind, 279
window managers, 31
window menu, GNOME 3 desktop, 37
Windows
file sharing. See Samba
vs. Linux, 6
Linux ISO image, burning, 776–777
Workspace Switcher, Metacity, 52, 58
wtmp file, 610
X
X.Org X11 Log, 610
xdriver-vesa boot option, 217
xeyes command, 152
xferlog file, 609
XFree86.0.log file, 189
xfs filesystem, 303
xinetd.conf file, 188
Y
ypserv package, 317
YUM (Yellowdog Updater Modified) project, 240–252
downloading packages, 252
maintaining package database/cache, 251–252
searching for packages, 246–247
using with third-party repositories, 244–245
YUM Log, 610
yum.conf file, 242
Z
Zipcloak, 646
Zorin OS, 19