Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 88490 invoked from network); 29 Jun 2009 11:00:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jun 2009 11:00:41 -0000 Received: (qmail 49668 invoked by uid 500); 29 Jun 2009 11:00:49 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 49647 invoked by uid 500); 29 Jun 2009 11:00:49 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 49638 invoked by uid 99); 29 Jun 2009 11:00:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2009 11:00:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [210.193.32.119] (HELO pacific.merceworld.com) (210.193.32.119) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2009 11:00:39 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by pacific.merceworld.com (8.13.8/8.13.8) with ESMTP id n5TB0F2l000916 for ; Mon, 29 Jun 2009 16:30:16 +0530 X-Virus-Scanned: amavisd-new at merceworld.com Received: from pacific.merceworld.com ([127.0.0.1]) by localhost (pacific.merceworld.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id avMcPIB39nIi for ; Mon, 29 Jun 2009 16:30:14 +0530 (IST) Received: from pacific.merceworld.com (localhost.localdomain [127.0.0.1]) by pacific.merceworld.com (8.13.8/8.13.8) with ESMTP id n5TB0Asr000869 for ; Mon, 29 Jun 2009 16:30:11 +0530 Received: (from uucp@localhost) by pacific.merceworld.com (8.13.8/8.13.8/Submit) with UUCP id n5TB0ACA000868 for users@httpd.apache.org; Mon, 29 Jun 2009 16:30:10 +0530 Received: from apps1.starcomsoftware.com ([127.0.0.1]) by localhost (apps1.starcomsoftware.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25676-03-2; Mon, 29 Jun 2009 16:25:23 +0530 (IST) Message-ID: <4A489E3F.6000308@merceworld.com> Date: Mon, 29 Jun 2009 16:28:07 +0530 From: Prashant Keshvani User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: users@httpd.apache.org References: <941240.37373.qm@web8402.mail.in.yahoo.com> In-Reply-To: <941240.37373.qm@web8402.mail.in.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (pacific.merceworld.com [127.0.0.1]); Mon, 29 Jun 2009 16:30:11 +0530 (IST) X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] unable to access /proc//fd directory in Apache Hi, 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 bit. Regards, Prashant Keshvani Merce Technologies Mumbai 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//fd directory list all the files which are beeing used by > the process. > > But in my case /proc/ owner is apache but /proc//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//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 for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org