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

Re: Problemas al iniciar daemon de Fetchmail (Era: logs de fetchmail)



El Tue, 02 Mar 2010 14:33:41 -0500, Leonel Hernández Grandela escribió:

> pensando un poco por aca .. he hecho lo siguiente .. chown
> fetchmail:root /var/log/fetchmail/   para declarar el propietario del
> folder fetchmail a el usuario fetchmail que es  quien va a manejar el
> proceso ahora de todo .... entonces cuando trate de iniciar me dio el
> mismo error
> Starting mail retriever agent: fetchmailfetchmail: cannot open
> /var/log/fetchmail/fetchmail.log: Permission denied fetchmail:
> fetchmail: Cannot detach into background. Aborting. pero entonces me he
> fijado en el archivo fetchmail.log y el owner y grupo era root ..
> enrtonces lo cambie de nuevo .. asi chown fetchmail:root
> /var/log/fetchmail/*   y ya todo lo que ahi está pertenece al grupo root
> y propietario es fetchmail .. 

Así es como debe de estar y así es como dijiste que estaba, pillín ;-)

> ahora me pregunto rotará bien los logs!!
> bien .. tendre que sperar a las 00:00 a ver que sucede :) .. 

¿Has añadido lo que te comentaba en la rutina del logrotate del fetchmail?

> luego me
> sale otra pregunta .. el otr file fetchmail.log que se vaya a crear
> saldra con el owner fetchmail y grupo root !! pues antes de yo
> asignarselo no tenia grupo decia nogroup ;) ...

Eso lo debe gestionar fetchmail solo, y sí, creará los archivos de 
registro como usuario fecthmail y en el grupo de root. Si no lo hace, 
algo tienes mal :-)

stt005:/var/log# ls -l | grep fetchmail
-rw-r--r-- 1 fetchmail   root   582206 mar  2 20:42 fetchmail.log
-rw-r--r-- 1 fetchmail   root   517587 ene 27 14:49 fetchmail.log-20100127.gz
-rw-r--r-- 1 fetchmail   root    67116 feb  3 07:25 fetchmail.log-20100203.gz
-rw-r--r-- 1 fetchmail   root    68222 feb 10 06:39 fetchmail.log-20100210.gz
-rw-r--r-- 1 fetchmail   root    75502 feb 18 07:49 fetchmail.log-20100218.gz
-rw-r--r-- 1 fetchmail   root    74962 feb 26 07:23 fetchmail.log-20100226.gz

Saludos,

-- 
Camaleón


Reply to: