[opensuse] Apache 11.4 apache2 write logs as root?
Hello all, I have encountered an anomaly on apache2 on OpenSuSE 11.4 64 bit. All the logs file are written as root in /var/log/apache, but the configuration is the same as OpenSuSE 11.3.... what is changed? And another thing strange is another system, with OpenSuSE 11.3, it writes some logs as root, some other as wwwrun.www. Apache is running as wwwrun.www.... Any hint about this? I have tried already to copy all the configuration from the previous web server, and it still continues to write logs as root.root.... Cordially, Claudio Prono. -- -------------------------------------------------------------------------------- Claudio Prono OPST System Developer Gsm: +39-349-54.33.258 @PSS Srl Tel: +39-011-32.72.100 Via San Bernardino, 17 Fax: +39-011-32.46.497 10141 Torino - ITALY http://atpss.net/disclaimer -------------------------------------------------------------------------------- PGP Key - http://keys.atpss.net/c_prono.asc -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Claudio Prono wrote:
Hello all,
I have encountered an anomaly on apache2 on OpenSuSE 11.4 64 bit. All the logs file are written as root in /var/log/apache, but the configuration is the same as OpenSuSE 11.3.... what is changed?
Has anything changed in this respect? I have a webserver running on 11.1, logs are being written as root.
And another thing strange is another system, with OpenSuSE 11.3, it writes some logs as root, some other as wwwrun.www. Apache is running as wwwrun.www....
WHich logs are being written as wwwrun ? -- Per Jessen, Zürich (21.6°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Il 14/06/2011 13.05, Per Jessen ha scritto:
Claudio Prono wrote:
Hello all,
I have encountered an anomaly on apache2 on OpenSuSE 11.4 64 bit. All the logs file are written as root in /var/log/apache, but the configuration is the same as OpenSuSE 11.3.... what is changed? Has anything changed in this respect? I have a webserver running on 11.1, logs are being written as root.
And another thing strange is another system, with OpenSuSE 11.3, it writes some logs as root, some other as wwwrun.www. Apache is running as wwwrun.www.... WHich logs are being written as wwwrun ?
I have noticied now a strangeness.... all files with .log extension are wwwrun.www, all files with _log extension are root.root.... logrotate create empty files with wwwrun.www, so apache write with the same permissions... is it right? Cordially, Claudio Prono. -- -------------------------------------------------------------------------------- Claudio Prono OPST System Developer Gsm: +39-349-54.33.258 @PSS Srl Tel: +39-011-32.72.100 Via San Bernardino, 17 Fax: +39-011-32.46.497 10141 Torino - ITALY http://atpss.net/disclaimer -------------------------------------------------------------------------------- PGP Key - http://keys.atpss.net/c_prono.asc -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Claudio Prono wrote:
Il 14/06/2011 13.05, Per Jessen ha scritto:
Claudio Prono wrote:
Hello all,
I have encountered an anomaly on apache2 on OpenSuSE 11.4 64 bit. All the logs file are written as root in /var/log/apache, but the configuration is the same as OpenSuSE 11.3.... what is changed? Has anything changed in this respect? I have a webserver running on 11.1, logs are being written as root.
And another thing strange is another system, with OpenSuSE 11.3, it writes some logs as root, some other as wwwrun.www. Apache is running as wwwrun.www.... WHich logs are being written as wwwrun ?
I have noticied now a strangeness.... all files with .log extension are wwwrun.www, all files with _log extension are root.root.... logrotate create empty files with wwwrun.www, so apache write with the same permissions... is it right?
logrotate is configured with userif+group for creating a new logfile when the old one is archived. If logrotate creates new logfiles with wwwrun.www, apache will write to them without changing ownership. /Per -- Per Jessen, Zürich (23.9°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Il 14/06/2011 12.55, Claudio Prono ha scritto:
Hello all,
I have encountered an anomaly on apache2 on OpenSuSE 11.4 64 bit. All the logs file are written as root in /var/log/apache, but the configuration is the same as OpenSuSE 11.3.... what is changed? And another thing strange is another system, with OpenSuSE 11.3, it writes Sorry, a typo, the another system is also OpenSuSE 11.4, with OpenSuSE 11.3 no problems at all... some logs as root, some other as wwwrun.www. Apache is running as wwwrun.www....
Any hint about this? I have tried already to copy all the configuration from the previous web server, and it still continues to write logs as root.root....
Cordially,
Claudio Prono.
-- -------------------------------------------------------------------------------- Claudio Prono OPST System Developer Gsm: +39-349-54.33.258 @PSS Srl Tel: +39-011-32.72.100 Via San Bernardino, 17 Fax: +39-011-32.46.497 10141 Torino - ITALY http://atpss.net/disclaimer -------------------------------------------------------------------------------- PGP Key - http://keys.atpss.net/c_prono.asc -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
El 14/06/11 06:55, Claudio Prono escribió:
Any hint about this?
The server is started as root, it has to, in order to bind port 80, 443... as soon as it does so, it drops privileges. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Claudio Prono
-
Cristian Rodríguez
-
Per Jessen