www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From david ford <da...@kalifornia.com>
Subject general/1974: unable to create/update ScriptLog if the dir/file path is not owned by apache
Date Sat, 21 Mar 1998 14:46:23 GMT

>Number:         1974
>Category:       general
>Synopsis:       unable to create/update ScriptLog if the dir/file path is not owned by
apache
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Mar 21 06:50:00 PST 1998
>Last-Modified:
>Originator:     david@kalifornia.com
>Organization:
apache
>Release:        1.3.b5
>Environment:
linux 2.0, pgcc.
>Description:
'tis very simple.  this is the only log file i'm aware of that encounters this condition.

i have root owned dirs for apache.  i just realised why the ScriptLog directive never worked
on my machine.

apache runs as user 'httpd'.  i needed to make logs/ and logs/<file> owned by user 'httpd'

not too critical of a situation, more a matter of inconsistency as all other log files appear
to be created/updated as root.
>How-To-Repeat:
n/r
>Fix:
setuid(0) when creating/writing this logfile....i won't make a patch as this is probably a
one+one liner or close to it :).

-d
%0
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]




Mime
View raw message