www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Summerfield <sum...@ami.comlau>
Subject general/8056: Permissions problem in /var/run
Date Fri, 20 Jul 2001 17:28:38 GMT

>Number:         8056
>Category:       general
>Synopsis:       Permissions problem in /var/run
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Jul 20 10:30:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     summer@ami.comlau
>Release:        1.3.19
>Organization:
apache
>Environment:
Linux dugite 2.4.6 #2 Sun Jul 8 10:59:14 WST 2001 i586 unknown

I'm running Red Hat Linux 7.1, and the version is the one I installed when I upgraded RHL
6.2 a few hours ago.

>Description:
I'm trying to start apache under my own account - that is, I don't have root privilege. Apache
is trying to open/create files in /var before its read the configuration file.

Here's what happens:

[summer@dugite summer]$ strace -e trace=open,read,write -f -f /usr/sbin/httpd -d http -f http/conf/httpd.conf
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320J\0"..., 1024) = 1024
open("/lib/libcrypt.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\21"..., 1024) = 1024
open("/lib/libdb-3.1.so", O_RDONLY)     = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\364"..., 1024) = 1024
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\314\37"..., 1024) = 1024
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0H\277\1"..., 1024) = 1024
open("/var/run/httpd.mm.1910.sem", O_RDWR|O_CREAT, 0600) = -1 EACCES (Permission denied)
write(2, "Ouch! ap_mm_create(1048576, \"/va"..., 61Ouch! ap_mm_create(1048576, "/var/run/httpd.mm.1910")
failed
) = 61
write(2, "Error: MM: mm:core: failed to op"..., 101Error: MM: mm:core: failed to open semaphore
file (Permission denied): OS: No such file or directory
) = 101
[summer@dugite summer]$

there's the additional point that I don't see a directive relevant to semaphores anyway.

>How-To-Repeat:
I was going to say create a configuration file, but as it's not read, that isn't needed.

Just run it as an ordinary user seems enough from here.
>Fix:
I'm not really a C programmer; I can't really do more than state the obvious.
>Release-Note:
>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 make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Mime
View raw message