Real-Time RHCSA Interview Questions (2027)
40 real-time RHCSA interview questions written as work tickets: users, LVM, swap, autofs, SELinux 403 fixes, firewalld, cron, boot recovery.
Real-time RHCSA interview questions are written like work tickets: "add a 5 GB volume for the app team", "the website returns 403 after a content move", "this user must expire on 31 March". Interviewers want the exact commands, the check that proves the change worked, and how it survives a reboot. This page has 40 such tickets with answers.
Our main page, 120 RHCSA interview questions and answers, follows the EX200 objectives one by one. Freshers who need concepts first should read RHCSA interview questions for freshers. This page is different: each question is a request a junior Linux administrator receives on the job, answered as you would work it at the console. Commands were checked against Red Hat Enterprise Linux documentation and man pages in November 2026.
Key takeaways
- Answer every ticket in three parts: do it, verify it, make it persistent.
- Storage tickets (new volume, grow a filesystem, add swap) appear in almost every RHCSA-level interview.
- SELinux tickets are usually a wrong file context, a missing port label or a boolean. The fix is
semanageplusrestoreconorsetsebool -P, not disabling SELinux. - User tickets test aging, expiry, groups and sudo rules in
/etc/sudoers.d/. - Read the logs before changing anything:
journalctl,/var/log/secureandausearchfor SELinux denials.
How to answer a real-time ticket
| Step | What you say | Example |
|---|---|---|
| 1. Clarify | Confirm size, names, owner, deadline | "Which volume group, and which mount point?" |
| 2. Do | Give the commands | lvcreate, mkfs.xfs |
| 3. Verify | Show it works | df -h, curl, id |
| 4. Persist | Survive a reboot | /etc/fstab, enable, --permanent, -P |
| 5. Record | Note the change | Update the ticket with what changed |
Real-time tickets for freshers
1. Ticket: create user ravi with UID 2001 and add him to the devteam group.
groupadd devteam
useradd -u 2001 -G devteam ravi
passwd ravi
id ravi
The id output confirms the UID and group membership.
2. Ticket: contractor account temp1 must stop working on 31 March 2027.
usermod -e 2027-03-31 temp1
chage -l temp1
chage -l shows the account expiry date.
3. Ticket: force ravi to change his password every 90 days.
chage -M 90 ravi. For new users by default, set PASS_MAX_DAYS 90 in /etc/login.defs; it does not change existing accounts.
4. Ticket: create a service account backup that cannot log in.
useradd -r -s /sbin/nologin backup. -r creates a system account with a UID from the system range.
5. Ticket: give the devteam group permission to restart httpd only.
%devteam ALL=(root) /usr/bin/systemctl restart httpd
Put this in /etc/sudoers.d/devteam and check syntax with visudo -cf /etc/sudoers.d/devteam.
6. Ticket: set up /shared/dev so all devteam members can edit each other's files.
mkdir -p /shared/dev
chgrp devteam /shared/dev
chmod 2770 /shared/dev
The SGID bit (the 2) makes new files belong to devteam. Users may also need umask 002 so group write is kept.
7. Ticket: user priya needs read access to one file owned by another team.
setfacl -m u:priya:r /data/report.csv, then verify with getfacl /data/report.csv. An ACL avoids changing the file's group for everyone.
8. Ticket: install httpd, start it and make it start at boot.
dnf install -y httpd
systemctl enable --now httpd
systemctl is-enabled httpd; systemctl is-active httpd
9. Ticket: open the web server to the network.
firewall-cmd --permanent --add-service=http --add-service=https
firewall-cmd --reload
firewall-cmd --list-services
10. Ticket: set the server's hostname to web01.example.com.
hostnamectl set-hostname web01.example.com, then check with hostnamectl.
11. Ticket: configure a static IP on ens3.
nmcli con mod ens3 ipv4.method manual ipv4.addresses 10.0.0.15/24 \
ipv4.gateway 10.0.0.1 ipv4.dns "10.0.0.2 10.0.0.3"
nmcli con up ens3
ip addr show ens3
12. Ticket: point the server at the company's internal package repository.
[internal-baseos]
name=Internal BaseOS
baseurl=http://repo.example.com/rhel10/BaseOS
enabled=1
gpgcheck=1
gpgkey=http://repo.example.com/keys/RPM-GPG-KEY-internal
Save as /etc/yum.repos.d/internal.repo and check with dnf repolist. Keep GPG checking on unless told otherwise.
13. Ticket: archive /etc to a compressed file for a backup.
tar -czf /backup/etc-$(date +%F).tar.gz /etc. List contents with tar -tzf to verify.
14. Ticket: find all files owned by olduser before deleting the account.
find / -user olduser -not -path "/proc/*" 2>/dev/null. Reassign or archive them, then userdel -r olduser if the home directory should go too.
15. Ticket: copy a config file to another server securely.
scp /etc/app.conf admin@web02:/tmp/ or rsync -av for directories. Both use SSH, so keys or passwords apply as usual.
Tickets for 2 to 5 years of experience
16. Ticket: the app team needs a 5 GB filesystem at /appdata from volume group vgdata.
lvcreate -n lvapp -L 5G vgdata
mkfs.xfs /dev/vgdata/lvapp
mkdir /appdata
echo "/dev/vgdata/lvapp /appdata xfs defaults 0 0" >> /etc/fstab
systemctl daemon-reload
mount -a && df -h /appdata
mount -a proves the fstab line works before any reboot.
17. Ticket: /appdata is full, grow it by 2 GB.
lvextend -r -L +2G /dev/vgdata/lvapp. The -r option resizes the filesystem too. Without it, run xfs_growfs /appdata afterwards.
18. Ticket: the volume group has no free space. Add a new disk /dev/sdc.
pvcreate /dev/sdc
vgextend vgdata /dev/sdc
vgs vgdata
19. Ticket: add 2 GB of swap without a reboot.
lvcreate -n lvswap -L 2G vgdata
mkswap /dev/vgdata/lvswap
swapon /dev/vgdata/lvswap
echo "/dev/vgdata/lvswap none swap defaults 0 0" >> /etc/fstab
swapon --show
20. Ticket: a new disk partition must mount by UUID.
Get it with blkid /dev/sdb1 and use UUID=... in /etc/fstab. Device names such as /dev/sdb can change between boots; UUIDs do not.
21. Ticket: mount the NFS export nfs01:/exports/home on demand under /remote.
# /etc/auto.master.d/remote.autofs
/remote /etc/auto.remote
# /etc/auto.remote
home -rw,sync nfs01:/exports/home
Then dnf install autofs if needed, systemctl enable --now autofs, and test with ls /remote/home.
22. Ticket: website returns 403 after content moved to /web.
Permissions may be fine and SELinux may be blocking. Check with ls -Zd /web and ausearch -m AVC -ts recent. Fix the label permanently:
semanage fcontext -a -t httpd_sys_content_t "/web(/.*)?"
restorecon -Rv /web
23. Ticket: run httpd on port 8081.
semanage port -a -t http_port_t -p tcp 8081
firewall-cmd --permanent --add-port=8081/tcp && firewall-cmd --reload
Change Listen 8081 in the httpd config and restart. Without the SELinux port label, httpd fails to bind.
24. Ticket: the web app must connect to a remote database and is being denied.
Check the booleans with getsebool -a | grep httpd. Set the right one permanently: setsebool -P httpd_can_network_connect_db on.
25. Ticket: run a cleanup script every day at 02:30.
Add 30 2 * * * /usr/local/bin/cleanup.sh with crontab -e for the right user, or create a systemd service and timer with OnCalendar=*-*-* 02:30:00 and systemctl enable --now cleanup.timer.
26. Ticket: make the system journal survive reboots.
Set Storage=persistent in /etc/systemd/journald.conf (or create /var/log/journal), then systemctl restart systemd-journald. Check with journalctl --list-boots.
27. Ticket: server time is drifting.
Point chrony at the company time source with a server or pool line in /etc/chrony.conf, then systemctl restart chronyd and verify with chronyc sources -v. Set the time zone with timedatectl set-timezone Asia/Kolkata.
28. Ticket: boot this server to text mode by default.
systemctl set-default multi-user.target, verified with systemctl get-default.
29. Ticket: a runaway process is using all CPU.
Find it with top (sort by CPU), check what it is with ps -fp PID, then lower its priority with renice 19 -p PID or stop it with kill PID. Escalate before killing anything owned by an application team.
30. Ticket: apply the recommended tuning profile for a virtual guest.
tuned-adm recommend shows the suggestion; apply it with tuned-adm profile virtual-guest and check with tuned-adm active.
31. Ticket: write a script that reports users with UID 1000 or higher.
#!/bin/bash
awk -F: '$3 >= 1000 && $1 != "nobody" {print $1, $3}' /etc/passwd
Make it executable with chmod +x. Interviewers often follow up by asking you to accept a minimum UID as $1.
32. Ticket: disable root login over SSH.
Set PermitRootLogin no in /etc/ssh/sshd_config or a file in /etc/ssh/sshd_config.d/, test with sshd -t, then systemctl reload sshd. Keep a second session open in case you lock yourself out.
Senior-level tickets
33. Ticket: the root password is unknown and nobody has sudo.
Use console access, interrupt GRUB and follow Red Hat's documented root password reset procedure for that release (for example booting with rd.break and using chroot), then make sure SELinux relabels with touch /.autorelabel. Record it as a security event.
34. Ticket: after a kernel update the server will not boot.
Choose the previous kernel in the GRUB menu, check what failed with journalctl -b -1, and set the working kernel as default with grubby --set-default while you investigate.
35. Ticket: a new hire's account works on the console but SSH login fails.
Check /var/log/secure or journalctl -u sshd. Common causes are AllowUsers or AllowGroups in sshd config, wrong permissions on ~/.ssh (must be 700) or authorized_keys (600), or a wrong SELinux context on a non-standard home path.
36. Ticket: reduce what a compromised web server could reach.
Keep SELinux enforcing, keep booleans such as httpd_can_network_connect off unless needed, open only required firewall ports, run the service as its own user, and remove unused packages.
Scenario tickets
37. Ticket: after a reboot, /appdata is missing and the server is in emergency mode.
The fstab line is wrong or the device is missing. Log in at the emergency prompt, check lsblk and blkid, fix the line, run systemctl daemon-reload and mount -a, then reboot. Consider nofail for non-critical mounts.
38. Ticket: dnf install fails with a GPG error.
The repository's key is missing or wrong. Import the correct key with rpm --import from a trusted source, or fix gpgkey= in the repo file. Do not set gpgcheck=0 to make the error go away.
39. Ticket: users cannot create files in /shared/dev although they are in devteam.
Group membership applies at login, so they may need to log out and back in. Check id user, directory permissions with ls -ld, and any ACL with getfacl.
40. Ticket: a service starts manually but not after reboot.
It is started but not enabled, or it starts before a dependency such as the network or a mount is ready. Run systemctl enable, check systemctl list-dependencies, and add After= and Requires= or RequiresMountsFor= in a drop-in made with systemctl edit.
Practise like it is a shift
Build two RHEL VMs and work through these tickets in order, rebooting after each group to check persistence. Time yourself; the exam is timed too. When you can do them without notes, move to scenario-based RHCSA questions, then read our RHEL 10 RHCSA exam guide. If you plan to automate these tasks next, the RHCE interview questions cover Ansible. Our RHCSA training in Pune runs ticket-style labs in the Kharadi classroom and live online.
FAQ
What are real-time RHCSA interview questions?
Questions written like work tickets, such as creating a volume or fixing a 403 error, where you give the commands, verify the result and make it persistent.
How should I answer a ticket-style Linux interview question?
Clarify the details, give the commands, show how you would verify the change, explain how it survives a reboot, and say how you would record it.
Why does my web server return 403 after moving content?
Usually the new directory has the wrong SELinux file context. Add a rule with semanage fcontext and apply it with restorecon.
How do I grow an LVM filesystem on RHEL?
Run lvextend with the -r option so the logical volume and the filesystem grow together. For XFS without -r, run xfs_growfs on the mount point afterwards.
How do I make a firewall rule permanent?
Add the --permanent flag to firewall-cmd and then run firewall-cmd --reload to apply it to the running configuration.
Are these questions useful for the EX200 exam?
Yes. The tickets use the same skills as the exam objectives, and practising verification and persistence helps in the performance-based exam.
References
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Angry
0
Sad
0
Wow
0