SV-216362r603267_rule
V-216362
SRG-OS-000025
SOL-11.1-040450
CAT III
10
The root role is required for this action.
# pfedit /etc/ssh/sshd_config
Locate the line containing:
PrintLastLog no
and place a comment sign ("# ")at the beginning of the line or delete the line
# PrintLastLog no
Restart the ssh service
# pfexec svcadm restart svc:/network/ssh
Determine if last login will be printed for SSH users.
# grep PrintLastLog /etc/ssh/sshd_config
If PrintLastLog is found, not preceded with a "#" sign, and is set to "no", this is a finding.
PrintLastLog should either not exist (defaulting to yes) or exist and be set to yes.
V-216362
False
SOL-11.1-040450
Determine if last login will be printed for SSH users.
# grep PrintLastLog /etc/ssh/sshd_config
If PrintLastLog is found, not preceded with a "#" sign, and is set to "no", this is a finding.
PrintLastLog should either not exist (defaulting to yes) or exist and be set to yes.
M
4022