ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

SUID, SGID, the sticky bit and a shared directory

Lesson 3.47 minIntermediateDecember 1, 2026

Sign in to read this lesson

A classic RHCSA task: "create a directory where group members work together: new files must belong to the group, and nobody may delete someone else's file". In this lesson we review the three special bits in the RHEL context and solve this task step by step.

What you will learn

  • SUID (4000) runs a program as the file's owner; SGID (2000) on a directory gives new files the directory's group; sticky (1000) lets only the owner delete.
  • The shared-directory recipe: chgrp group, chmod 2770 (or 3770 with sticky).
  • In ls -l you see s (with x), S (without x — usually a mistake), t/T.
  • Find SUID/SGID files with find / -perm /6000 -type f — a security audit.
  • For a group member to see a new group, a fresh login or newgrp is needed.

The lesson has 5 key points, an explanation and 5 questions. It opens with a package.