LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-21-2009, 08:36 PM   #1
ChrisRHS
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
lsof and permission issues


Hello everyone!

I am hoping someone can help me out here. I've got a strange issue on one of my servers, that I am having trouble tracking down. It started with a higher than normal load this morning, so, I started tracing things out. I wanted to look an apache process that seemed to be hanging around for too long. So, I typed :

Code:
lsof -p pid
And all I got was things of this nature:

Code:
httpd 10625 nobody 175 unknown /proc/10625/fd/175 (readlink: Permission denied)
Now, I am logged in as the super user, and I am baffled as to why I am getting permission errors. I've looked at this on a couple of other servers, and it works as is should. This system us running CentOS 5.4, with cPanel.

Has anyone run across this before and may be able to add some input?

Thanks
Chris

Last edited by ChrisRHS; 12-21-2009 at 08:38 PM.
 
Old 12-22-2009, 04:07 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
I never encountered this problem, but looking at the lsof FAQ maybe this is relevant to your issue:
Code:
10.5.2  What does ``(readlink: xxx)'' mean in the NAME column of
	Linux files?

	When lsof tried to convert the /proc/<PID>/fd path, reported in
	the NAME column, to its full and more meaningful path, the
	readlink(2) system call used to do the conversion failed.  The
	readlink(2) failure message is ``xxx''.

	This situation usually occurs if the lsof process lacks
	permission to readlink(2) some part of the path -- e.g., the
	lsof executable lacks root permission, or lsof is attempting to
	stat(2) a path on an NFS device mounted with the root_squash
	option.

	The message can be suppressed with lsof's ``-w'' option.
In any case, as root can you change to /proc/10625/fd directory and issue the command
Code:
readlink 175
from there? I mean, does it still give a permission denied error?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission issues Zeno McDohl Linux - Newbie 1 01-15-2008 02:17 AM
lsof permission champak Programming 4 11-26-2007 02:57 AM
permission issues CiscoGeek Linux - Newbie 4 07-30-2006 08:27 AM
Permission Issues turbo_acura Linux - Software 3 02-20-2006 04:24 PM
permission issues. neuroX Linux - Software 7 02-17-2004 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration