]> gitweb.fluxo.info Git - puppet-loginrecords.git/commitdiff
Fix permissions on btmp and wtmp when re-creating these.
authorintrigeri <intrigeri@boum.org>
Sun, 17 Oct 2010 18:23:46 +0000 (20:23 +0200)
committerintrigeri <intrigeri@boum.org>
Sun, 17 Oct 2010 18:23:46 +0000 (20:23 +0200)
manifests/btmp.pp
manifests/wtmp.pp

index 4d406546668ab1f4dca2841254bcc1c802e9e70b..aa9c94585f042d85b2b7d1c4d9a961889cb38c5a 100644 (file)
@@ -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',
+    }
 }
index 36cea0eabd9b25ea2407d9616c309660b111cfd2..9988ef55e6c4f8f5e301baa316dd6e8fc2c9968c 100644 (file)
@@ -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',
+    }
 }