Skip to content

Commit 9e0c4ba

Browse files
committed
(profile::ccs::home) handle EL8+ login.defs home dir perms
1 parent 0961f29 commit 9e0c4ba

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

site/profile/manifests/ccs/home.pp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
## rather than each having their own?
55
file_line { 'Change default home permissions':
66
path => '/etc/login.defs',
7-
match => '^UMASK ',
7+
match => '^UMASK\s',
88
line => 'UMASK 022',
99
}
10+
file_line { 'Change default home permissions for EL8+':
11+
path => '/etc/login.defs',
12+
match => '^HOME_MODEs',
13+
line => 'HOME_MODE 0755',
14+
append_on_no_match => false,
15+
}
1016
}

0 commit comments

Comments
 (0)