RHCSA Questions & Answers Example Exam 2019

RHCSA-VM configuration:

If you are preparing for the RHCSA Exam, then you may find these questions and answers useful. I will be going through the post to make sure everything is correctly formated.


  • you have been provided a virtual box named as serverX.example.com (hint:where X is your domain number)
  • password for both virtual machine should be “Examplepw”
  • serverX.example.com provided with ip=172.25.X.11/
  • serverX.example.com are provided with gateway & example.com dns domain with the IP:
  • NOTE: I have Foundation Machine# 9, so I am using

Set the Hostname

hostnamectl set-hostname server9.example.com

Before starting exam.
–> ping server-vm ip , desktop-vm ip and classroom.example.com
–> from server-vm ping base machine and server.
–> check hostname and IP address of server-vm and desktop-vm

Multi-user target -> Graphical-user target

if the vm has set with multi-user.target then set it to graphical.target, but don’t forget to revert back to multi-user.target

—> mask the iptable servervice before starting exam.

Don’t forget to Reboot it, so that It will take affect

2) create a new 100MB Physical partition mounted under /gluster

(Note because partition sizes are seldom exactly what is specified when they are created, any thing within the range of 70MB to 120MB is acceptable)

3) create a new 150MB swap partition f/s.

(Note because partition sizes are seldom exactly what is specified when they are created,
any thing within the range of 130MB to 170MB is acceptable)

4) create a repository for http://content.example.com/rhel7.0/x86_64/dvd

5) create the following user, groups, and group memberships:

–> A group named sysgrp
–> A user andrew who belongs to sysgrp as a secondary group
–> A user susan also belongs to sysgrp as a secondary group
–> A user sarah who does not have access to an interactive shell on system and who not a member of sysgrp
–> susan,sarah, andrew password = “Postroll”
groupadd sysgrp
useradd andrew
useradd susan
useradd -s /sbin/nologin sarah
usermod -aG sysgrp andrew
usermod -aG sysgrp susan
# id andrew
uid=1002(andrew) gid=1003(andrew) groups=1003(andrew),1002(sysgrp)
# id susan
uid=1003(susan) gid=1004(susan) groups=1004(susan),1002(sysgrp)
# su – sarah
This account is currently not available.

6) create a collaborative directory /redhat/sysgrp with the following characteristics:

–> Group owneship of /redhat/sysgrpis sysgrp
–> The directory should be readbale,writable, and accessable to members of sysgrp,
but not to any other user.
(It is understood that root has access to all files and directories on the system.
–> Files created in /redhat/sysgrp automatically have group ownership set to the sysgrp group


7) Install the appropriate kernel update from http://content.example.com/rhel7.0/x86_64/errata
The following criteria must also be met:
–>The updated kernel is the default kerneal when the system rebooted.
–>The original kernel remains available and bootable on the system

8) Enable IP forwarding on your machine

9) The user andrew must configure a cron job that runs daily at 14:23 local time and executes – /bin/echo hiya

10) Bind with LDAP used provided by classroom.example.com for userr authentication.

Note the following:-
–> The LDAP search base DN is dc=example,dc=com
–> The LDAP certificate file is
–>ldapuserX should be able to log into your system, whereX is your ServerX ((hint:where X is your domain number),
but will not have a home directory, until you have completed the autofs requirement,below all LDAP users have password of “password”

11) configure autofs to automount the home directories of LDAP users

Note the following:
–>classroom.example.com (, NFS-exports /home/guests to your system, whereX is your server Number.
–>LDAP userX’s home directory is classroom.example.com:/home/guests/ldapuserX
–>LdapuserX’s home directory should be automounted locally beneath /home as /home/guests/ldapuserX
–>home directories must be writable by their users
–>while you are able to login as any of the users ldapuser1 through ldapuser20 the only home directory that is accessible from
your system is ldapuserX.
Example:- classroom.example.com would configure the automaster such that ldapuser100’s home directory /home/guests/ldapuserX gets mounted automatically upon login. The NFS share would be classroom.example.com:/home/guests/ldapuser100
yum install autofs

12) Configure your system so that it is an NTP client of classroom.example.com

13) copy the file /etc/fstab to /var/tmp

configure the permission of /var/tmp/fstab so that
the file /var/tmp/fstab is owned by the root user, belongs to the group root
should not be executable by anyone.
The user andrew is able to read & write /var/tmp/fstab
The user susan can neighter write nor read /var/tmp/fstab
All other users (current or future) have the ability to read /var/tmp/fstab.

14) Resize the logical volume, logical-data and it filesystem to 400MB.

Make sure that the filesystem contents remain intact.
(Note: partitions are seldom exactly the size requested,so any thing within the range of 370MB to 430MB is acceptable)

15) Add the user talusan with userid 2985

16) create a new physical volume, create a new volume group in the name of datacontainer, vg extent is 16.00MB

create a new logical volume in the name of datacopy with the size of 50 extents and file system must vfat then
mount it under /datasource

17) create an archive file /root/local.tgz for /usr/local. it should be compressed by gzip.

18) search the string sarah in the /etc/passwd file and save the output in /root/lines

Leave a Reply

Your email address will not be published. Required fields are marked *