aboutsummaryrefslogtreecommitdiff
path: root/manifests/utmp/protect.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2011-02-26 00:01:16 +0100
committerintrigeri <intrigeri@boum.org>2011-02-26 00:05:23 +0100
commit1138f154f9cb0985076159dec34546eb9f677017 (patch)
tree6d09fd1d167a6d043ca8c7035642ceefefbb7523 /manifests/utmp/protect.pp
parentf35c84dc309a09ed60b56d37a206c7c59ab6f354 (diff)
downloadpuppet-loginrecords-1138f154f9cb0985076159dec34546eb9f677017.tar.gz
puppet-loginrecords-1138f154f9cb0985076159dec34546eb9f677017.tar.bz2
Chmod /var/run/utmp 640 instead of removing it.
Quoting utmp(5): "Unlike various other systems, where utmp logging can be disabled by removing the file, utmp must always exist on Linux." Moreover, removing this file breaks some of Puppet's functionality.
Diffstat (limited to 'manifests/utmp/protect.pp')
-rw-r--r--manifests/utmp/protect.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/utmp/protect.pp b/manifests/utmp/protect.pp
new file mode 100644
index 0000000..166df5e
--- /dev/null
+++ b/manifests/utmp/protect.pp
@@ -0,0 +1,5 @@
+class loginrecords::utmp::protect inherits loginrecords::utmp::unprotect {
+ File[$utmp_file]{
+ mode => 660,
+ }
+}