SV-204434r603261_rule
V-204434
SRG-OS-000480-GPOS-00229
RHEL-07-010460
CAT II
10
Configure the operating system to not allow users to override environment variables to the SSH daemon.
Edit the "/etc/ssh/sshd_config" file to uncomment or add the line for "PermitUserEnvironment" keyword and set the value to "no":
PermitUserEnvironment no
The SSH service must be restarted for changes to take effect.
Verify the operating system does not allow users to override environment variables to the SSH daemon.
Check for the value of the "PermitUserEnvironment" keyword with the following command:
# grep -i permituserenvironment /etc/ssh/sshd_config
PermitUserEnvironment no
If the "PermitUserEnvironment" keyword is not set to "no", is missing, or is commented out, this is a finding.
V-204434
False
RHEL-07-010460
Verify the operating system does not allow users to override environment variables to the SSH daemon.
Check for the value of the "PermitUserEnvironment" keyword with the following command:
# grep -i permituserenvironment /etc/ssh/sshd_config
PermitUserEnvironment no
If the "PermitUserEnvironment" keyword is not set to "no", is missing, or is commented out, this is a finding.
M
2899