Package: acct
Version: 6.5.4-1
Severity: normal

[~]# sa -a
couldn't open file '/var/account/pacct': No such file or directory
[~]# lastcomm
couldn't open file '/var/account/pacct': No such file or directory

[~]# ls -l /var/account/pacct
ls: cannot access /var/account/pacct: No such file or directory
[~]# ls -l /var/log/account/pacct
-rw-r----- 1 root adm 1522624 Apr 27 23:54 /var/log/account/pacct


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

Kernel: Linux 2.6.33 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=hr_HR (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash

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

acct recommends no packages.

acct suggests no packages.

-- Configuration Files:
/etc/cron.daily/acct changed:
if [ -x /usr/sbin/accton ]
then
    cd /var/log/account
    /etc/init.d/acct stop >/dev/null
    sa -s
    savelog -g adm -m 0640 -u root -c 30 /var/log/account/pacct >/dev/null
    /etc/init.d/acct start >/dev/null
fi
exit 0

/etc/cron.monthly/acct changed:
exit 0
LOGROTATE="/etc/cron.daily/logrotate"
test -x /usr/sbin/accton || exit 0
echo "Login accounting for the month ended `date`:" > /var/log/wtmp.report
echo >> /var/log/wtmp.report
if [ -f "${LOGROTATE}" ] && [ -x /usr/sbin/logrotate ]
then
        # make sure wtmp.1 exists
        if [ -f /var/log/wtmp.1 ]
        then
                LOGFILE="/var/log/wtmp.1"
        fi
                if [ -f /var/log/wtmp.1.gz ]
        then
                LOGFILE2="`tempfile`"
        fi
                if [ -n "${LOGFILE}" ] && [ -n "${LOGFILE2}" ]
        then
                ac -f "${LOGFILE2}" -f "${LOGFILE}" -p | sort -nr -k2 >> 
/var/log/wtmp.report
                echo >> /var/log/wtmp.report
                last -f "${LOGFILE2}" >> /var/log/wtmp.report
        elif [ -n "${LOGFILE}" ] && [ -z "${LOGFILE2}" ]
        then
                ac -f "${LOGFILE}" -p | sort -nr -k2 >> /var/log/wtmp.report
                echo >> /var/log/wtmp.report
                last -f "${LOGFILE}" >> /var/log/wtmp.report
        fi
                rm -f "${LOGFILE2}"
else
        ac -p | sort -nr -k2 >> /var/log/wtmp.report
        echo >> /var/log/wtmp.report
        last >> /var/log/wtmp.report
fi
chown root:adm /var/log/wtmp.report
chmod 640 /var/log/wtmp.report


-- debconf information:
  acct/kernel_mismatch: false



-- 
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