|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: jo jo (commander_chode
ihateclowns.com)Date: Thu May 02 2002 - 12:24:27 CDT
[demime could not interpret encoding binary - treating as plain text]
I'll take a look at it, appreciate the help.
chris
>Date: Thu, 2 May 2002 17:39:11 +0100 (BST)
> Re: WHO Command Question. "Stephen Marley" <stephen
openkast.com> <commander_chode
ihateclowns.com>Cc: <misc
openbsd.org>
>
>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
>
>--
>stephen
openkast.com
------------------------------------------------------------
Do you hate clowns? Get Free Email & Free Websites at http://www.ihateclowns.com
Buy anti-clown mugs, hats, mousepads, boxers, etc : http://store.ihateclowns.net
---------------------------------------------------------------------
Express yourself with a super cool email address from BigMailBox.com.
Hundreds of choices. It's free!
http://www.bigmailbox.com
---------------------------------------------------------------------
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]