Re: how do I make lsof be useful again in fc3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux