From 1138f154f9cb0985076159dec34546eb9f677017 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sat, 26 Feb 2011 00:01:16 +0100 Subject: 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. --- manifests/utmp/unprotect.pp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 manifests/utmp/unprotect.pp (limited to 'manifests/utmp/unprotect.pp') diff --git a/manifests/utmp/unprotect.pp b/manifests/utmp/unprotect.pp new file mode 100644 index 0000000..9da7517 --- /dev/null +++ b/manifests/utmp/unprotect.pp @@ -0,0 +1,8 @@ +class loginrecords::utmp::unprotect( + $utmp_file = '/var/run/utmp' +){ + file{$utmp_file: + ensure => 'present', + owner => 'root', group => 'utmp', mode => 664; + } +} -- cgit v1.2.3