by richardroi » Wed Jan 16, 2013 2:24 pm
I ran /usr/sbin/logrotate -dv /etc/logrotate.conf and got this;
rotating pattern: /var/log/asterisk/full after 1 days (5 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/asterisk/full
error: "/var/log/asterisk" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
log /var/log/asterisk/full does not exist -- skipping
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/asterisk/queue_log after 1 days (5 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/asterisk/queue_log
error: "/var/log/asterisk" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
log does not need rotating
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/asterisk/event_log after 1 days (5 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/asterisk/event_log
error: "/var/log/asterisk" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
log does not need rotating
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/asterisk/messages after 1 days (5 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/asterisk/messages
error: "/var/log/asterisk" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
log does not need rotating
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/asterisk/h323_log after 1 days (5 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/asterisk/h323_log
error: "/var/log/asterisk" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
log /var/log/asterisk/h323_log does not exist -- skipping
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/asterisk/cdr-csv/Master.csv after 1 days (5 rotations)
empty log files are rotated, old logs are removed
considering log /var/log/asterisk/cdr-csv/Master.csv
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/atftpd/atftp.log 4194304 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/atftpd/atftp.log
error: "/var/log/atftpd" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
log /var/log/atftpd/atftp.log does not exist -- skipping
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/mcelog 2097152 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/mcelog
log does not need rotating
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/mysql/mysqld.log after 1 days (3 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/mysql/mysqld.log
log does not need rotating
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/net-snmpd.log 1048576 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/net-snmpd.log
log /var/log/net-snmpd.log does not exist -- skipping
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/ntp 2097152 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/ntp
log does not need rotating
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/rsyncd.log 1048576 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/rsyncd.log
log /var/log/rsyncd.log does not exist -- skipping
rotating pattern: /var/log/snapper.log 10485760 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/snapper.log
log /var/log/snapper.log does not exist -- skipping
rotating pattern: /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages /var/log/firewall /var/log/acpid /var/log/NetworkManager 4194304 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/warn
log does not need rotating
considering log /var/log/messages
log does not need rotating
considering log /var/log/allmessages
log /var/log/allmessages does not exist -- skipping
considering log /var/log/localmessages
log does not need rotating
considering log /var/log/firewall
log does not need rotating
considering log /var/log/acpid
log does not need rotating
considering log /var/log/NetworkManager
log does not need rotating
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/mail /var/log/mail.info /var/log/mail.warn /var/log/mail.err 4194304 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/mail
log does not need rotating
considering log /var/log/mail.info
log does not need rotating
considering log /var/log/mail.warn
log does not need rotating
considering log /var/log/mail.err
log does not need rotating
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/news/news.crit /var/log/news/news.err /var/log/news/news.notice 4194304 bytes (99 rotations)
empty log files are not rotated, old logs are removed
switching euid to 9 and egid to 13
considering log /var/log/news/news.crit
log does not need rotating
considering log /var/log/news/news.err
log does not need rotating
considering log /var/log/news/news.notice
log does not need rotating
not running postrotate script, since no logs were rotated
switching euid to 0 and egid to 0
rotating pattern: /var/log/vsftpd.log 1048576 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/vsftpd.log
log /var/log/vsftpd.log does not exist -- skipping
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/wtmp /var/log/btmp 409600 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/wtmp
log does not need rotating
considering log /var/log/btmp
log does not need rotating
rotating pattern: /var/log/xinetd.log 2097152 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/xinetd.log
log /var/log/xinetd.log does not exist -- skipping
not running postrotate script, since no logs were rotated
rotating pattern: /var/log/zypp/history 10485760 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/zypp/history
log /var/log/zypp/history does not exist -- skipping
rotating pattern: /var/log/zypp-refresh.log 10485760 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/zypp-refresh.log
log /var/log/zypp-refresh.log does not exist -- skipping
rotating pattern: /var/log/zypper.log 10485760 bytes (99 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/zypper.log
log /var/log/zypper.log does not exist -- skipping
I ran /usr/sbin/logrotate -f /etc/logrotate.conf and got this error;
error: "/var/log/asterisk" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
error: "/var/log/asterisk" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
error: destination /var/log/asterisk/queue_log-20130117 already exists, skipping rotation
error: "/var/log/asterisk" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
error: destination /var/log/asterisk/event_log-20130117 already exists, skipping rotation
error: "/var/log/asterisk" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
error: destination /var/log/asterisk/messages-20130117 already exists, skipping rotation
error: "/var/log/asterisk" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
error: "/var/log/atftpd" has insecure permissions. It must be owned and be writable by root only to avoid security issues. Please fix the directory permissions or set the "su" directive in the config file.
Any advice?
ViciBox v.5.0.2-130807 | BUILD: 130809-1410 | SVN Version: 2019 | Asterisk: 1.8.23-vici
64bit Single Server/ ISO Preload Install
Inbound/Blended