From 9e0c4ba6ba9dda9cbc271883095c5c69dc6701e3 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 4 Jun 2024 11:26:27 -0700 Subject: [PATCH] (profile::ccs::home) handle EL8+ login.defs home dir perms --- site/profile/manifests/ccs/home.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/site/profile/manifests/ccs/home.pp b/site/profile/manifests/ccs/home.pp index d215ef53ff..fba649a8bf 100644 --- a/site/profile/manifests/ccs/home.pp +++ b/site/profile/manifests/ccs/home.pp @@ -4,7 +4,13 @@ ## rather than each having their own? file_line { 'Change default home permissions': path => '/etc/login.defs', - match => '^UMASK ', + match => '^UMASK\s', line => 'UMASK 022', } + file_line { 'Change default home permissions for EL8+': + path => '/etc/login.defs', + match => '^HOME_MODEs', + line => 'HOME_MODE 0755', + append_on_no_match => false, + } }