RHCSA V10
Part of RHCSA V10. Goal-only tasks, no walkthroughs — this mirrors the actual exam format: you’re told the end state you need, not the commands to get there. Each task has a Verify line so you can confirm you actually got there, not just that you think you did.
How to use this
- Run these on a real VM (RHEL, Rocky, or Alma — identical for this purpose), not a container, not the exam VM.
- Close the notes before attempting a task. Open them only after — to check yourself, or after a genuine stuck point, not mid-attempt.
- Time yourself. The real exam gives you ~2.5 hours for the full task list — if a single task like these is taking you 20+ minutes, that’s the signal to go re-read the relevant note, not to keep guessing.
- Snapshot the VM before starting (or reinstall between sessions) — several tasks below deliberately break things, and you don’t want leftover damage confusing a later exercise.
- Reboot after any task that claims persistence (“survives a reboot”) — the exam grades the machine cold, after your session ends. A fix that only works until the next reboot is not a passing fix.
Users, Groups & Permissions
-
Create a group
devteam. Create a useralicewhose primary group isdevteam, secondary groupwheel, shell/bin/bash, and whose account expires in 90 days from today.
Verify:id alice,chage -l alice -
Create a user
bobwho can authenticate via SSH key only — no usable password login at all.
Verify:sudo passwd -S bobshows locked; attempt an SSH login with a password and confirm it’s rejected while key-based auth still works. -
A shared directory
/srv/teamdocsneeds: group ownershipdevteam, any file created inside it inherits that group automatically (regardless of the creating user’s primary group), and any user indevteamcan delete only their own files, not each other’s.
Verify: log in as two differentdevteammembers, have each create a file, confirm group ownership on both, then confirm neither can delete the other’s file. -
carolshould be able to runsystemctl restart httpdand nothing else as root, without a password prompt.
Verify: ascarol, runsudo systemctl restart httpd(should work, no prompt) thensudo systemctl restart sshd(should be refused).
Storage
-
A second disk was just attached to the VM. Partition it, format it XFS, and mount it persistently at
/data— must survive a reboot.
Verify:reboot, thendf -h /dataandmount | grep /data -
Build an LVM stack from a raw disk: a volume group
appvg, a 2GB logical volumeapplvinside it, formatted ext4, mounted at/app.
Verify:lsblk,lvs,df -h /app -
/appfrom the previous task is now full. Grow it by 1GB without unmounting it or losing data.
Verify:df -h /appshows the new size, and a file written before the resize still exists and is intact. -
Create a 512MB swap file (not a partition) and activate it persistently.
Verify:swapon --show, reboot,swapon --showagain. -
Given an NFS export
nfs-server:/exports/shared, mount it at/mnt/sharedon demand (not at boot) — nothing should mount until something actually accesses that path, and it should unmount itself again after being idle.
Verify:mount | grep sharedshows nothing right after boot;ls /mnt/sharedtriggers a mount; wait past the idle timeout and confirm it’s gone frommountagain without you touching it.
Processes, Services & Boot
-
A runaway process is consuming CPU. Find it by name, lower its scheduling priority without killing it, and confirm the change.
Verify:ps -eo pid,ni,comm | grep <name>shows the new niceness. -
Write a systemd unit for a custom script at
/usr/local/bin/heartbeat.shthat starts on boot, restarts automatically if it crashes, and runs as a dedicated non-root user.
Verify:systemctl status heartbeat, thenkillthe process manually and confirm systemd restarts it on its own. -
The system currently boots to a graphical desktop. Change it to boot to a text-only multi-user prompt by default, without uninstalling the desktop environment.
Verify:systemctl get-default, then reboot and confirm no GUI comes up. -
Simulate a lost root password (set one, then “forget” it) and recover access without reinstalling the system.
Verify: successful root login afterward with a password you just set, and confirm the system isn’t stuck denying access to files due to a skipped SELinux step. -
A custom
.mountunit or fstab entry you write is deliberately broken (bad UUID, bad options — your choice). Reboot and get the system back to a normal login prompt, then fix the entry properly.
Verify: clean reboot afterward with no manual intervention needed.
Networking & Firewall & SSH
-
Configure a static IP, gateway, and DNS server on one interface using the RHEL-native tool — must survive a reboot.
Verify: reboot, thenip addr show <iface>andcat /etc/resolv.conf. -
A web server is listening on port 8080. Open it in the firewall persistently, confirm it’s reachable from another machine, then confirm the rule is still active after
firewall-cmd --reloadon its own (not just after your--add-portcommand).
Verify:firewall-cmd --list-portsbefore and after a manual--reload, plus an actual connection test withcurlorncfrom another host. -
Move sshd to a non-default port. It must actually be reachable on the new port from another machine — not just “sshd says it’s listening.”
Verify:ss -tlnp | grep sshdon the server, then a real SSH connection attempt from a different machine on the new port. If it fails, check all three layers this touches (there are three). -
Restrict SSH so
rootcannot log in directly at all, but a regular user can still log in andsudoto root.
Verify: attempt a directssh root@host(should fail) thenssh regularuser@hostfollowed bysudo -i(should succeed).
SELinux
-
Move your web server’s document root from the default location to
/web. Get it serving files again — DAC permissions are already correct, something else is blocking it.
Verify:curl localhostreturns your content,ls -Z /webshows the correct context, andausearch -m avc -ts recentshows no new denials after the fix. -
Put SELinux in permissive mode temporarily, reproduce a denial, then go back to enforcing — but figure out what the fix would have needed to be using the log from while it was permissive.
Verify:ausearch -m avc -ts recent(orsealert) shows the denial that occurred while permissive; you can state the exactsemanage/setseboolcommand that would have prevented it. -
A service needs to make an outbound network connection that its SELinux policy blocks by default. Allow it, persistently, without disabling SELinux and without writing a custom policy module.
Verify:getsebool <name>showson, reboot,getsebool <name>still showson.
Logging & Performance
-
Make the systemd journal persistent across reboots on a system where it currently isn’t.
Verify: note a specific log line, reboot, confirmjournalctl -b -1still shows it. -
Find every “Failed password” SSH attempt from the last 24 hours and report the count and the distinct source IPs involved, using only journal/log tools — no writing anything to a file first.
Verify: your one-line pipeline output vs. manually eyeballing the log. -
Apply a system tuning profile appropriate for a database server doing constant heavy I/O, and confirm it actually took effect (not just that you ran the command).
Verify:tuned-adm activeafter a reboot.
Software & Containers
-
Install a package, then find every file it put on the filesystem — not by guessing, by asking the package manager directly.
Verify: cross-check one or two of the listed files actually exist at those paths. -
Roll back a package to a specific earlier version already available in the local package cache, without a full
dnf history undoof unrelated transactions.
Verify: the installed version matches the one you targeted. -
Run a container from an image, publish a port, and make it start automatically on boot as a non-root user, surviving that user logging out.
Verify: reboot the VM with no active login session for that user, then confirm the container is running and reachable.
Text Processing (closed-book — this category is the real test of text-processing-and-searching)
-
From
/etc/passwd, list only accounts with UID ≥ 1000, sorted by UID, showing just username and UID. -
Count how many
.logfiles exist anywhere under/var/log, recursively, in one command. -
Given a directory of mixed files, find every file larger than 50MB that hasn’t been modified in over 30 days, and list their sizes and paths without deleting anything yet.
-
From an access log, produce the 5 most frequently occurring source IPs, most frequent first, in a single pipeline.
-
Strip a config file down to only its real, active settings — no comment lines, no blank lines — without modifying the original file.
A full mixed drill (closest thing to the real exam)
- Set a 45-minute timer. On a fresh VM snapshot: create a user with a group and sudo scoped to one specific command, partition and mount a second disk persistently at
/opt/data, open a custom application port in the firewall persistently, and make an SELinux boolean change survive a reboot. Reboot once at the end and confirm all four are still true in one pass — don’t check them one at a time as you go.
This last one is deliberately the format that matters most: multiple unrelated tasks, a hard time limit, and a single reboot at the end to catch anything that only “worked” temporarily.
Software engineering
Infrastructure & security
Computer science
Hardware & engineering