how do I make lsof be useful again in fc3?

Tomas Mraz tmraz at redhat.com
Fri Dec 10 08:31:51 UTC 2004


On Thu, 2004-12-09 at 23:57 -0800, Jamie Zawinski wrote:
> In FC3, lsof only seems to work properly if you are root.
> 
> For example: the "ssh-agent" process is running as "jwz" and has the
> file "/tmp/ssh-rZlWVC4461/agent.4461" open.
> 
> If I run "lsof -p `pidof ssh-agent`" as root, it shows me this; if I run
> it as jwz, it does not.  This is wrong, since all processes and files
> are owned by the same non-root user.
I can confirm this too and it seems to me to be a bug.

> I assume this is because of newly-paranoid permissions on
> /proc/*/fd (in FC3, those are all owned by root instead of the
> user running the process.)
Not all processes have these owned by root. I think it happens only on
such processes which changed it's uid from root during their lives.
The question is if this change was intentional and what was the reason
for it if yes.

-- 
Tomas Mraz <tmraz at redhat.com>




More information about the fedora-devel-list mailing list