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. --- README | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'README') diff --git a/README b/README index 777aae7..32b8678 100644 --- a/README +++ b/README @@ -20,15 +20,21 @@ You can set the following parameters for the loginrecords class. If you just include the class loginrecords this will disable all loginlogs. -$disable_btmp, $disable_utmp, $disable_wtmp -------------------------------------------- +$disable_btmp, $disable_wtmp +---------------------------- -Default: /var/log/btmp, /var/run/utmp and /var/log/wtmp are ensured to -be absent. +Default: /var/log/btmp and /var/log/wtmp are ensured to be absent. These variables, when set to a false, non-empty value, have these files created and their logging enabled again. +$protect_utmp +------------- + +Default: /var/run/utmp is ensured to be present, but chmod'ed 660. +When set to a false, non-empty value, /var/run/utmp is ensured to be +present, and chmod'ed 664. + $disable_faillog ---------------- -- cgit v1.2.3