1. Home
  2. Security Hardening
  3. DISA STIG Oracle Linux 6 V1R18
  4. OL6-00-000019 – There must be no .rhosts or hosts.equiv files on the system – ‘~/.rhosts’

OL6-00-000019 – There must be no .rhosts or hosts.equiv files on the system – ‘~/.rhosts’

Details

Trust files are convenient, but when used in conjunction with the R-services, they can allow unauthenticated access to a system.

Solution

The files ‘/etc/hosts.equiv’ and ‘~/.rhosts’ (in each user’s home directory) list remote hosts and users that are trusted by the local system when using the rshd daemon. To remove these files, run the following command to delete them from any location.

# rm /etc/hosts.equiv

$ rm ~/.rhosts

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Configuration Management.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles