You are on page 1of 4

RHCSA MOCK PAPER 5

=> SYSTEM INFORMATION:


Note:- In lab you will get servera machine as node1 & serverb as node2 You have been provided two
virtual machine.
node1.lab.example.com provided with IPv4 Address is 172.25.250.10 Network for this machine is
(172.25.250.0 255.255.255.0) Name server IP: 172.25.250.254
node2.lab.example.com provided with IPv4 Address is 172.25.250.11 Network IP: (172.25.250.0
255.255.255.0) Name server IP: 172.25.250.254 The root user password for Virtual machine
node1.lab.example.com is redhat
All required software or package Repository is available at
http://content.example.com/rhel8.0/x86_64/dvd/BaseOS
http://content.example.com/rhel8.0/x86_64/dvd/AppStream

Selinux is in enforcing if you want to make it disabled you can as per as your requirement. Firewall is
configured if you want to disabled you can

1) Configure Network
- IPv4 Address is 172.25.250.10
- Subnet Mask: 255.255.255.0
- Gateway:172.25.250.254
- Name server: 172.25.250.254

2) Configure Repository
- Needed packges are available on http://content.example.com/rhel8.0/x86_64/dvd/AppStream/ and
http://content.example.com/rhel8.0/x86_64/dvd/BaseOS/

3) Troubleshoot Selinux
- On servera investigate and fix the issue with the Apache HTTPD daemon, which is configured to
listen on port 85/TCP, but which fails to start. Adjust the firewall settings appropriately so that port
85/UCP is open for incoming connections.

4) User Management
- Add a group called Sample having gid 6060
- Add 3 Users named as SysAdmin, Admin, Admin2
- Sample should be supplymentary of all the users you just added except for Admin2
- The password of all 3 users should be set to Katherine
- Admin2 should not have access to interactive shell
- Verify the changes

5) Collabratively Directory
- Create a Directory named as /mysql/database
- Sample should be groupowner of /mysql/database
- The directory created inside /mysql/database should automatically get groupownership of Sample
- The user should have read,write and execute permission on it, Group should have Read,write and
execute permissions, others should not have any permissions.

6) Verify the ques 5

7) cron job
Configure a cron-job for SysAdmin that runs
" At 03:16 PM, Tuesday and Friday and performs /usr/bin/echo "my-exam" >> /tmp/rhcsa-exam"
- Verify by checking logs

8) NTP Client
- The NTP server is "classroom.example.com"
- Verify the same

9) Autofs for automount


- classroom.example.com exports NFS share folder/oracel to your system
- remoteuserX home directory is on NFS share
- remoteuserX home directory should be auto mounted locally beneath/oracel as/oracel/remoteuserX
when remoteuserX login into local system
- home directories must be writable by their users

10) User Creation


- Creates a user named SysAdmin1 with following Characteristics.
- The userid must be 9009.
- User password must be "Administration"

11) Set Permmisions


- copy /etc/passwd to /var/log
- The file /var/log/passwd is owned by the root and also belongs to the group root
- It should not be executable by anyone.
- The the group Sample should able to read and write /var/log/passwd
- The user SysAdmin1 is able to read & write /var/log/passwd
- The user Admin is able to read & write /var/log/passwd
- The user SysAdmin can neither write nor read /var/log/passwd
- All other user can only have the ability to read /var/log/passwd

12) Locate Files and Directory


- Find all files & directories that is owned by group Sample.
- Copy all files & directories to /var/data folder.
- verify the same

13) Create an Archive


- Create an archive file in /mnt/backup-file.xz
- It containes backup of /var/log.
- verify the same

14) Search String


- Search String exact with word "dog" from /usr/share/dict/words
- Save the above output in file /tmp/dog-output
- verify the same

15) Set the umask


- Configure the umask for user SysAdmin1 such that
- Any files created by SysAdmin1 should have permission set to "r--r--r--"
- Any Directories created by SysAdmin1 should have permission set to "r-xr-xr-x"
- verify the same.

16) Create a script compare.sh to find the largest number out of three numbers, on execution it should
ask to enter numbers

=> Perform this task on node2


1) Recover the root password
- Change the root password to "Katherine"

2) Configure Network
- IPv4 Address is 172.25.250.11
- Subnet Mask: 255.255.255.0
- Gateway:172.25.250.254
- Name server: 172.25.250.254
- The host name should be node2.lab.example.com

3) Configure Repository
- Needed packges are available on http://content.example.com/rhel8.0/x86_64/dvd/AppStream/ and
http://content.example.com/rhel8.0/x86_64/dvd/BaseOS/

4) Create the swap partion


- Create a swap partition of 500MB
- It should persist across reboot

5) Configure VDO
- Create VDO volume with name vd01.
- Physical size of VDO device must be 5 GiB
- Set the logical size 10 times the size of Physical Block device (Assuming container storage)
- Mount VDO on /mnt/vdo And filesystem must be xfs

6) Tunning the Profile


- Set the tuned profile as "Network Latency"

7) Create a LVM
- Assign volume group name server_volumne
- The size of one PE is 32M
- Create one logical volume of 20PE with name logical_volume
- FStype is xfs and mount it under /mnt/lvm, it should persist accross reboot.

8) Resize the LVM


- Set the size of logical volume so that 50PE is added to existing logical vol under redhat vg.

9) Container
- Perform from Web user
- pull a httpd image from registry.redhat.io
- Use your rhel id and password for login
-perform port forwarding
-perform persistent mounting
- container must be managed using systemctl comamnds

You might also like