OL08-00-010550 - OL 8 must not permit direct logons to the root account using remote access via SSH.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Although the communications channel may be encrypted, an additional layer of security is gained by extending the policy of not logging on directly as root. In addition, logging on with a user-specific account provides individual accountability of actions performed on the system.

Solution

Configure OL 8 to stop users from logging on remotely as the 'root' user via SSH.

Edit the appropriate '/etc/ssh/sshd_config' file to uncomment or add the line for the 'PermitRootLogin' keyword and set its value to 'no':

PermitRootLogin no

The SSH daemon must be restarted for the changes to take effect. To restart the SSH daemon, run the following command:

$ sudo systemctl restart sshd.service

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_8_V1R4_STIG.zip

Item Details

References: CAT|II, CCI|CCI-000770, Rule-ID|SV-248613r858578_rule, STIG-ID|OL08-00-010550, Vuln-ID|V-248613

Plugin: Unix

Control ID: 3b94af04fe1c14eb5c2a863157a77c84e96df75d5958764ea1f1aced730223dd