UCF STIG Viewer Logo

All shell files must have mode 0755 or less permissive.


Overview

Finding ID Version Rule ID IA Controls Severity
V-227696 GEN002220 SV-227696r603266_rule High
Description
Shells with world/group-write permissions give the ability to maliciously modify the shell to obtain unauthorized access.
STIG Date
Solaris 10 X86 Security Technical Implementation Guide 2022-09-07

Details

Check Text ( C-29858r488669_chk )
If /etc/shells exists, check the group ownership of each shell referenced.
# cat /etc/shells | xargs -n1 ls -lL

Otherwise, check any shells found on the system.
# find / -name "*sh" | xargs -n1 ls -lL

If a shell has a mode more permissive than 0755, this is a finding.
Fix Text (F-29846r488670_fix)
Change the mode of the shell.
# chmod 0755