Rhcsa Exam Lab
Rhcsa Exam Lab
91/repo/AppStream
Initial access
1. Admin has forgotten root passwd, change it and relabel the system
2. Configure users skel with a welcome file and Documents dir for new users
3. Change passwd expiration days to 10 with and warning 3 days before
4. Create 4 users, anna, john, student1 and Robert. Anna and john are member of
students group, config all users with passwd “toor”
5. Robert is part of group Admins, this group can execute any sudo tasks with no
passwd
6. User student1 can execute any sudo task with no passwd
7. Create user named guest, this user have no interactive shell
Configure network
8. ip add: 192.168.74.92/24
9. secondary ip add: 192.168.74.93/24
10. gateway: 192.168.74.2
11. DNS: 192.168.74.2
12. Hostname: local.lab.com
13. Create an ip route to network 1.1.1.1/24, gateway 192.168.74.2
14. Configure NTP service, Synchronize the server time, NTP server:
classroom.example.com
15. Find lines with “ac” on file /root/lines and copy it to /mnt/lines file
16. Find every file owned by student1 and copy it to /mnt/student1 folder
17. Find every file bigger than 5MB and copy it to /mnt/bigger folder
18. Configure a cron job to echo “Hello cron working” every 2 days at 2PM
19. Create a bash script to echo “creating script” and then create a file named
“working” under /
20. Create 3 compress files of /etc/hosts file called hosts.tar.gzip, hosts.tar.bzip2 and
hosts.tar.xz under /mnt
21. Create a symbolic link of /usr/bin/echo under /mnt name It echo2
22. Copy fstab file to /mnt/fstab, owner is root and group is admins, groups have full
permissions, others are not allowed to do anything.
23. User anna has write and read permission in the file
24. Create a folder called users under /home, every file created under users dir must
preserve its parent group owner.
25. anyone except the owner of a file under users dir can delete it (Sticky)
26. configure umask 033 for all user, users root and Student1 must have their own
022 umaks
27. An apache service is running under port 92, and the root folder is under /web, fix
it and set the right label
28. Change ssh port to 90 and set the right selinux conf
29. Open port 92 and 90 on firewalld, make the change persistent.
Logging
33. Create a 5 gb partition format It with ext3 and mount it on /mnt/ext3 persistently,
mount must be with part UUID.
34. Create a 5 gb partition of swap and mount it persistently on fstab
35. Create a vg called VG1 with a partition of 5gb, consider a PE size of 10MB
36. Create a lv called LV1 on top of VG1 with a size of 600MB, format it with ext4 and
mount it under /mnt/lvm
37. Extend the vg with another partition of 5 gb and extend the lv from 60LE to 700LE,
final size must be between 6.9gb – 7.1gb.
38. Create a stratis pool with a partition of 5gb called POOL1, create a fs called fs1
and mount it on /mnt/fs1
39. Create a snapshot of fs1 called snap1 and mount it on /mnt/snap
NFS automount
40. Configure autofs to mount a share home dir under /home/share, this home dir is
accessible in 192.168.74.91/home/shareuser
Containers