Labour Day Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: geek65

RH202 RHCT (Redhat Certified Technician) RH202 Questions and Answers

Questions 4

You are giving the debug RHCT exam. The examiner told you that the password of root is redhat. When you tried to login displays the error message and redisplayed the login screen. You changed the root password, again unable to login as a root. How will you make Successfully Login as a root.

Answer and Explanation:

When root unable to login into the system think:

  • Is password correct?
  • Is account expired?
  • Is terminal Blocked?

Do these Steps:

  • Boot the System on Single user mode.
  • Change the password
  • Check the account expire date by using chage –l root command.

If account is expired, set net expire date: chage –E “NEVER” root

  • Check the file /etc/securettyWhich file blocked to root login from certain terminal.
  • If terminal is deleted or commented write new or uncomment.
  • Reboot the system and login as a root.

Options:

Buy Now
Questions 5

There are more then 400 Computers in your Office. You are appointed as a System Administrator. But you don’t have Router. So, you are going to use your One Linux Server as a Router. How will you enable IP packets forward?

Answer and Explanation:

1. /proc is the virtual filesystem, we use /proc to modify the kernel parameters at running time.

# echo “1” >/proc/sys/net/ipv4/ip_forward

2. /etc/sysctl.conf when System Reboot on next time, /etc/rc.d/rc.sysinit scripts reads the file /etc/sysctl.conf. To enable the IP forwarding on next reboot also you need to set the parameter.

net.ipv4.ip_forward=1

Here 0 means disable, 1 means enable.

Options:

Buy Now
Questions 6

Set the Hostname station?.example.com where ? is your Host IP Address.

Answer and Explanation:

  • hostname station?.example.comThis will set the host name only for current session. To set hostname permanently.
  • vi /etc/sysconfig/network

HOSTNAME=station?.example.com

  • service network restart

Options:

Buy Now
Questions 7

Some users home directory is shared from your system. Using showmount –e localhost command, the shared directory is not shown. Make access the shared users home directory.

Answer and Explanation:

1.Verify the File whether Shared or not ? : cat /etc/exports

2.Start the nfs service: service nfs start

3.Start the portmap service: service portmap start

4.Make automatically start the nfs service on next reboot: chkconfig nfs on

5.Make automatically start the portmap service on next reboot: chkconfig portmap on

6.Verify either sharing or not: showmount –e localhost

7.Check that default firewall is running on system ? if running flush the iptables using iptables –F and stop the iptables service.

Options:

Buy Now
Questions 8

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.

Options:

Buy Now
Questions 9

Who ever creates the files/directories on /data group owner should be automatically should be the same group owner of /data.

Answer and Explanation:

1.chmod g+s /data

2.Verify using: ls -ld /data

Permission should be like:

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

If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory.

To set the SGID bit: chmod g+s directory

To Remove the SGID bit: chmod g-s directory

Options:

Buy Now
Questions 10

There are Mail servers, Web Servers, DNS Servers and Log Server. Log Server is already configured. You should configure the mail server, web server and dns server to send the logs to log server.

Answer and Explanation:

According to question, log server is already configured. We have to configure the mail, web and dns server for log redirection.

In mail, web and dns server:

1.vi /etc/syslog.conf

mail.*@logserveraddress

2.service syslog restart

mail is the facility and * means the priority. It sends logs of mail services into log server.

Options:

Buy Now
Questions 11

One Domain RHCE is configured in your lab, your domain server is

server1.example.com. nisuser2001, nisuser2002, nisuser2003 user are created on your server 192.168.0.254:/rhome/stationx/nisuser2001. Make sure that when NIS user login in your system automatically mount the home directory. Home directory is separately shared on server /rhome/stationx/ where x is your Station number.

Answer and Explanation:

1. use the authconfig or system-config-authentication

2. Select the [*] USE NIS

3. Type the NIS Domain: RHCE

4. Type Server 192.168.0.254 then click on next and ok

5. You will get a ok message.

6. Create a Directory /rhome/stationx where x is your station number.

6. vi /etc/auto.master and write at the end of file

/rhome/stationx /etc/auto.home --timeout=60

7. vi /etc/auto.home and write

* -rw,soft,intr 192.168.0.254:/rhome/stationx/&

Note: please specify your station number in the place of x.

8. Service autofs restart

9. Login as the nisuser2001 or nisuser2002 on another terminal will be

Success.

According to question, RHCE domain is already configured. We have to make a client of RHCE domain and automatically mount the home directory on your system. To make a member of domain, we use the authconfig or system-config-authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address.

Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service used the /etc/auto.master file. On /etc/auto.master file we specified the mount point the configuration file for mount point.

Options:

Buy Now
Questions 12

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

Answer and Explanation:

1.chmod 770 /archive

2.Verify using : ls –ld /archive

Preview should be like:

drwxrwx--- 2 root sysuser 4096 Mar 16 18:08 /archive

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

Options:

Buy Now
Questions 13

Create the group named sysuser.

Answer and Explanation:

1.groupadd sysuser

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

Options:

Buy Now
Questions 14

Add a job on Cron schedule to display Hello World on every two Seconds in terminal 8.

Answer and Explanation:

1.cat >schedule

*/2 * * * * /bin/echo “Hello World” >/dev/tty8

  • crontab schedule
  • Verify using: crontab –l
  • service crond restart

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.

To add the scheduled file on cron job: crontab filename

To List the Cron Shedule: crontab –l

To Edit the Schedule: crontab –e

To Remove the Schedule: crontab –r

Options:

Buy Now
Questions 15

Deny to all users except root to run cron schedule.

Answer and Explanation:

1.vi /etc/cron.allow

root

or

vi /etc/cron.deny

Write all user name to deny.

/etc/cron.allow, /etc/cron.deny file is used to control users to allow or deny. If /etc/cron.allow file is created only that users are allowed to run cron schedule. Another way to deny to users is /etc/cron.deny write all user name on single line.

Options:

Buy Now
Questions 16

One New Kernel is released named kernel-.2.6.19-11. Kernel is available on ftp://server1.example.com/pub/updates directory for anonymous. Install the Kernel and make the kernel-2.6.18-8 default.

Answer and Explanation:

1.rpm -ivh ftp://server1.example.com/pub/updates/kernel-2.6.19-11.i686.rpm

2.vi /etc/grub.conf

default=1  Change this value to 1

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title Red Hat Enterprise Linux ES (2.6.19-11)

root (hd0,0)

kernel /vmlinuz-2.6.19-11.EL ro root=LABEL=/ rhgb quiet

initrd /initrd-2.6.19-11.EL.img

title Red Hat Enterprise Linux ES (2.6.9-5.EL)

root (hd0,0)

kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/ rhgb quiet

initrd /initrd-2.6.9-5.EL.img

According question that kernel is available to anonymous user. You can directly install from the ftp server using rpm command.

When you install the kernel, it will write on /etc/grub.conf file. You can set the default kernel by changing the default value. See on the output of /etc/grub.conf file that new kernel is on first title so it’s index is 0 and previous kernel’s index is 1.

Options:

Buy Now
Questions 17

Add a job on Cron schedule to display Hello World on every two Seconds in terminal 8.

Answer and Explanation:

  • cat >schedule

*/2 * * * * /bin/echo “Hello World” >/dev/tty8

  • crontab schedule
  • Verify using: crontab –l
  • service crond restart

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.

To add the scheduled file on cron job: crontab filename

To List the Cron Shedule: crontab –l

To Edit the Schedule: crontab –e

To Remove the Schedule: crontab –r

Options:

Buy Now
Questions 18

UESTION NO: 44 CORRECT TEXT

Who ever creates the files/directories on /data group owner should be automatically should be the same group owner of /data.

Answer and Explanation:

1.chmod g+s /data

2.Verify using: ls -ld /data

Permission should be like:

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

If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory.

To set the SGID bit: chmod g+s directory

To Remove the SGID bit: chmod g-s directory

Options:

Buy Now
Questions 19

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

Answer and Explanation:

1.chmod 770 /archive

2.Verify using : ls –ld /archive

Preview should be like:

drwxrwx--- 2 root sysuser 4096 Mar 16 18:08 /archive

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

Options:

Buy Now
Questions 20

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 …………..

Options:

Buy Now
Questions 21

Install the Redhat Linux RHEL 5 through NFS. Where your Server is server1.example.com having IP 192.168.0.254 and shared /var/ftp/pub. The size of the partitions are listed below:

/1048

/home1028

/boot 512

/var 1028

/usr2048

Swap->1.5 of RAM Size

/dataconfigure the RAID Level 0 of remaining all free space.

After completing the installation through NFS solve the following questions. There are two networks 192.168.0.0/24 and 192.168.1.0/24. As well as there are two domains example.com on 192.168.0.0/24 network and cracker.org on 192.168.1.0/24 network. Your system is based on example.com domain.

Answer and Explanation:

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.Create the two RAID partitions having equal size of remaining all free space.

11.Click on RAID button

12.Type mount point /data

13.Select RAID Level 0

14.Click on ok

15. 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.

Options:

Buy Now
Exam Code: RH202
Exam Name: RHCT (Redhat Certified Technician) RH202
Last Update: May 1, 2024
Questions: 140
RH202 pdf

RH202 PDF

$28  $80
RH202 Engine

RH202 Testing Engine

$33.25  $95
RH202 PDF + Engine

RH202 PDF + Testing Engine

$45.5  $130