1.1.26 Ensure all world-writable directories are group-owned.

Information

The operating system must be configured so that all world-writable directories are group-owned by root, sys, bin, or an application group.

Rationale:

If a world-writable directory has the sticky bit set and is not group-owned by a privileged Group Identifier (GID), unauthorized users may be able to modify files created by others.

The only authorized public directories are those temporary directories supplied with the system or those designed to be temporary file repositories. The setting is normally reserved for directories used by the system and by users for temporary file storage, (e.g., /tmp), and for directories requiring global read/write access.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Referring to the list obatined in in the Audit above, change the group of the world-writable directories to root with the following command:

# chgrp root <directory>

See Also

https://workbench.cisecurity.org/files/3636

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CCI|CCI-000366, CSCv7|14.6, Rule-ID|SV-204487r744106_rule, STIG-ID|RHEL-07-021030

Plugin: Unix

Control ID: 671b0c9cf676e310929ff3d8c44c20364c1239dd6224fbff4825fea056d6df0b