Puppet Class: almalinux_hardening::services::uninstall::rsh
- Defined in:
- manifests/services/uninstall/rsh.pp
Summary
Remove Rsh Trust FilesOverview
Puppet Module to perform AlmaLinux 8 OS Hardening with CIS benchmark. Copyright © 2022 Jonas Hügli
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'manifests/services/uninstall/rsh.pp', line 22
class almalinux_hardening::services::uninstall::rsh {
if $almalinux_hardening::enable_uninstall_rsh {
file { '/etc/hosts.equiv':
ensure => absent,
}
exec { 'rhosts':
path => '/usr/bin:/bin:/usr/sbin',
command => 'find / -name ".rhosts" -exec rm -f {} \;',
unless => 'find / -name ".rhosts" | wc -l | grep -q -E "^0$"',
}
}
}
|