From: intrigeri Date: Sun, 17 Oct 2010 18:23:46 +0000 (+0200) Subject: Fix permissions on btmp and wtmp when re-creating these. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bf9eb8ef613cc65c26eda754c8212b507fb8d9d6;p=puppet-loginrecords.git Fix permissions on btmp and wtmp when re-creating these. --- 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', + } }