All SLEM 5 local interactive user home directories must have mode 750 or less permissive.
Severity | Group ID | Group Title | Version | Rule ID | Date | STIG Version |
---|---|---|---|---|---|---|
medium | V-261291 | SRG-OS-000480-GPOS-00227 | SLEM-05-232030 | SV-261291r996352_rule | 2024-06-04 | 1 |
Description |
---|
Excessive permissions on local interactive user home directories may allow unauthorized access to user files by other users. |
ℹ️ Check |
---|
Note: This may miss interactive users that have been assigned a privileged User Identifier (UID). Evidence of interactive use may be obtained from a number of log files containing system logon information. Verify the assigned home directory of all SLEM 5 local interactive users has a mode of "750" or less permissive with the following command: > ls -ld $(awk -F: '($3>=1000)&&($7 !~ /nologin/){print $6}' /etc/passwd) -rwxr-x--- 1 smithj users 18 Mar 5 17:6 /home/smithj If home directories referenced in "/etc/passwd" do not have a mode of "750" or less permissive, this is a finding. |
✔️ Fix |
---|
Change the mode of SLEM 5 local interactive user's home directories to "750". To change the mode of a local interactive user's home directory, use the following command: Note: The example will be for the user "smithj". > sudo chmod 750 /home/smithj |