UCF STIG Viewer Logo

The macOS system must be configured with the sticky bit set on all public directories.


Overview

Finding ID Version Rule ID IA Controls Severity
V-214904 AOSX-13-001120 SV-214904r609363_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.13 Security Technical Implementation Guide 2021-11-19

Details

Check Text ( C-16104r397284_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-16102r397285_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 {} \;