aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-10-17 20:23:46 +0200
committerintrigeri <intrigeri@boum.org>2010-10-17 20:23:46 +0200
commitbf9eb8ef613cc65c26eda754c8212b507fb8d9d6 (patch)
treeb6fc9692f75128dc4d6ef544f48d7969a4907964
parentef2e21a7644eb5eb6d31bad47076a33abb02801c (diff)
downloadpuppet-loginrecords-bf9eb8ef613cc65c26eda754c8212b507fb8d9d6.tar.gz
puppet-loginrecords-bf9eb8ef613cc65c26eda754c8212b507fb8d9d6.tar.bz2
Fix permissions on btmp and wtmp when re-creating these.
-rw-r--r--manifests/btmp.pp4
-rw-r--r--manifests/wtmp.pp4
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',
+ }
}