fuser -km gives shock!!

Mike Burger mburger at bubbanfriends.org
Mon Feb 19 12:11:52 UTC 2007


> On 2/18/07, Mike Burger <mburger at bubbanfriends.org> wrote:
>> > root can be accessing /home regardless of where root's home directory
>> > is mounted. Perhaps checking which processes you are about to kill
>> > before killing them would be helpful to avoid such surprises?
>>
>> The problem is that the man page for fuser, as pertains to the -k
>> option,
>> says:
>>
>> An fuser process never kills itself, but may kill other fuser processes.
>>
>> This appears to be incorrect on both FC5 and FC6...I've tried it on
>> both,
>> just this morning, and it kills the session/shell running the command as
>> well as everything else.
>
> I'm not really sure if this is a problem. When you kill off a whole
> bunch of root processes it isn't surprising there are some other
> processes caught in the crossfire.
>
> I'm guessing that /home in these cases is not a filesystem separate
> from / and that is probably the root cause of the problem.

And, were it not for the fact that when I ran it just against /home,
myself, on two systems where I specifically set up /home as a separate
filesystem, and it killed that fuser process and the shell running it, I'd
agree.

-- 
Mike Burger
http://www.bubbanfriends.org

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org

To be notified of updates to the web site, visit:

https://www.bubbanfriends.org/mailman/listinfo/site-update

or send a blank email message to:

site-update-subscribe at bubbanfriends.org




More information about the redhat-list mailing list