UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The sticky bit must be set on all public directories.


Overview

Finding ID Version Rule ID IA Controls Severity
V-67717 AOSX-11-001120 SV-82207r1_rule Medium
Description
The sticky bit must be set on all public directories, as it prevents users with write access to the directory from deleting or renaming files that belong to other users inside it.
STIG Date
Apple OS X 10.11 Security Technical Implementation Guide 2017-01-05

Details

Check Text ( C-68283r1_chk )
Run the following command to view all world-writable directories that do not have the "sticky bit" set:

/usr/bin/sudo /usr/bin/find / -type d \( -perm -0002 -a ! -perm -1000 \)

If anything is returned, this is a finding.
Fix Text (F-73831r1_fix)
Run the following command to set the "sticky bit" on all world-writable directories:

/usr/bin/sudo /usr/bin/find / -type d \( -perm -0002 -a ! -perm -1000 \) -exec chmod +t {} \;