Skip to content
ATO Pathways
Log In
Overview
Search
Catalogs
SCAP
OSCAL
Catalogs
Profiles
Documents
References
Knowledge Base
Platform Documentation
Compliance Dictionary
Platform Changelog
About
Catalogs
XCCDF
Guide to the Secure Configuration of Red Hat Enterprise Linux 9
System Settings
File Permissions and Masks
Verify Permissions on Important Files and Directories
Verify that All World-Writable Directories Have Sticky Bits Set
Verify that All World-Writable Directories Have Sticky Bits Set
An XCCDF Rule
Details
Profiles
Prose
Verify that All World-Writable Directories Have Sticky Bits Set
Medium Severity
When the so-called 'sticky bit' is set on a directory, only the owner of a given file may remove that file from the directory. Without the sticky bit, any user with write access to a directory may remove any file in the directory. Setting the sticky bit prevents users from removing each other's files. In cases where there is no reason for a directory to be world-writable, a better solution is to remove that permission rather than to set the sticky bit. However, if a directory is used by a particular application, consult that application's documentation instead of blindly changing modes.
To set the sticky bit on a world-writable directory
DIR
, run the following command:
$ sudo chmod +t
DIR