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

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.0Practice node (graded) - spare /dev/sda2 Core4 GB50 GB + 15 GB

This guide includes

Use this because it is not a separate objective and two others quietly assume it. This matters because the collaborative directory and /tmp both depend on bits that never appear in the usual rwx explanation.

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