Talk:Lsof

From LQWiki
Jump to navigation Jump to search

Excellent article - ThorstenStaerk 2006-08-17


I tried killing the fam process before I found out that stopping inetd was necessary. Killing fam did not not allow the umount to work.

Do you know a way to make this work with kill?


Hey, LionKimbro, you sure you have to be root to run lsof? I can run it as a user, it just isn't in my path. If I do:

$ /usr/sbin/lsof

I get a long list of results. --Snags 14:45, Aug 6, 2004 (EDT)

If it is in /usr/sbin you shouldn't be able to run it as a normal user - if your permissions are set up right. (sbin stands for superuser binaries after all.) Maybe your setup is atypical? Crazyeddie 16:07, Aug 6, 2004 (EDT)

Actually:

I can run lsof as non-root just fine.

But- remember the context: We're looking to find out why a CD-ROM wasn't ejecting.

lsof wouldn't let me see the processes using it when I was non-root. It ran correctly, but just returned that nothing was using the CDROM. When I became root, lsof did show me what processes were using it. (I think it was fam holding on to it, running as root...)

So, in my case, to get the full picture, I had to run as root.

-- User:LionKimbro

Right, right. I'll go make a note of that in the article. Crazyeddie 17:11, Aug 6, 2004 (EDT)