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

RH202 Exam Dumps - RHCT (Redhat Certified Technician) RH202

Question # 4

/data Directory is shared from the server1.example.com server. Mount the shared directory that:

  • uk.co.certification.simulator.questionpool.PList@41e6a010

Answer and Explanation:

  • vi /etc/auto.master

/mnt/etc/auto.misc--timeout=50

  • vi /etc/auto.misc
  • data-rw,soft,intrserver1.example.com:/data
  • service autofs restart
  • chkconfig autofs on

When you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of linux helps to mount at access time and after certain seconds, when user unaccess the mounted directory, automatically unmount the filesystem.

/etc/auto.master is the master configuration file for autofs service. When you start the service, it reads the mount point as defined in /etc/auto.master.

Full Access
Question # 5

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.

Full Access
Question # 6

One Package named zsh is dump on ftp://server1.example.com under pub directory. Install the package from ftp server.

Answer and Explanation:

1.rpm –ivh ftp://server1.example.com/pub/zsh-*

2.Package will install

rpm command is used to install, update and remove the package, -i means install, -v means verbose and -h means display the hash mark.

Full Access
Question # 7

Create the group named training

Answer and Explanation:

  • groupadd training

To create a group we use the groupadd command.

Verify from: cat /etc/group whether group added or not?

Full Access
Question # 8

You are a System administrator. Using Log files very easy to monitor the system. Now there are 50 servers running as Mail, Web, Proxy, DNS services etc. You want to centralize the logs from all servers into on LOG Server. How will you configure the LOG Server to accept logs from remote host ?

Answer and Explanation:

By Default system accept the logs only generated from local host. To accept the Log from other host configure:

  • vi /etc/sysconfig/syslog

SYSLOGD_OPTIONS="-m 0 -r"

Where

-m 0 disables 'MARK' messages.

-r enables logging from remote machines

-x disables DNS lookups on messages recieved with -r

  • service syslog restart

Full Access
Question # 9

You are new System Administrator and from now you are going to handle the system and your main task is Network monitoring, Backup and Restore. But you don’t know the root password. Change the root password to redhat and login in default Runlevel.

Answer and Explanation:

When you Boot the System, it starts on default Runlevel specified in /etc/inittab:

Id:?:initdefault:

When System Successfully boot, it will ask for username and password. But you don’t know the root’s password. To change the root password you need to boot the system into single user mode. You can pass the kernel arguments from the boot loader.

  • Restart the System.
  • You will get the boot loader GRUB screen.
  • Press a and type 1 or s for single mode

ro root=LABEL=/ rhgb queit s

  • System will boot on Single User mode.
  • Use passwd command to change.
  • Press ctrl+d

Full Access
Question # 10

Make Successfully Resolve to server1.example.com where DNS Server is 192.168.0.254.

Answer and Explanation: 1. vi /etc/resolv.conf

Write : nameserver 192.168.0.254

Full Access
Question # 11

Your System is configured in 192.168.0.0/24 Network and your nameserver is 192.168.0.254. Make successfully resolve to server1.example.com.

Answer and Explanation:

Very Easy question, nameserver is specified in question,

1.vi /etc/resolv.conf

nameserver 192.168.0.254

2.host server1.example.com

Full Access
Question # 12

Successfully resolv to server1.example.com where your DNS server is 172.24.254.254

Answer and Explanation:

  • uk.co.certification.simulator.questionpool.PList@4199f8c0

nameserver 172.24.254.254

  • uk.co.certification.simulator.questionpool.PList@4199f960

On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolv from DNS server .

Full Access
Question # 13

Create one partitions having size 100MB and mount it on /data.

Answer and Explanation:

  • Use fdisk /dev/hdaTo create new partition.
  • Type nFor New partitions
  • It will ask for Logical or Primary Partitions. Press l for logical.
  • It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
  • Type the Size: +100MYou can Specify either Last cylinder of Size here.
  • Press P to verify the partitions lists and remember the partitions name.
  • Press w to write on partitions table.
  • Either Reboot or use partprobe command.
  • Use mkfs –t ext3 /dev/hda?

Or

mke2fs –j /dev/hda?  To create ext3 filesystem.

  • vi /etc/fstab

Write:

/dev/hda?/dataext3defaults1 2

11. Verify by mounting on current Sessions also:

mount /dev/hda? /data

Full Access
Question # 14

One Logical Volume named lv1 is created under vg0. The Initial Size of that Logical Volume is 100MB. Now you required the size 500MB. Make successfully the size of that Logical Volume 500M without losing any data. As well as size should be increased online.

Answer and Explanation:

The LVM system organizes hard disks into Logical Volume (LV) groups. Essentially, physical hard disk partitions (or possibly RAID arrays) are set up in a bunch of equal-sized chunks known as Physical Extents (PE). As there are several other concepts associated with the LVM system, let's start with some basic definitions:

  • Physical Volume (PV)is the standard partition that you add to the LVM mix. Normally, a physical volume is a standard primary or logical partition. It can also be a RAID array.
  • Physical Extent (PE)is a chunk of disk space. Every PV is divided into a number of equal sized PEs. Every PE in a LV group is the same size. Different LV groups can have different sized PEs.
  • Logical Extent (LE)is also a chunk of disk space. Every LE is mapped to a specific PE.
  • Logical Volume (LV)is composed of a group of LEs. You can mount a filesystem such as /home and /var on an LV.
  • Volume Group (VG)is composed of a group of LVs. It is the organizational group for LVM. Most of the commands that you'll use apply to a specific VG.

1. Verify the size of Logical Volume: lvdisplay /dev/vg0/lv1

2. Verify the Size on mounted directory: df –h or df –h mounted directory name

3. Use : lvextend –L+400M /dev/vg0/lv1

4. ext2online –d /dev/vg0/lv1  to bring extended size online.

5. Again Verify using lvdisplay and df –h command.

Full Access
Question # 15

Create the user named jackie, curtin, david

Answer and Explanation:

1.useradd jackie

2.useradd curtin

3. useradd david

useradd command is used to create the user. All user’s information stores in /etc/passwd and user;s shadow password stores in /etc/shadow.

Full Access
Question # 16

Create a RAID Device /dev/md0 by creating equal two disks from available free space on your harddisk and mount it on /data.

Answer and Explanation:

Redhat Enterprise Linux 5 Supports the RAID LEVEL 0, RAID LEVEL 1, RAID LEVEL 5 and RAID LEVEL 6 at installation time. You can create it at installation time later no need to type lots of commands for RAID.

At Installation Time:

  • Create the partitions using diskdruid.
  • Create the Partitions having File system Type Software RAID.
  • Click on RAID button
  • Type the Mount Point
  • Select File system type
  • Select RAID Level
  • Select Partitions/disks as a member of RAID.
  • Click on ok

After Installation: We can create the RAID Device after Installation on command-line.

  • Create the Two partitions having equal size. (Specify the Size using Cylinder, find the remaining cylinder and divide by 2).
  • Change the Partition ID to fd (Linux raid Autodetect) by typing t.
  • Type wTo write on partitions table.
  • Use partprobe command to synchronic the partition table.
  • Use: mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda? /dev/hda?
  • Verify the RAID: mdadm --detail /dev/md0
  • mkfs -t ext3 /dev/md0
  • mount /dev/md0 /data
  • vi /etc/fstab

/dev/md0/dataext3defaults0 0

  • Verify mounting devices using mount command.

Full Access
Question # 17

Create the group named sysadmin.

Answer and Explanation:

1.groupadd sysadmin

groupadd command is used to create the group and all group information is stored in /etc/group file.

Full Access
Question # 18

Raw (Model) printer named printer1 is installed and shared on 192.168.0.254. You should install the shared printer on your PC to connect shared printer using IPP Protocols.

Answer and Explanation:

IPP( Internet Printing Protocol), allows administrator to manage printer through browser so CUPS is called Internet Printing Protocol based on HTTP. We can Install the printer either through: system-confing-printer tool or through Browser.

1.Open the browser and Type on address: http://localhost:631  CUPS (Common Unix Printing System) used the IPP protocol. CUPS use the 631 port.

2.Click on Manage Printer.

3.Click on Add Printer.

4.Type Printer name, Location, Description.

5.Select Device for bb. (Select IPP).

6.Device URL: ipp://192.168.0.254/ipp/ queue name  Same printer name of shared printer.

7.Select Model/Driver RAW printer.

8.service cups restart

Full Access
Question # 19

Create the directory /data and group owner should be the sysadmin group.

Answer and Explanation:

1.chgrp sysadmin /data

2.Verify using ls -ld /data command. You should get like

drwxr-x--- 2 root sysadmin 4096 Mar 16 17:59 /data

chgrp command is used to change the group ownership of particular files or directory.

Another way you can use the chown command.

chown root:sysadmin /data

Full Access
Question # 20

There is a NFS server 192.168.0.254 and all required packages are dumped in /var/ftp/pub of that server and the /var/ftp/pub directory is shared. Install the Redhat Enterprise Linux 5 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 NFS Image 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 NFS Server Name and Redhat Enterprise Linux Directory.

Specify the NFS Server: 192.168.0.254

Directory: /var/ftp/pub

8. After Connecting to the NFS Server Installation start in GUI. 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 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.

Full Access
Question # 21

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

Full Access