The Up to the minute Guide To RH302 lab May 2021


♥♥ 2021 NEW RECOMMEND ♥♥

Free VCE & PDF File for Red Hat RH302 Real Exam (Full Version!)

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW RH302 Exam Dumps (PDF & VCE):
Available on: http://www.surepassexam.com/RH302-exam-dumps.html

Q51. CORRECT TEXT

You are giving RHCT Exam and in your Exam paper there is a question written, make successfully ping to 192.168.0.254.

Answer and Explanation:

In Network problem thinks to check:

1. IP Configuration: use ifconfig command either IP is assigned to interface or not?

2. Default Gateway is set or not?

3. Hostname is set or not?

4. Routing problem is there?

5. Device Driver Module is loaded or not?

6. Device is activated or not?

Check In this way:

1. use ifconfig command and identify which IP is assigned or not.

2. cat /etc/sysconfig/network à What, What is written here. Actually here are these parameters.

NETWORKING=yes or no

GATEWAY=x.x.x.x

HOSTNAME=?

NISDOMAIN=?

- Correct the file

3. Use vi /etc/sysconfig/network-scirpts/ifcfg-eth0 and check the proper options

DEVICE=eth0

ONBOOT=yes

BOOTPROTO=static

IPADDR=x.x.x.x

NETMAKS=x.x.x.x

GATEWAY=x.x.x.x

4. Use service network restart or start command


Q52. CORRECT TEXT

One Logical Volume named /dev/test0/testvolume1 is created. The initial Size of that disk is 100MB now you required more 200MB. Increase the size of Logical Volume, size should be increase on online.

Answer and Explanation:

1. lvextend -L+200M /dev/test0/testvolume1

Use lvdisplay /dev/test0/testvolume1)

2. ext2online -d /dev/test0/testvolume1

lvextend command is used the increase the size of Logical Volume. Other command lvresize command also here to resize. And to bring increased size on online we use the ext2online command.


Q53. CORRECT TEXT

There are mixed lots of System running on Linux and Windows OS. Some users are working on Windows Operating System. You want to make available /data directory to samba users only from 192.168.0.0/24 network. Configure the samba server.

Answer and Explanation:

1. vi /etc/samba/smb.conf

[global]

netbios name=station?

workgroup = mygroup

server string=Share from Linux Server

security=user

smb passwd file=/etc/samba/smbpasswd

encrypt passwords=yes

hosts allow=192.168.0.

[data]

path=/data

writable=yes

public=no

browsable=yes

2. service smb start| restart

3. chkconfig smb on

Samba servers helps to share the data between linux and windows. Configuration file is /etc/samba/smb.conf. There are some pre-defined section, i. global à use to define the global options, ii. Printers à use to share the printers, iii. homes à use to share the user's home directory.

Security=user à validation by samba username and password. May be there are other users also.

To allow certain share to certain user we should use valid users option.

smbpasswd à Helps to change user's smb password. -a option specifies that the username following should be added to the local smbpasswd file.

If any valid users option is not specified, then all samba users can access the shared data. By Default shared permission is on writable=no means read only sharing. Write list option is used to allow write access on shared directory to certain users or group members.

To allow access the shared directory only from certain network or hosts, there is a option hosts allow= host or network. If this option is applied on global option, then it will apply to all shared directory.


Q54. CORRECT TEXT

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

a. when user try to access, automatically should mount

b. when user doesn't use mounted directory should unmount automatically after 50 seconds.

c. Shared directory should mount on /mnt/data on your machine.

Answer and Explanation:

1. vi /etc/auto.master

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

2. vi /etc/auto.misc

3. data -rw,soft,intr server1.example.com:/data

4. service autofs restart

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


Q55. CORRECT TEXT

Make a swap partition having 100MB. Make Automatically Usable at System Boot Time.

Answer and Explanation:

1. Use fdisk /dev/hda à To create new partition.

2. Type n à For New partition

3. It will ask for Logical or Primary Partitions. Press l for logical.

4. It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.

5. Type the Size: +100M à You can Specify either Last cylinder of Size here.

6. Press P to verify the partitions lists and remember the partitions name. Default System ID is 83 that means Linux Native.

7. Type t to change the System ID of partition.

8. Type Partition Number

9. Type 82 that means Linux Swap.

10. Press w to write on partitions table.

11. Either Reboot or use partprobe command.

12. mkswap /dev/hda?à To create Swap File system on partition.

13. swapon /dev/hda?à To enable the Swap space from partition.

14. free -m à Verify Either Swap is enabled or not.

15. vi /etc/fstab

/dev/hda? swap swap defaults 0 0

16. Reboot the System and verify that swap is automatically enabled or not.


Q56. CORRECT TEXT

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.

1. Restart the System.

2. You will get the boot loader GRUB screen.

3. Press a and type 1 or s for single mode

ro root=LABEL=/ rhgb queit s

4. System will boot on Single User mode.

5. Use passwd command to change.

6. Press ctrl+d


Q57. CORRECT TEXT

Change the root Password to redtophat

Answer and Explanation: 

Boot the system in Single user modeUse the passwd command


Q58. CORRECT TEXT

Create the user named eric and deny to interactive login.

Answer and Explanation:

5. useradd eric

6. passwd eric

7. vi /etc/passwd

8. eric:x:505:505::/home/eric:/sbin/nologin

Which shell or program should start at login time is specified in /etc/passwd file. By default Redhat Enterprise Linux assigns the /bin/bash shell to the users. To deny the interactive login, you should write /sbin/nologin or /bin/false instead of login shell.


Q59. CORRECT TEXT

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 /lvtest2 ext3 defaults 0 0

/dev/test0/testvolume1 /lvtest1 ext3 defaults 0 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.


Q60. CORRECT TEXT

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:

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

2. service syslog restart