RHEL-09-232240 - All RHEL 9 world-writable directories must be owned by root, sys, bin, or an application user.

Information

If a world-writable directory is not owned by root, sys, bin, or an application user identifier (UID), 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.

Satisfies: SRG-OS-000480-GPOS-00227, SRG-OS-000138-GPOS-00069

Solution

Configure all public directories to be owned by root or a system account to prevent unauthorized and unintended information transferred via shared system resources.

Set the owner of all public directories as root or a system account using the command, replace '[Public Directory]' with any directory path not owned by root or a system account:

$ sudo chown root [Public Directory]

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_9_V2R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|CM-6b., 800-53|SC-4, CAT|II, CCI|CCI-000366, CCI|CCI-001090, Rule-ID|SV-257928r991589_rule, STIG-ID|RHEL-09-232240, Vuln-ID|V-257928

Plugin: Unix

Control ID: 22dd6d3ccc660f2e1e0dd61f509637c81a1751a793e650746f30b1683edef8b5