• No results found

RHCSA 7RHCE Red Haf Linux Certification Practice

N/A
N/A
Protected

Academic year: 2021

Share "RHCSA 7RHCE Red Haf Linux Certification Practice"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

RHCSA

7RHCE

Red

Haf

Linux Certification

Practice

Exams with

Virtual Machines

(Exams

EX200

&

EX300)

"IcGraw-Hill isanindependent entityfrom RedHat, Inc.,and isnotaffiliated with Red Hat, Inc. in

iny manner.Thispublicationand DVD may be usedinassistingstudentstoprepare foraRed Hat

CertifiedEngineerExamor a RedHat CertifiedSystemAdministratorExam. Neither Red Hat,Inc. lorMcGraw-Hillwarrantthatuseof thispublicationwillensurepassingtherelevantexam.Red

Hat®,Red Hat®Linux®,RedHat®EnterpriseLinux®,RHCE®,RHCT and RHCSAareeither

egisteredtrademarksortrademarks of RedHat,Inc.inthe United States and/or othercountries.

Thispublicationisnotintendedtobeasubstitute for the Red Hat RHCSA prepcourse,RH200,

orthe RHCE prepcourse,RH300.Thisstudy/training guideand/or material isnotsponsored by,

endorsedby,oraffiliated with RedHat,Inc.inanymanner.

Michael

Jang

(2)

CONTENTS

About the

Contributors iv

Acknowledgments

xv

Preface

xvi

Introduction xxiii

I

Prepare

for Red

Hat Hands-on

Certifications

I

The RHCSA

and RHCE

Exams

4

The

Exam

Experience

4

The

RHCSA

Exam 5

The RHCE

Exam

5

Evolving

Requirements

6

Basic

Hardware

Requirements

6

Hardware

Compatibility

7

RAM

Requirements

8

Hard Drive

Options

8

Get

Red Hat

Enterprise

Linux 8

The

Point Releases Don't

Matter

9

The Choices

9

Purchase an

RHEL

6

Subscription

10

GetanEvaluation

Copy

10

Putting

RHEL 6 toWork 10

Third-Party

Rebuilds

11

Installation

Requirements

12

Red

Hat

and

Virtual Machines

13

Virtual and

Physical

Systems

14

Installation

Options

14

Boot

Media

15

Booting

the RHEL

6

Installation

15

Basic Installation

Steps

16

Default

Security Settings

25

Install

Virtual Machines from the DVD 28

A Preinstalled

Environment for Practice

Labs

32

(3)

Viii

RHCSA/RHCE Red Hat Linux Certification PracticeExams with Virtual Machines

Configure

a

Physical

Machine for Virtual Guests

34

A Default

Configuration

FTP Server

35

A Default

Configuration

HTTP Server

36

Q&A

Self

Test 38

Lab

Questions

39

Self Test Answers 42

Lab

Answers

43

2

Virtual Machines and Automated Installations

47

Start

and

Stop

Virtual Machines

48

Starting

and

Stopping

VMs from the

Command Line 48

Starting

and

Stopping

VMs from the GUI 49

Configure Systems

to Start Virtual MachinesatBoot

49

Accessa

Virtual

Machine's

Console

51

Access Remote

Systems Using

SSH 51

Install Red Hat

Enterprise

Linux

Systems

asVirtual Guests 51

Install

Red Hat

Enterprise

Linux

Automatically Using

Kickstart

52

Q&A

Self

Test 55

Lab

Questions

56

Self Test Answers 57

Lab Answers

58

3

Fundamental Command-Line Skills

61

AccessaShell

Prompt

and

Issue

Commands

with Correct

Syntax

... 62

Use

Input/Output

Redirection

63

Create,

Delete, Copy,

and Move Files and Directories 63

Create Hard and Soft Links

64

Use grep and

Regular Expressions

to

Analyze

Text

64

Locate, Read, and

Use

System

Documentation 65

Create and

Edit

Text

Files

66

Start,

Stop,

and

Check the Status of Network Services

67

Configure Networking

and Hostname

Resolution

67

Q&A

Self Test 70

Lab

Questions

71

Self

Test Answers 72

(4)

Contents

|x

4 RHCSA-Level

Security Options

77

List, Set,

and

Change

Standard

ugo/rwx

Permissions 78

Diagnose

and Correct File Permission

Problems

79

Create

and

Manage

Access

Control

Lists

(ACLs)

80

Configure

Firewall

Settings Using

system-config-firewall

or

iptables

. . 80

Set

Enforcing

and Permissive Modes for SELinux 81

List and

Identify

SELinux File and Process Context 82

Restore

Default

File Contexts 83

Use

Boolean

Settings

to

Modify System

SELinux

Settings

84

Diagnose

and

Address Routine SELinux

Policy

Violations 84

Q&A

Self Test

87

Lab

Questions

88

Self

Test Answers 89

Lab Answers 90

5 The

Boot

Process 95

Boot, Reboot,

and Shut Downa

System Normally

96

Boot

Systems

into

Different Runlevels

Manually

97

Use

Single-User

Mode

to

Gain

Accessto a

System

98

Configure

Systems

to Boot Intoa

Specific

Runlevel

Automatically

.. 99

Configure

Network ServicestoStart

Automatically

atBoot 100

Modify

the

System

Bootloader

101

Q&A

SelfTest

103

Lab

Questions

104

Self

Test

Answers

105

Lab Answers 106

6

Linux

Filesystem

Administration

109

Add New

Partitions,

Logical

Volumes,

and

Swap

to a

System

Non-Destructively

Ill

List, Create,

Delete,

and Set Partition

Type

for

Primary, Extended,

and

Logical

Partitions Ill

(5)

X R.HCSA/RHCERed Hat Linux Certification PracticeExams with Virtual Machines

Mount

and Unmount CIFS

and NFS Network File

Systems

115

Configure Systems

toMount File

Systems

atBoot

by Universally

Unique

ID

(UUID)

orLabel 115

Create

and

Configure

LUKS-encrypted

Partitions

and

Logical

Volumes

to

Prompt

for

Password and

Mounta

Decrypted

File

System

atBoot 116

Mount, Unmount, and

Use

LUKS-encrypted

File

Systems

117

Configure Systems

to Mount

ext4,

LUKS-encrypted,

and

Network File

Systems Automatically

118

Q&A

Self Test 120

Lab

Questions

122

Self Test

Answers 123

Lab Answers 125

7

Package Management

129

Install and

Update

Software

Packages

from Red

Hat

Network,

aRemote

Repository,

or

from the Local

File

System

130

Update

the

Kernel

Package Appropriately

toEnsurea

Bootable

System

131

Q&A

Self

Test 133

Lab

Questions

134

Self Test Answers 135

Lab

Answers

135

8

User Administration

137

Log

In

and Switch Users

inMultiuser Runlevels

138

Create, Delete,

and

Modify

Local Users Accounts 139

Change

Passwords and

Adjust

Password

Aging

for Local User

Accounts 139

Create, Delete,

and

Modify

Local

Groups

and

Group Memberships

..

140

Create

and

Configure

set-GID

Directories for Collaboration

141

Configure

a

System

to

Use

an

Existing

LDAP

Directory

Service

for

User and

Group

Information

142

Q&A

Self Test

144

Lab

Questions

145

Self Test Answers

146

(6)

Contents

xi

9

RHCSA-Level

System

Administration

Tasks

151

Access Remote

Systems Using

VNC 152

Archive, Compress,

Unpack,

and

Uncompress

Files

Using

tar, star,

gzip,

and

bzip2

152

Identify CPU/Memory

Intensive

Processes;

Adjust

Process

Priority

with

renice, kill Processes

153

Schedule Tasks

Using

cron

154

Locate

and

Interpret

System Log

Files

155

Q&A

SelfTest

157

Lab

Questions

158

Self

Test

Answers

159

Lab Answers

160

10

A

Security

Primer

163

Use

iptables

to

Implement

Packet

Filtering

and

Configure

Network

Address

Translation

(NAT)

164

Configure

Host-Based and

User-Based

Security

for the

Service

165

Q&A

SelfTest

168

Lab

Questions

169

Self Test

Answers

170

Lab Answers 171

11

System

Services and

SELinux

175

Install the

Packages

Neededto

Provide the Service

176

Configure

the Service

toStart When

the

System

Is Booted 177

Configure

SELinux

to

Support

the Service

178

Configure

Key-Based

Authentication

179

Configure

Additional

Options

Described

inDocumentation 180

Q&A

SelfTest

182

Lab

Questions

183

Self Test

Answers

184

(7)

Xii

RHCSA/RHCERed Hat LinuxCertification Practice Examswith Virtual Machines

Use

/proc/sys

and

sysctl

to

Modify

and

Set Kernel Run-Time

Parameters

191

Builda

Simple

RPM that

Packages

a

Single

File 192

Configure System

as aniSCSI Initiator that

Persistently

Mounts

an

iSCSI

Target

194

Configure System

to

Authenticate

Using

Kerberos

195

Route IP traffic and Create Static Routes 196

Q&lA

Self

Test 198

Lab

Questions

199

Self Test Answers 200

Lab Answers 201

13

Electronic Mail Servers

205

Install the

Packages

Neededto Provide

the

Service 206

Configure

SELinuxto

Support

the Service 207

Configure

the Service

to

Start When the

System

Is

Booted

207

Configure

the Service for

Basic

Operation

208

Configure

Host-Based and User-Based

Security

for the

Service

208

Configure

aMail Transfer

Agent (MTA)

to

Accept

Inbound E-mail

from other

Systems

209

Configure

anMTAto

Forward

(Relay)

E-mail

Through

aSmart Host 210

Q&A

SelfTest 212

Lab

Questions

213

Self Test Answers

214

Lab Answers 215

14

The

Apache

Web Server

219

Install the

Packages

Needed

toProvide

the

Service 220

Configure

SELinux to

Support

the

Service 221

Configure

the

ServicetoStart

When the

System

Is Booted 223

Configure

the

Service for Basic

Operation

223

Configure

Host-Based

and

User-Based

Security

for the Service

224

Configure

aVirtual Host 225

Configure

Private Directories

226

Deploy

aBasic CGI

Application

227

(8)

Contents

xiH

Q&A

Self

Test 229

Lab

Questions

230

Self Test

Answers

231

Lab Answers 232

15

The

Samba

File Server

239

Install

the

Packages

Neededto Provide the Service 240

Configure

SELinux to

Support

the

Service

240

Configure

the Serviceto

Start When the

System

Is Booted

242

Configure

the

Service for Basic

Operation

242

Configure

Host-Based and

User-Based

Security

for the Service 243

Provide Network Sharesto

Specific

Clients

244

Provide

Network Shares

Suitable for

Group

Collaboration

245

Q&A

Self

Test

247

Lab

Questions

248

Self Test

Answers

249

Lab Answers 250

16

More

File-Sharing

Services

253

Install the

Packages

NeededtoProvide the Service

254

Configure

SELinux

to

Support

the

Service

254

Configure

the

Service

to

Start When the

System

Is Booted

255

Configure

the Service for Basic

Operation

256

Configure

Host-Based and

User-Based

Security

for

the Service

256

Configure

Anonymous-Only

Download foranFTP Server

257

Provide NFS Network Shares

to

Specific

Clients

258

Provide NFS

Network

Shares

Suitable for

Group

Collaboration 259

Q&A

Self Test 260

Lab

Questions

261

Self

Test Answers

262

Lab

Answers

263

(9)

XiV

RHCSA/RHCE Red Hat LinuxCertification Practice Exams with Virtual Machines

Configure

a

System

to

Accept Logging

fromaRemote

System

270

Install the

Packages

Needed

to

Provide the

Service 271

Configure

SELinux

to

Support

the Service

271

Configure

the ServicetoStart When the

System

Is Booted 272

Configure

the Service for Basic

Operation

272

Configure

Host-Based and User-Based

Security

for

the Service

273

Configure

a

Caching-Only

Name Server

273

Configure

a

Caching-Only

Name ServertoForward DNS

Queries

.. . 274

Synchronize

Time

Using

Other NTP Peers 275

Q&A

Self Test

277

Lab

Questions

278

Self Test Answers 279

Lab

Answers 280

A

Prepare

a

System

for the

Sample

Exams

285

Basic

Sample

Exam

System

Requirements

287

Additional

Sample

Exam

System Requirements

for the RHCE 289

B

RHCSA:

Sample

Exam I

291

RHCSA

Sample

Exam 1 Discussion 293

C

RHCSA:

Sample

Exam 2

297

RHCSA

Sample

Exam 2 Discussion 299

D

RHCE:

Sample

Exam

I

303

RHCE

Sample

Exam

1

Discussion

305

E

RHCE:

Sample

Exam

2

309

RHCE

Sample

Exam 2 Discussion 311

F

About the DVD

315

System Requirements

317

Technical

Support

317

References

Related documents

Exam Preparation Tasks 470 Review All Key Topics 470 Define Key Terms 470 Review Questions 470 End-of-Chapter Labs 471. Lab 20.1

• Schipper, Kristofer M., and Franciscus Verellen, eds., The Taoist Canon: A Historical Companion to the Daozang, pp.. 323-31 (Chicago University

Note: For Traffic Manager software variants running inside a Linux virtual machine, use only those Linux AMIs that automatically support, and can configure, multiple network

In order to make the target system start this application automatically during the boot process instead of the demo application, you have to copy the file

The thrust of his thought was directed at conceiving and then practicing the kind of education intended and designed to prevent the sort of developments of which right-wing

Once again, alongside the author’s contributions to debates about the public sphere in the internet age, we find a parallel modelling of an alternate form of publicness which

 Once they are approved all absences will be coded as FMLA in Lawson and/or SmartFind.  If absences have already processed payroll should be contacted to post the used

Maintaining the effective communication is the essence of language. The speaker, then, has liability to respect the audience since they may have different perspectives of a