RH202 RHCT (Redhat Certified Technician) RH202

Loading demo links...

Showing 1–3 of 10 questions

Question 1 (Practice - Installation and Configuration)

SIMULATION

Add a cron schedule to take full backup of /home on every day at 5:30 pm to /dev/st0 device.

Answer and

Explanation:

:

1.vi /var/schedule

30 17 * * * /sbin/dump -0u /dev/st0 /dev/hda7

2.crontab /var/schedule

3.service crond restart

We can add the cron schedule either by specifying the scripts path on /etc/crontab file or by creating on text file on crontab pattern.

cron helps to schedule on recurring events. Pattern of cron is:

MinuteHourDay of MonthMonth Day of WeekCommands

0-590-231-311-120-7 where 0 and 7 means Sunday.

Note * means every. To execute the command on every two minutes */2.

Answer is in the explanation below.

Question 2 (Installation and Configuration Section)

SIMULATION

Backup of the Redhat Enterprise Linux 5 is on /var/ftp/pub, /var/www/html/pub on server named server1.example.com. You can install all required packages using yum by creating the repository file.

Answer and

Explanation:

:

1. Create the repository file

#vi /etc/yum.repos.d/server1.repo

[station?]

name=station?

baseurl=ftp://server1.example.com/pub/

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

# yum install

Answer is in the explanation below.

Question 3 (Installation and Configuration Section)

SIMULATION

Give Full Permission to owner user and owner group member but no permission to others on /data.

Answer and

Explanation:

:

We can change the permission of file/directory either character symbol method or numeric method.

Permission:

r-Read

w-Write

x-Execute

Permission Category

u- Owner User

g- Owner Group

o- Others

Operators

+ Add the Permissions

- Remove the Permissions

= Assigns the Permissions

Numeric Method:

4Read

2 Write

1Execute

Total: 7, total for owner user, owner group member and for others : 777

✑ chmod u+rwx /data

✑ chmod g+rwx /data

✑ chmod o-rwx /data or

chmod 770 /data

✑ Verify the /data : ls –ld /data

✑ You will get drwxrwx---

Answer is in the explanation below.