Hallo zusammen,

ich kämpfe mit logrotate, da ich möchte, dass das mail.log nach dem Rotieren Schreibrechte für die Gruppe mail hat, damit fetchmail da rein loggen kann, den ich in diese Gruppe getan habe.

Dazu habe ich:

[EMAIL PROTECTED]:/etc/logrotate.d# cat fetchmail
/var/log/mail.log {
        daily
        missingok
        rotate 14
        compress
        notifempty
        copytruncate
        create 660 root mail
[EMAIL PROTECTED]:/etc/logrotate.d#

angelegt, die create-Anweisung scheint aber nicht zu klappen:

[EMAIL PROTECTED]:/etc# la /var/log/mail.log
-rw-r-----  1 root adm 342818 2005-08-31 22:47 /var/log/mail.log
[EMAIL PROTECTED]:/etc#

Ich vermute es liegt an der logrotate.conf, da die Dateien unter logrotate.d/ nur Logs aus Paketen sind, und keine Systemlogs wie syslog oder die mail.* - die werden wohl wo anders behandelt, nur wo und wie?

Hier ist die logrotate.conf, vielleicht weiß ja jemand Rat?

[EMAIL PROTECTED]:/etc# cat logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

# system-specific logs may be configured here
[EMAIL PROTECTED]:/etc#

Viele Grüße
André


--
Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject "unsubscribe". Probleme? Mail an [EMAIL PROTECTED] (engl)

Antwort per Email an