Red Hat Certified System Administrator
RHCSA(EX200) EXAM-PAPER
Three machine are there on your exam environment
1. Base Machine-base.net.example.com
a. primary.netX.example.com
b. secondary.netX.example.com
On primary machine
node-1
Q.no.1)
setup an ip address for primary virtual machine.
ip addr 172.25.X.11 subnet mask 255.255.255.0 Default gateway 172.25.X.254 nameserver
172.25.254.254
and hostname as primary.netX.example.com
Q.no.2)
yum repository configuration on both machines.
[http://content.example.com/rhel9.0/x86_64/dvd/AppStream]
[http://content.example.com/rhel9.0/x86_64/dvd/BaseOS]
Q.no.3)
configure a cron job on primary machine.
a. The user natasha must configure a cron job that runs daily at 14:23 local time and executes
/bin/echo hiya
OR
b. The user natasha must configure a cron job that runs daily at every 3 minute local time and
executes /bin/echo hiya
Q.no.4)
SELinux must be running in the permissive mode.
Q.no.5) SELinux Port
The system is not able to connect to httpd service at port 82.it should be accessible at port 82
and should start at boot time.
Q.no.6)
Create the following users,group and group memberships:-
A group named sysadmin.A user natasha who belongs to sysadmin as a secondary group.A
user sarah who
also belongs to sysadmin as a secondary group.A user harry who does not have access to an
interactive
shell on the system and who is not a member of sysadmin.natasha,sarah and harry should all
have the
password of thuctive.
Q.no.7)
Create the collaborative directory "/common/admin" with the following characteristics:-
Group ownership of /common/admin is sysadmin.The directory should be
readable,writable,and accessible
to members of sysadmin,but not any other user.(It is understood that root has access to all
files and
directories on the system.) Files created in /common/admin automatically have group
ownership set to
the sysadmin group.
Q.no.8)
Copy the file /etc/fstab to /var/tpm. Configure the permissions of /var/tpm/fstab so that:-
The file /var/tpm/fstab is owned by the root user.The file /vat/tpm/fstab belong to the group
root.
The file /var/tpm/fstab should not be executable by anyone.The user natasha is able to read
and write
/var/tpm/fstab.The user sarah can neither write nor read /var/tpm/fstab.[Note:all other user
(current
or future) have the ability to read /var/tpm/fstab.]
Q.no.9)
Configure NTP in your system so that it is an NTP client of classroom.example.com
Q.no.10)
Find the files in your system which is owned by simone user & copy all the files on
/root/found
directory.
Q.no.11)
Find the string strato from /usr/share/dict/words/file and save the result in /searchfile.
Q.no.12)
Configure autofs to automount the home directories of netuserX user.Note the following:
netuserX home directory is exported via NFS,which is available on
classroom.example.com(172.28.11.24)
and your NFS-exports directory is /netdir/netuserX for netuserX (use netuser5 for this)
netuserX's
home directory is classroom.example.com:/home/guests/netuserX netuserX's home directory
should be
automounted using autofs service. home directory must be writable by their users on
server:change ip
address in /etc/exports.Also "systemctl restart nfs-server"
OR
Q.no.12)
using automounter service mount remoteuserX onto the provided folder
/ourhome/remoteuserX.
Q.no.13)
Create a new user with UID 1122 and user name as bob.
Q.no.14)
Create a backup.tar.(bz2 or gz) of /etc/ directory in /home location.
OR
Q.no.14)
Create an archive file-Backup the /var/tpm directory as /root/test.tar.gz
Q.no.15)
The password for all new users should expire after 20 days.
Q.no.16)
Change permission 664 to all directory to be created.
Q.no.17)
Build an application called "rhcsa" that prints the message "welcome to user jack" when
you're logged
in as the user "jack".
Q.no.18)
Create a shell new script 'newsearch' which will locate from /usr directory where file size be
more
than 20K less than 70K (suid) script will be in /usr/local/bin and output will store at
/root/output.
On secondary machine
node-2
Q.no.1)
First step is to crack password for user root of secondary machine.
Q.no.2)
yum repository configuration on both machines.
Q.no.3)
Set a recommended tuning profile for your system.(profile already available)
Q.no.4)
Resize the lvm partition "home" to 300M.
Q.no.5)
Create the swap partition of 250 megabyte and make available at next reboot.Partition
already available.
Q.no.6)
Create the volume group with name myvol with 8 MiB P.E and create the lvm name
mydatabase with the 100
P.E. and format this lvm with vfat and create a directory /database and mount this lvm
permanently on
/database.
Q.no.7)
Create a VDO file system using following details:
VDO share name vdo1
local size -50 GB
mount of path -/mnt/vdo1
mount should be persistence across reboot.