Ciccio *nix forums beginner
Joined: 09 May 2005
Posts: 19
|
Posted: Fri Jul 07, 2006 1:31 pm Post subject:
apache rotatelogs changes logs ownership to root.
|
|
|
Hi Folks,
On a Solaris 9 SPARC box I'm running Apache 1.3.31 as a non-root user
(say apache).
Also, I'm using the built-in rotatelogs to (yes!) rotate the apache
logs.
Problem is, all the logs handled by rotatelogs are now owned by user
root instead of user apache.
Do you know how to adjust apache configuration in order to get those
logs owned by my user apache?
Cheers
C |
|
Christian Schmidt *nix forums Guru Wannabe
Joined: 06 Feb 2005
Posts: 177
|
Posted: Fri Jul 07, 2006 2:28 pm Post subject:
Re: apache rotatelogs changes logs ownership to root.
|
|
|
Hello Ciccio,
Ciccio schrieb/wrote:
| Quote: | On a Solaris 9 SPARC box I'm running Apache 1.3.31 as a non-root user
(say apache).
Also, I'm using the built-in rotatelogs to (yes!) rotate the apache
logs.
|
These processes probably run with uid=0 privileges.
| Quote: | Problem is, all the logs handled by rotatelogs are now owned by user
root instead of user apache.
Do you know how to adjust apache configuration in order to get those
logs owned by my user apache?
|
That's the wrong approach IMO. Make sure that the log rotation is done
with the uid (and therefore with the orivileges) of the user your
apache runs as.
Regards,
Christian
--
Christian Schmidt | Germany | ChriSchmiLi@gmx.de
No HTML Mails, please!!
De eene hett 'n Rittergut, de annere ritt 'n Gitter rut. |
|