Hands-on Lab·Red Hat Certified System Administrator
Privileged Access with sudo
One objective, asked constantly. Everything here is done with files in `/etc/sudoers.d` rather than by editing `/etc/sudoers`, and the guide ends by breaking a rule on purpose - which turns out not to fail the way anyone expects.
Users and Groups Guide 20 of 67 Intermediate
- OSRHEL 10.0 (Coughlan)
- Kernel6.12.0-55.9.1.el10_0
- dnf4.20.0
- Flatpak1.16.0
- TimeAbout 17 min
- Reviewed23 August 2026
Written against the versions above. Files in `/etc/sudoers.d` must be mode **0440** and owned by root. sudo ignores a world-writable file, and - captured below - warns about it rather than failing, so the symptom is a rule that silently does not apply.
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| RHCSA-A01 | 192.168.0.31 | RHEL 10.0 (Coughlan) | Practice node (graded) - spare /dev/sda | 2 Core | 4 GB | 50 GB + 15 GB |
Before you start
- A sudo-capable account.
- The session creates a user and drop-in files, and removes them all.
-
How sudo is granted on Red Hat
-
A user with no privileges
-
Granting access with a drop-in file
-
Granting only specific commands
-
A typo does not fail safe
-
Group rules, and file permissions that void them