We provide real RH302 exam questions and answers braindumps in two formats. Download PDF & Practice Tests. Pass Red Hat RH302 Exam quickly & easily. The RH302 PDF type is available for reading and printing. You can print more and practice many times. With the help of our Red Hat RH302 dumps pdf and vce product and material, you can easily pass the RH302 exam.
Q81. CORRECT TEXT
Your Local Domain is example.com. Configure the send mail server for you local LAN.
Answer and Explanation:
1. vi /etc/mail/local-host-names
example.com
2. vi /etc/mail/sendmail.mc
dnl # DEAMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,Name=MTA`)dnl
3. m4 /etc/mail/sendmail.mc >/etc/mail/sendmail.cf
4. vi /etc/mail/access
example.com RELAY
192.168.0 RELAY
5. service sendmail start | restart
6. chkconfig sendmail on
/etc/mail/local-host-names file contains the aliases to hostname. Mail server program reads the
/etc/mail/sendmail.cf. To change the configuration on mail server, we should edit the
/etc/mail/sendmail.mc file and should generate the sendmail.cf using m4 command.
By default sendmail server allows to connect to local host only. So we should edit the
/etc/mail/sendmail.mc file to allow connect to other hosts.
By default sendmail server will not forward mail. we should specify on /etc/mail/access to relay or to block mail coming from domain or network or individual email address.
Q82. CORRECT TEXT
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
Q83. CORRECT TEXT
One Package named zsh is dump on ftp://server1.example.com under /pub/updates directory and your FTP server is 192.168.0.254. Install the package zsh.
Answer and Explanation:
1. rpm -ivh ftp://server1/example.com/pub/updates/zsh-*
or
1. Login to ftp server : ftp ftp://server1.example.com using anonymous user.
2. Change the directory: cd pub and cd updates
3. Download the package: mget zsh-*
4. Quit from the ftp prompt : bye
5. Install the package
6. rpm -ivh zsh-*
7. Verify either package is installed or not : rpm -q zsh
Q84. CORRECT TEXT
Who ever creates the files/directories on /archive group owner should be automatically should be the same group owner of /archive.
Answer and Explanation:
1. chmod g+s /archive
2. Verify using: ls -ld /archive
Permission should be like:
drwxrws--- 2 root sysuser 4096 Mar 16 18:08 /archive
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
Q85. CORRECT TEXT
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.
Q86. CORRECT TEXT
Give Full Permission to owner user and owner group member but no permission to others on /data.
Answer and Explanation:
We can change the permission of file/directory either character symbol method or numeric
method.
Permission:
r-Read
w-Write
x-Execute
Permission Category
u- Owner User
g- Owner Group
o- Others
Operators
+ àAdd the Permissions
- àRemove the Permissions
= àAssigns the Permissions
Numeric Method:
4àRead
2àWrite
1àExecute
Total: 7, total for owner user, owner group member and for others : 777chmod u+rwx /datachmod
g+rwx /datachmod o-rwx /data
or
chmod 770 /dataVerify the /data : ls -ld /dataYou will get drwxrwx---
Q87. CORRECT TEXT
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 buttonType the Mount PointSelect File system typeSelect
RAID LevelSelect Partitions/disks as a member of RAID.Click on ok
After Installation: We can create the RAID Device after Installation on command-line.
1. Create the Two partitions having equal size. (Specify the Size using Cylinder, find the remaining cylinder and divide by 2).
2. Change the Partition ID to fd (Linux raid Autodetect) by typing t.
3. Type w à To write on partitions table.
4. Use partprobe command to synchronic the partition table.
5. Use: mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda? /dev/hda?
6. Verify the RAID: mdadm --detail /dev/md0
7. mkfs -t ext3 /dev/md0
8. mount /dev/md0 /data
9. vi /etc/fstab
/dev/md0 /data ext3 defaults 0 0
10. Verify mounting devices using mount command.
Q88. CORRECT TEXT
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.
Q89. CORRECT TEXT
Successfully resolv to server1.example.com where your DNS server is 172.24.254.254
Answer and Explanation:
1. vi /etc/resolv.conf
nameserver 172.24.254.254
2. host server1.example.com
Q90. CORRECT TEXT
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.