6.2.11 Ensure users' .netrc Files are not group or world accessible

Information

While the system administrator can establish secure permissions for users'netrc files, the users can easily override these.

netrc files may contain unencrypted passwords that may be used to attack other systems.

Note: While the complete removal of .netrc files is recommended if any are required on the system secure permissions must be applied.

Solution

Making global modifications to users' files without alerting the user community can result in unexpected outages and unhappy users. Therefore, it is recommended that a monitoring policy be established to report usernetrc file permissions and determine the action to be taken in accordance with site policy.

See Also

https://workbench.cisecurity.org/benchmarks/8498