RE: secure file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for all the answers. I didn't know about the crontab file in
/etc, or the /etc/cron.daily for that matter. I was only looking in
/var/spool. Another didn't RTFM error.

David 


Hi Kirk,

Logrotation is handled by logrotate. 
/etc/logrotate.d
root@XXXXXX [/etc/logrotate.d]# ls
./   acpid  bfd   exim   mgetty  named  psacct  samba  squid   tux      
vsftpd.log
../  apf    cups  httpd  mysql   ppp    rpm     snmpd  syslog  up2date
root@XXXXXX [/etc/logrotate.d]# cat syslog
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler
/var/log/boot.log /var/log/cron 
{
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2>
/dev/null || 
true
    endscript
}

The cron may be in /etc/cron.daily/logrotate

-Anup

On Thursday 11 January 2007 00:31, kalinix wrote:
> On Tue, 2007-01-09 at 13:06 -0500, Kirkwood, David A. wrote:
> > I am using the RHEL4 disribution, update 4.
> >
> > >Kirkwood, David A. wrote:
> > >> What causes the secure logs to be rotated as in /var/log/secure?
I
> >
> > don't
> >
> > >> see any entries in crontab.
> > >
> > >How log rotation is handled varies between distributions, so you
need
> > >to say which distribution you are using (or ask on a list for that
> > >particular distribution).
> > >
> > >If you're using newsyslog (not to be confused with syslog-ng), that
> > >has built-in log rotation.
> > >
> > >--
> > >Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx>
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe
linux-admin" in
> > the body of a message to majordomo@xxxxxxxxxxxxxxx
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
> Here you are:
>
>
> /etc/cron.daily/logrotate
> /etc/logrotate.conf
> and man logrotate
>
>
>
>
>
> Calin Cosma
>
> =================================================
> Q: Why did the tachyon cross the road? A: Because it was on the other
> side.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin"
in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
-Axl
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux