CertGrid CertGrid
Hands-on Lab·Red Hat Certified System Administrator

Special Permissions: SUID, SGID and Sticky Bit

Not a separate objective, and assumed by two that are: the collaborative directory in the groups objective needs SGID, and diagnosing permissions needs you to read an `s` or a `t` where you expected an `x`. All three bits are set here and their effects measured with real users.

File Systems Guide 42 of 67 Intermediate

Written against the versions above. The three bits share a fourth octal digit: **4** SUID, **2** SGID, **1** sticky. `chmod 2770` is SGID plus `rwxrwx---`. In symbolic form they are `u+s`, `g+s` and `+t`.

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. SUID, and the two you already rely on

  2. SGID on a directory

  3. The sticky bit, and why `/tmp` works

Official sources