CertGrid CertGrid
Troubleshooting·Red Hat Certified System Administrator

Linux Permission Troubleshooting

The objective is diagnosis, not syntax. A real denial is created three directories above the file that cannot be read, and then found with `namei -l` - which prints the permissions of every component of a path at once and points straight at the one that blocks. The other three usual causes are ruled in and out the same way.

File Systems Guide 41 of 67 Intermediate

Written against the versions above. There are four things that deny access and only the first shows in `ls -l` on the file: the file's own mode, a directory in its path, an **ACL** (marked by a `+`), and the **SELinux label** (invisible without `-Z`). Checking them in that order is the whole method.

Every command on this page runs on RHCSA-A01.
Server NameIP AddressOSRolesCPURAMHDD
RHCSA-A01192.168.0.31RHEL 10.0 (Coughlan)Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

Before you start

  1. A denial with no obvious cause

  2. `namei -l` finds it in one command

  3. The other three suspects

  4. ACLs, and the `+` that is the only clue

Official sources