Really SOLVED: world viewable /var/log/mail.info

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Sep 14 12:40:44 EEST 2006


On 2006-09-14 12:03, "d.a.glynos" <glynos at storm.cs.unipi.gr> wrote:
> On Thu, 14 Sep 2006, Christos Ricudis wrote:
> > > Την 14/9/2006, Giorgos Keramidas <keramida at ceid.upatras.gr> έγραψε:
> > >
> > > <brisidia>
> 
> Prin arxiseis na vrizeis 3eka8arise sto mualo sou 3 pramata:
> 
> a) De xrhsimopoioun ola ta services th syslog(3). Auto shmainei oti
> paragontai sto /var/log logs apo services pou mono ekeina 3eroun
> na ta diaxeirizontai (p.x. kapoia ap'auta mporei na xreiazontai kill -1
> otan ginetai to rotation tou log).

Kserw paidare :P

Hint: gi ayto sta "obsolete" leitoyrgika, to newsyslog(8) pou kanei th
douleia tou logrotate exei options na:

    * Ftiaxnei to owner:group twn rotated & new log files

    * Ftiaxnei ta permissions apo ta rotated & new log files

    * Krataei N palia log files

    * Kanei rotate me bash megethos, wra, hmeromhnia, xrono, klp klp.

    * Kanei compression me gzip, bzip2 h zip(1)

kai... epeidh *auto* theleis:

    * Stelnei custom X signal se kapoio Y process pou yparxei se Z pid-file

<flamebait>
  <p>Sou kanei san feature set?  An nai, giati exeis akoma Linux?</p>
</flamebait>

Prin brisw, exw kati _poly_ sygkekrimeno sto nou mou, apla sto 99% twn
periptwsewn auto to sygkekrimeno to exei psyliastei mono o Rikoudhs,
ante sto 95% ki o Iatrou me to Mperedhma!

> b) Gia ta parapanw services, kanoume register scripts sto logrotate.
> Omws to logrotate den einai meros ths vasikhs dianomhs tou Debian. Se
> ena stripped down systhma mporei na mhn einai egkatesthmeno.

E nai, giati poios exase thn ennoia tou "base system" gia na th brei to
Linux.  Katalabes twra giati ebala <brisidia/> tags?  Kake an8rwpe, pou
amesws psaxneis na breis logo na tsantisteis, epeidh esteila o kahmenos
ena mikro flamebait :P




More information about the Linux-greek-users mailing list