SV-281073r1165574_rule
V-281073
SRG-OS-000138-GPOS-00069
RHEL-10-400280
CAT II
10
Configure RHEL 10 so that all world-writable directories have the sticky bit set to prevent unauthorized and unintended information transferred via shared system resources.
Set the sticky bit on all world-writable directories using the following command (replace "[World-Writable Directory]" with any directory path missing the sticky bit):
$ chmod a+t [World-Writable Directory]
Verify RHEL 10 is configured so that all world-writable directories have the sticky bit set with the following command:
$ sudo find / -type d \( -perm -0002 -a ! -perm -1000 \) -print 2>/dev/null
drwxrwxrwt 7 root root 4096 Jul 26 11:19 /tmp
If any of the returned directories are world-writable and do not have the sticky bit set, this is a finding.
V-281073
False
RHEL-10-400280
Verify RHEL 10 is configured so that all world-writable directories have the sticky bit set with the following command:
$ sudo find / -type d \( -perm -0002 -a ! -perm -1000 \) -print 2>/dev/null
drwxrwxrwt 7 root root 4096 Jul 26 11:19 /tmp
If any of the returned directories are world-writable and do not have the sticky bit set, this is a finding.
M
5733