Skip to content

Commit

Permalink
(profile::ccs::home) handle EL8+ login.defs home dir perms
Browse files Browse the repository at this point in the history
  • Loading branch information
glennmorris committed Jun 4, 2024
1 parent 0961f29 commit f1e2c3e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion site/profile/manifests/ccs/home.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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_MODE\s',
line => 'HOME_MODE 0755',
append_on_no_match => false,
}
}

0 comments on commit f1e2c3e

Please sign in to comment.