httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prashant Keshvani <>
Subject Re: [users@httpd] unable to access /proc/<pid>/fd directory in Apache
Date Mon, 29 Jun 2009 10:58:07 GMT
         I think it is possible to run sudo lsof right? this will run 
lsof as a superuser. we can
configure sudo to not ask passwd when running this command. another 
option is a setuid
Prashant Keshvani
Merce Technologies

Anuradha wrote:
> Hi All,
> In apache I want to  find the list of process which are accessing the 
> file.
> I am using the lsof command with popen system call.
> For each process with pid a directory will be created in /proc. In 
> /proc/<pid>/fd directory list all the files which are beeing used by 
> the process.
> But in my case /proc/<pid> owner is apache  but /proc/<pid>/fd owner 
> is root with read permission only to owner i.e root.
> As a result my apache module is not able to access the /proc/<pid>/fd 
> directory to check process which are holding particula file handler say X.
> Does any one has an idea of access those file from apache.
> Thanks,
> A.
> ------------------------------------------------------------------------
> Love Cricket? Check out live scores, photos, video highlights and 
> more. Click here 
> <*>. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message