niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
· nixdoc.net · man pages · Linux HOWTOs · FreeBSD Tips · Forums
navigation Forum index » *nix » Solaris
apache rotatelogs changes logs ownership to root.
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Ciccio
*nix forums beginner


Joined: 09 May 2005
Posts: 19

PostPosted: Fri Jul 07, 2006 1:31 pm    Post subject: apache rotatelogs changes logs ownership to root. Reply with quote

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
Back to top
Christian Schmidt
*nix forums Guru Wannabe


Joined: 06 Feb 2005
Posts: 177

PostPosted: Fri Jul 07, 2006 2:28 pm    Post subject: Re: apache rotatelogs changes logs ownership to root. Reply with quote

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.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Sep 09, 2010 11:41 am | All times are GMT
navigation Forum index » *nix » Solaris
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Root relay issue Johnson, S Postfix 4 Thu Jul 20, 2006 6:50 pm
No new posts goxall logs ranjithno1@gmail.com AIX 0 Thu Jul 20, 2006 6:48 pm
No new posts Help me Interpret these Logs DB_BOY AIX 1 Thu Jul 20, 2006 8:45 am
No new posts freebsd with apache, php and mysql Yves Savoie FreeBSD 5 Wed Jul 19, 2006 11:39 pm
No new posts How to rotate logs in Squid Mehmet, Levent (Accenture Squid 13 Wed Jul 19, 2006 3:46 pm

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum |  email marketing service
 
Sponsors: Shower Enclosures | Iphone 3g | ID badge | Breast Enlargement | Fridges
Privacy Policy
[ Time: 0.0723s ][ Queries: 17 (0.0474s) ][ GZIP on - Debug on ]