OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Stephen Marley (stephenopenkast.com)
Date: Thu May 02 2002 - 11:39:11 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    jo jo said:
    > [demime could not interpret encoding binary - treating as plain text]
    > Just something I have a quick question about. I am running ftp off my
    > OpenBSD 3.0 box at home. Everyonce and a while i'll go in to kill off
    > a connection if a friend is using too much bandwidth. I've noticed
    > that sometimes if I accidentally do a 'kill -9 PID' instead of a 'kill
    > -HUP PID', like i should, that the 'WHO' command reports back that the
    > ftp connection is still logged on. Although the process has been
    > terminated there is no way I am aware of to reset the information that
    > 'WHO' is receiving, other than restarting the machine.

    The information for currently logged on users is stored in /var/run/utmp. You
    could write a program to edit it, or simply truncate it with ">
    /var/run/utmp"(cat /dev/null >/var/run/utmp in the braindead csh).

    Previous logins are stored in /var/log/wtmp (viewed with last or who) so you
    have much the same problem there.

    Get into the habit of using -HUP instead of -1 and -KILL instead of -9 and
    alsohave a look at "skill" in the ports/sysutils for killing by process name,
    user, ttyor pid.

    -- 
    stephen
    

    -- stephenopenkast.com