Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

RedHat RH202 - RHCT (Redhat Certified Technician) RH202

Page: 1 / 5
Total 140 questions

Fill up the Form through http://server1.example.com/form.php

Answer and Explanation:

1.Open the Browser and type the above URL.

2.Fill the form as required all information.

You are administrator of Certpaper network. First time you are going to take the full backup of all user’s home directory. Take the full backup of /home on /tmp/back file.

Answer and Explanation:

1.dump -0u –f /tmp/back /dev/hda4

dump is the standard backup utility. According to the questions, fullback should take. –0 means fullback, -u means update the /etc/dumpdates which maintains the backup record and -f means filename. If you are directly taking backup into other device, you can specify the device name.

i.e dump -0u -f /dev/st0 /dev/hda4. Where hda4 is a separate partition mounted on /home.

There is a FTP server 192.168.0.254 and all required packages are dumped in /var/ftp/pub of that server and anonymous login is enabled. Install the Redhat Enterprise Linux 5 as an anonymous by creating following partitions:

/1000

/boot200

/home1000

/var1000

/usr4000

swap2X256 (RAM SIZE)

Answer and Explanation:

Note: Examiner will provide you the Installation startup CD. And here mentioned size may vary see on the exam paper.

1.Insert the CD on CD-ROM and start the system.

2.In Boot: Prompt type linux askmethod

3. It will display the Language, keyboard selection.

4. It will ask you for the installation method.

5. Select the FTP from the list

6. It will ask the IP Address, Net mask, Gateway and Name Server. Select Use

Dynamic IP Configuration: because DHCP Server will be configured in your exam lab.

7. It will ask for the FTP site name and Redhat Enterprise Linux Directory.

Specify the FTP Server: 192.168.0.254

Directory: pub  Because anonymous login on /var/ftp.

8. After Connecting to the FTP Server Installation will start. Go up to the partition screen by selecting the different Options.

9. Create the partition According to the Question because Size and what-what partition should you create at installation time is specified in your question

10. Then select the MBR Options, time zone and go upto package selections.

It is another Most Important Time of installation. Due to the time limit, you should be

care about the installation packages. At Exam time you these packages are enough.

X-Window System

GNOME Desktop

(these two packages are generally not required)

Administration Tools.

System Tools

Windows File Server

FTP Servers

Mail Servers

Web Servers

Network Servers

Editors

Text Based Internet

Server Configuration Tools

Printing Supports

When installation will complete, your system will reboot. Jump for another Question.

Make Secondary belongs the jackie and curtin users on sysuser group. But david user should not belongs to sysuser group.

Answer and Explanation:

1.usermod -G sysuser jackie

2.usermod –G sysuser curtin

3.Verify by reading /etc/group file

Using usermod command we can make user belongs to different group. There are two types of group one primary and another is secondary. Primary group can be only one but user can belongs to more than one group as secondary.

usermod -g groupname username  To change the primary group of the user

usermod -G groupname username  To make user belongs to secondary group.

Make on /data that only the user owner and group owner member can fully access.

Answer and Explanation:

1.chmod 770 /data

2.Verify using : ls –ld /data

Preview should be like:

drwxrwx--- 2 root sysadmin 4096 Mar 16 18:08 /data

To change the permission on directory we use the chmod command. According to the question that only the owner user (root) and group member (sysadmin) can fully access the directory so: chmod 770 /data

Make sure on /data that only the owner user can remove files/directories.

Answer and Explanation:

By default user1 can remove user2’s files due to directory permission to group member. We can prevent of deleting files from others users using Sticky Bits.

    chmod o+t /data

    Verify /data: ls -ld /data

You will get: drwxrwx—T

There are three Disk Partitions /dev/hda8, /dev/hda9, /dev/hda10 having size 100MB of each partition. Create a Logical Volume named testvolume1 and testvolume2 having a size 250MB. Mount each Logical Volume on lvmtest1, lvmtest2 directory.

Answer and Explanation:

Steps of Creating LVM:

1.pvcreate /dev/hda8 /dev/hda9 /dev/hda10

pvdisplay command is used to display the information of physical volume.

2.vgceate test0 /dev/hda8 /dev/hda9 /dev/hda10

vgdisplay command is used to display the information of Volume Group.

3.lvcreate –L 250M –n testvolume1 test0

 lvdisplay command is used to display the information of Logical Volume.

4.lvcreate –L 250M –n testvolume2 test0

5.mkfs –t ext3 /dev/test0/testvolume1

6.mkfs –t ext3 /dev/test0/testvolume2

7.mkdir /lvtest1

8.mkdir /lvtest2

9.mount /dev/test0/testvolume1 /lvtest1

10.mount /dev/test0/testvolume2 /lvtest2

11.vi /etc/fstab

/dev/test0/testvolume2/lvtest2ext3defaults0 0

/dev/test0/testvolume1/lvtest1ext3defaults0 0

To create the LVM( Logical Volume Manager) we required the disks having ‘8e’ Linux LVM type. First we should create the physical Volume, then we can create the Volume group from disks belongs to physical Volume. lvcreate command is used to create the logical volume on volume group. We can specify the size of logical volume with –L option and name with -n option.

We are working on /data initially the size is 2GB. The /dev/test0/lvtestvolume is mount on /data. Now you required more space on /data but you already added all disks belong to physical volume. You saw that you have unallocated space around 5 GB on your harddisk. Increase the size of lvtestvolume by 5GB.

Answer and Explanation: .

1. Create a partition having size 5 GB and change the syste id ‘8e’.

2.use partprobe command

3.pvcreate /dev/hda9  Suppose your partition number is hda9.

4.vgextend test0 /dev/hda9  vgextend command add the physical disk on volume group.

5.lvextend –L+5120M /dev/test0/lvtestvolume

6.verify using lvdisplay /dev/test0/lvtestvolume.

Whoever creates the file on /data make automatically owner group should be the group owner of /data directory.

Answer and Explanation:

When user creates the file/directory, user owner will be user itself and group owner will be the primary group of the user.

There is one Special Permission SGID , when you set the SGID bit on directory,When users creates the file/directory automatically owner group will be same as a parent.

    chmod g+s /data

    Verify using: ls -ld /data

You will get: drwxrws---

Change the Group Owner of /data to training group.

Answer and Explanation:

chown or chgrp command is used to change the ownership.

Syntax of chown: chown [-R] username:groupname file/directory

Syntax of chgrp: chgrp [-R] groupname file/directory

Whenever user creates the file or directory, the owner of that file/directory automatically will be that user and that user’s primary group name.

To change group owner ship

    chgrp training /data Which set the Group Ownership to training

or

chown root.training /data Which set the user owner to root and group owner to training group.

Verify /data using: ls -ld /data

You will get: drwxr-xr-x 2 root training …………..