0% found this document useful (0 votes)
139 views3 pages

Rhcsa Exam Lab

The document provides instructions for configuring various systems and services on a server including users and groups, networking, file permissions, logging, storage, containers and more. It contains over 40 specific tasks to configure services, open ports, set permissions, create users and more.

Uploaded by

Fouad Barout
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
139 views3 pages

Rhcsa Exam Lab

The document provides instructions for configuring various systems and services on a server including users and groups, networking, file permissions, logging, storage, containers and more. It contains over 40 specific tasks to configure services, open ports, set permissions, create users and more.

Uploaded by

Fouad Barout
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

AppStream repo: http://192.168.74.

91/repo/AppStream

BaseOS repo: http://192.168.74.91/repo/BaseOS

Initial access

1. Admin has forgotten root passwd, change it and relabel the system

Manage users and groups

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

Manage text files and daily tasks

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

Permissions and ACL

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

Firewall and Selinux

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

30. Configure journald logs to be save persistently


31. Configure rsyslog to save any critical log or higher to /var/log/crit
32. Configure firewalld logs to be rotate every 3 weeks
Storange: SWAP, LVM and Stratis

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

41. Log in with podman to registry.redhat.io


42. Create a container with the following image: registry.redhat.io/rhel9/rsyslog
43. Copy journald logs to /home/student1/logs and mount logs dir to the following
container path /var/log/logs, make sure container users have right permisisons to
access and edit dir and the folder have right Selinux context label.
44. Configure container with systemd as a service.
45. Enable user linger to run container without the need of student1 user to log in

You might also like