diff options
author | intrigeri <intrigeri@boum.org> | 2010-10-17 20:23:46 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-10-17 20:23:46 +0200 |
commit | bf9eb8ef613cc65c26eda754c8212b507fb8d9d6 (patch) | |
tree | b6fc9692f75128dc4d6ef544f48d7969a4907964 | |
parent | ef2e21a7644eb5eb6d31bad47076a33abb02801c (diff) | |
download | puppet-loginrecords-bf9eb8ef613cc65c26eda754c8212b507fb8d9d6.tar.gz puppet-loginrecords-bf9eb8ef613cc65c26eda754c8212b507fb8d9d6.tar.bz2 |
Fix permissions on btmp and wtmp when re-creating these.
-rw-r--r-- | manifests/btmp.pp | 4 | ||||
-rw-r--r-- | manifests/wtmp.pp | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/manifests/btmp.pp b/manifests/btmp.pp index 4d40654..aa9c945 100644 --- a/manifests/btmp.pp +++ b/manifests/btmp.pp @@ -3,5 +3,7 @@ class loginrecords::btmp::disable { } class loginrecords::btmp::enable { - file { "$btmp_file": ensure => 'present' } + file { "$btmp_file": + ensure => 'present', mode => 660, owner => 'root', group => 'utmp', + } } diff --git a/manifests/wtmp.pp b/manifests/wtmp.pp index 36cea0e..9988ef5 100644 --- a/manifests/wtmp.pp +++ b/manifests/wtmp.pp @@ -3,5 +3,7 @@ class loginrecords::wtmp::disable { } class loginrecords::wtmp::enable { - file { "$wtmp_file": ensure => 'present' } + file { "$wtmp_file": + ensure => 'present', mode => 664, owner => 'root', group => 'utmp', + } } |