Puppet Class: almalinux_hardening::services::ssh::permissions

Defined in:
manifests/services/ssh/permissions.pp

Summary

- Group ownership Verify Group Who Owns SSH Server config file

Overview

Puppet Module to perform AlmaLinux 8 OS Hardening with CIS benchmark. Copyright © 2022 Jonas Hügli

Examples:

include almalinux_hardening::services::ssh::permissions


33
34
35
36
37
38
39
40
41
42
43
# File 'manifests/services/ssh/permissions.pp', line 33

class almalinux_hardening::services::ssh::permissions {
  if $almalinux_hardening::enable_ssh_permissions {
    file { '/etc/ssh/sshd_config':
      ensure  => file,
      recurse => false,
      owner   => 'root',
      group   => 'root',
      mode    => '0600'
    }
  }
}