From owner-freebsd-questions Mon Jun 17 19: 4:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ariel.ucs.unimelb.edu.au (ariel.ucs.unimelb.edu.au [128.250.20.3]) by hub.freebsd.org (Postfix) with ESMTP id EDEE537B421 for ; Mon, 17 Jun 2002 19:04:07 -0700 (PDT) Received: from SARDIS.iprimus.com.au (ws18-60.its.unimelb.edu.au [128.250.18.60]) by ariel.ucs.unimelb.edu.au (8.12.3/8.12.3) with ESMTP id g5I246W4010184 for ; Tue, 18 Jun 2002 12:04:06 +1000 (EST) Message-Id: <5.1.1.6.0.20020618120406.0209e4a0@mail.iprimus.com.au> X-Sender: f3z@mail.iprimus.com.au X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Tue, 18 Jun 2002 12:04:15 +1000 To: freebsd-questions@freebsd.org From: Jacob Rhoden Subject: Re: kicking users Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 05:45 PM 17/06/2002 -0700, you wrote: > > kill -9 `ps -aux | awk '$1 ~/username/ {print $2}'` > >Where I need to do this most often is for SSH users whose sessions >time out due to connectivity problems. I kill their processes and >shell, but the login still just sits there for a really long time >(hours? days? .. in 'who' anyway) before it goes away. As far as I know, that is a bug in FreeBSD, I asked the exact same question 2 weeks ago, and was told that you just login lots to make the user disapear, ie if in who it says pty3, login 4 times, and the pty3 entry will be overwritten when the 4th user logs in. Regards, jacobRhoden To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message