RH 302
RH 302
RH 302
QUESTION: 1
CORRECT TEXT
Change the root Password to redtophat
Answer(s): A
QUESTION: 2
CORRECT TEXT
Dig Server1.example.com, Resolve to successfully through DNS Where DNS server is
172.24.254.254
A. #vi /etc/resolv.conf
nameserver 172.24.254.254
# dig server1.example.com
#host server1.example.com
DNS is the Domain Name System, which maintains a database that can help your computer
translate domain names such as www.redhat.com to IP addresses such as 216.148.218.197.
As no individual DNS server is large enough to keep a database for the entire Internet, they can
refer requests to other DNS servers.
DNS is based on the named daemon, which is built on the BIND (Berkeley Internet Name
Domain) package developed through the Internet Software Consortium Users wants to access
by name so DNS will interpret the name into ip address. You need to specify the Address if DNS
server in each and every client machine. In Redhat Enterprise Linux, you need to specify the
DNS server into /etc/resolv.conf file.
After Specifying the DNS server address, you can verify using host, dig and nslookup
commands.
Answer(s): A
QUESTION: 3
CORRECT TEXT
Create the partition having 100MB size and mount it on /mnt/neo
https://xcerts.com 2
RH-302
Answer(s): A
QUESTION: 4
CORRECT TEXT
Your System is going use as a router for 172.24.0.0/16 and 172.25.0.0/16. Enable the IP
Forwarding.
Answer(s): A
QUESTION: 5
CORRECT TEXT
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(s): A
QUESTION: 6
CORRECT TEXT
neo user tried by:
dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70
files created successfully. Again neo tried to create file having 70K using following command:
dd if=/dev/zero of=/home/neo/somefile bs=1024 count=70
But he is unable to create the file. Make the user can create the file less then 70K.
A. Very Tricky question from redhat. Actually question is giving scenario to you to implement
quota to neo user. You should apply the quota to neo user on /home that neo user shouldn't
occupied space more than 70K.
1. vi /etc/fstab
mount the filesystem with usrquota for user quota and grpquota for group quota.
that /home is mounted with usrquota options or not using mount command.
See the snapshot
https://xcerts.com 3
RH-302
Answer(s): A
QUESTION: 7
CORRECT TEXT
One Logical Volume is created named as myvol under vo volume group and is mounted. The
Initial Size of that Logical Volume is 124MB. Make successfully that the size of Logical Volume
245MB without losing any data. The size of logical volume 240MB to 255MB will be acceptable.
Answer(s): A
QUESTION: 8
CORRECT TEXT
Quota is implemented on /data but not working properly. Find out the Problem and implement
the quota to user1 to have a soft limit 60 inodes (files) and hard limit of 70 inodes (files).
A. Quotas are used to limit a user's or a group of users' ability to consume disk space. This
prevents a small group of users from monopolizing disk capacity and potentially interfering with
other users or the entire system. Disk quotas are commonly used by ISPs, by Web hosting
companies, on FTP sites, and on corporate file servers to ensure continued availability of their
systems. Without quotas, one or more users can upload files on an FTP server to the point of
filling a filesystem. Once the affected partition is full, other users are effectively denied upload
access to the disk. This is also a reason to mount different filesystem directories on different
partitions. For example, if you only had partitions for your root (/) directory and swap space,
someone uploading to your computer could fill up all of the space in your root directory (/).
Without at least a little free space in the root directory (/), your system could become unstable or
even crash. You have two ways to set quotas for users. You can limit users by inodes or by
kilobyte-sized disk blocks. Every Linux file requires an inode. Therefore, you can limit users by
the number of files or by absolute space. You can set up different quotas for different
filesystems. For example, you can set different quotas for users on the /home and /tmp
directories if they are mounted on their own partitions.
Limits on disk blocks restrict the amount of disk space available to a user on your system. Older
versions of Red Hat Linux included LinuxConf, which included a graphical tool to configure
https://xcerts.com 4