Aug 2017 updated: Exambible Red Hat RH302 exam cost 71-80

It is impossible to pass Red Hat RH302 exam without any help in the short term. Come to Actualtests soon and find the most advanced, correct and guaranteed Red Hat RH302 practice questions. You will get a surprising result by our Down to date Red Hat Certified Engineer on Redhat Enterprise Linux 5 (Labs) practice guides.


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:


Deny to all users except root to run cron schedule.

Answer and Explanation:

1. vi /etc/cron.allow



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.


One User named peter working with you as your assistance. His main responsibility is to manager users. Give the privilege to run useradd, passwd, groupadd, userdel, groupdel, usermod command using sudo.

Answer and Explanation:

1. visudo

# User alias Specification

User_alias LIMITEDTRUST=peter

# Cmnd alias Specification

Cmnd_alias MINIMUM=/usr/sbin/useradd, /usr/bin/passwd, /usr/sbin/groupadd, /usr/sbin/userdel,

/usr/sbin/groupdel, /usr/sbin/usermod

# User Privilege Specification


2. Login as peter user and run sudo useradd username

Using Sudo we can give root level privilege on commands. Visudo is the sudo editor. In user alias Specification we create the user alias and in Cmnd alias Specification, we create the command alias. In User Privilege Specification section, list the users, groups allowed to use the sudo.


24. There is a server having and Your System lies on Make successfully ping to by Assigning following IP:

172.24.0.x Where x is your station number.

Answer and Explanation:

1. Use netconfig command

2. Enter the IP Address as given station number by your examiner: example:

3. Enter Subnet Mask

4. Enter Default Gateway and primary name server

5. press on ok

6. ifdown eth0

7. ifup eth0

8. verify using ifconfig

In the lab server is playing the role of router, IP forwarding is enabled. Just set the Correct IP and gateway, you can ping to


All mails to should get by eric user.

Answer and Explanation:

1. vi /etc/mail/virtusertable eric

2. service sendmail restart

/etc/mail/virtusertable file is used to send the mail coming for virtual user to real user. According to question, all mail to should get by eric user so eric : Which sends all mail of to eric user.


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.


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.


One Logical Volume is created named as myvol under vo volume group and is mounted. The Initial Size of that Logical Volume is 400MB. Make successfully that the size of Logical Volume 200MB without losing any data. The size of logical volume 200MB to 210MB will be acceptable.

Answer and Explanation:

1. First check the size of Logical Volume: lvdisplay /dev/vo/myvol

2. Make sure that the filesystem is in a consistent state before reducing:

# fsck -f /dev/vo/myvol

3. Now reduce the filesystem by 200MB.

# resize2fs /dev/vo/myvol 200M

4. It is now possible to reduce the logical volume.

#lvreduce /dev/vo/myvol -L 200M

4. Verify the Size of Logical Volume: lvdisplay /dev/vo/myvol

5. Verify that the size comes in online or not: df -h


Make user1, user2 and user3 belongs to training group.

Answer and Explanation:

1. usermod -G training user1

2. usermod -G training user2

3. usermod -G training user3

4. Verify from : cat /etc/group

There are two types of group, I) primary group II) Secondary or supplementary group.

5. Primary Group: Primary group defines the files/directories and process owner group there can be only one primary group of one user.

6. Secondary Group is used for permission. Where permission are defined for group members, user can access by belonging to that group.

Here user1, user2 and user3 belong as supplementary to training group. So these users get the permission of group member.


/storage directory on linux server should make available on windows system that jeff user should able to access on read only mode within domain.

Answer and Explanation:

1. vi /etc/samba/smb.conf


netbios name=station?



smb passwd file=/etc/samba/smbpasswd

encrypt passwords=yes

hosts allow=






2. smbpasswd -a jeff

3. service smb start

4. chkconfig smb on

/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 the 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.


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.