On my Ubuntu 10.04 server, "anacron" is sending error emails daily:
Subject: Anacron job 'cron.daily' on xyz.com /etc/cron.daily/logrotate: /etc/init.d/apache2: 235: cannot open /dev/console: Permission denied /etc/init.d/apache2: 235: cannot open /dev/console: Permission denied /etc/cron.daily/sysklogd: /etc/init.d/sysklogd: 157: cannot open /dev/console: Permission denied /etc/init.d/sysklogd: 157: cannot open /dev/console: Permission denied
"anacron" is started every morning at 7:30am from /etc/cron.d/anacron
and /dev/console looks OK.
# ls -l /dev/console crw------- 1 root tty 5, 1 May 24 2010 /dev/console
Does anyone else running Ubuntu 10.04 have experience resolving this problem?
The puzzling thing is I have an almost identical setup running on Ubuntu 9.10, which does not cause these error messages.
Googling found someone else with the identical problem, but no solution:
EDIT - In response to a comment, I am showing that /etc/init.d/anacron is a symbolic link to upstart-job
# ls -l /etc/init.d/anacron lrwxrwxrwx 1 root root 21 Jan 16 09:05 /etc/init.d/anacron -> /lib/init/upstart-job
EDIT - Looking inside /etc/init.d/sysklogd and /etc/default/syslogd it appears that it might run as the user syslog instead of root. could this be the problem? If so, what would be the fix?
thanks in advance for any help,