AOSX-12-001120 - The OS X system must be configured with the sticky bit set on all public directories.

Information

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.

Solution

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 {} ;

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_OS_X_10-12_V1R6_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3, CAT|II, CCI|CCI-000366, Rule-ID|SV-90813r1_rule, STIG-ID|AOSX-12-001120, Vuln-ID|V-76125

Plugin: Unix

Control ID: 07cbbaeb3fb620658d5751b12b1b8e7123edbaab696861af9425b061b3f78318