-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vincent Jamart wrote:
| J'utilise postfix et pflogsumm.pl pour recuperer les stats de mon server
| SMTP postfix. Ayant defini les acces fichiers en "paranoid" dans Yast, mes
| fichiers /var/log/mail* sont en rw/r/r avec root:root en ownership. Mon
| pflogsumm est execute a partir d'un CGI execute par www:www-data, donc ca
| ne lit pas mes logs...

Hmm... je ne vois pas où est le problème, si c'est rw-r--r-- (= 
world-readable). Je suppose que tu
veux dire rw-r-----

| Une méthode plus clean q'un violent chmod +r /var/log/mail* après chaque
| logrotate?

En fait ça n'a rien à avoir avec "paranoid" et le script "permissions".

C'est effectivement logrotate. Extrait de /etc/logrotate.d/syslog:

/var/log/mail /var/log/mail.info /var/log/mail.warn /var/log/mail.err {
~   ...
~   create 640 root root
~   ...
}

Pourquoi ne pas simplement changer cette ligne en
~   create 644 root root
?

Je suppose que ton CGI a seulement besoin de pouvoir lire les logs...

- --
~  -o) Pascal Bleser     http://linux01.gwdg.de/~pbleser/
~  /\\ <[EMAIL PROTECTED]>       <[EMAIL PROTECTED]>
~ _\_v The more things change, the more they stay insane.
==================================================================
FOSDEM 2005 - Free&OpenSource Software Developers European Meeting
| 26 & 27 Feb 2005 in Brussels - attending is free, come and meet!
==================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFBydtur3NMWliFcXcRAgusAKCO9IjVNztiegI1joGBry2dugQrxQCfYmha
ukNRrY+3UtnSf3qJ74YKHNU=
=TeNP
-----END PGP SIGNATURE-----
_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/linux@lists.unixtech.be
IRC: chat.unixtech.be:6667 - #unixtech

Répondre à