Bug#864242: acct monthly cron fails if /var/log/wtmp rotation has not happened

Filippo Giunchedi filippo at debian.org
Mon Jun 5 15:48:28 UTC 2017


Package: acct
Version: 6.6.2-1
Severity: normal

Hi,
on a freshly installed stretch system in case of no /var/log/wtmp.1 the acct
monthly cronjob isn't happy and generates "cron spam":

# bash -x /etc/cron.monthly/acct
+ LOGROTATE=/etc/cron.daily/logrotate
+ test -x /usr/sbin/accton
++ date
+ echo 'Login accounting for the month ended Mon Jun  5 15:42:39 UTC 2017:'
+ echo
+ '[' -f /etc/cron.daily/logrotate ']'
+ '[' -x /usr/sbin/logrotate ']'
+ '[' -f /var/log/wtmp.1 ']'
+ '[' -f /var/log/wtmp.1.gz ']'
+ ac -f '' -p
+ sort -nr -k2
couldn't open file '': No such file or directory
+ echo
+ last -f ''
last: cannot open : No such file or directory
+ '[' -n '' ']'
+ chown root:adm /var/log/wtmp.report
+ chmod 640 /var/log/wtmp.report


-- System Information:
Debian Release: 8.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Pkg-security-team mailing list