how do I make lsof be useful again in fc3?

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

 



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 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.)

How do I fix it?

"Log in as root" is not a good answer, because I need to do this sort of
thing from various scripts that are run non-interactively (and not as
root.)

-- 
Jamie Zawinski
jwz@xxxxxxx             http://www.jwz.org/
jwz@xxxxxxxxxxxxx       http://www.dnalounge.com/


[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