Package: acct
Version: 6.5.4-1
Severity: normal

I found many scripts logging under /var/log/foo/ tend to fail once
stupid admin like me kills this /var/log/foo directory by executing
"rm -rf *" in /var/log/.

The acct package has this problem. The /var/log/account/ directory are
created only by postinst.

                mkdir -p /var/log/account
                touch /var/log/account/pacct
                chmod 0640 /var/log/account/pacct*
                chown root:adm /var/log/account/pacct*

But /etc/cron.daily/acct does
-----
# Save log file
cd /var/log/account
-----
without checking existance.

what we need is following: 

-----
# Save log file
if [ ! -d /var/log/account ]; then
    mkdir -p /var/log/account
    touch /var/log/account/pacct
    chmod 0640 /var/log/account/pacct*
    chown root:adm /var/log/account/pacct*
fi
cd /var/log/account
-----

Osamu

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages acct depends on:
ii  dpkg                      1.15.7.1       Debian package management system
ii  install-info              4.13a.dfsg.1-5 Manage installed documentation in 
ii  libc6                     2.10.2-8       Embedded GNU C Library: Shared lib

acct recommends no packages.

acct suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to