1.156 SOL-11.1-070010

Information

The sticky bit must be set on all world writable directories.

GROUP ID: V-216417
RULE ID: SV-216417r959010

Files in directories that have had the "sticky bit" enabled can only be deleted by users that have both write permissions for the directory in which the file resides, as well as ownership of the file or directory, or have sufficient privileges. As this prevents users from overwriting each others' files, whether it be accidental or malicious, it is generally appropriate for most world-writable directories (e.g., /tmp).

Solution

The root role is required.

Ensure that the "sticky bit" is set on any directories identified during the check steps.

# chmod +t [directory name]

See Also

https://workbench.cisecurity.org/benchmarks/23765