From owner-freebsd-questions Wed Nov 21 10:35:18 2001 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.magpage.com (trinity.magpage.com [216.155.0.8]) by hub.freebsd.org (Postfix) with ESMTP id A31D637B416 for ; Wed, 21 Nov 2001 10:35:13 -0800 (PST) Received: from magpage.com (poomba.magpage.com [216.155.24.136]) by trinity.magpage.com (8.11.6/8.11.3) with ESMTP id fALIZBP73500; Wed, 21 Nov 2001 13:35:11 -0500 (EST) Message-ID: <3BFBF3DE.3060306@magpage.com> Date: Wed, 21 Nov 2001 13:35:10 -0500 From: Daniel Frazier User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.5) Gecko/20011112 X-Accept-Language: en-us MIME-Version: 1.0 To: Jonathan Hilgeman Cc: "'freebsd-questions@freebsd.org'" Subject: Re: Log Out Other Users References: <5D90F61EB6FDD411836500508B137F1AA3F06C@mailsvr.ecx.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-RRT-Status: UNKNOWN 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 Jonathan Hilgeman wrote: > When I type "who" I get a list of about 4 users who are logged in via SSH. I > know some of them are old sessions that just timed out or something, so I > find the PIDs of the SSH processes, and kill those PIDs. However, sometimes > this doesn't do the trick. They disappear entirely from the process list, > but they continue to show up when I type who. Is there a better way to kill > users? > > - Jonathan > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > "shutdown -k" might do the trick, although this will result in all logins (except root) being disabled. "rm /var/run/nologin" will fix that. You also might want to look at /usr/ports/sysutils/slay. This will kick off a user and terminate any of that users' processes. I think it will only work on one user at a time, though... -- ---------------------------------------------------------------------- Daniel Frazier Tel: 302-239-5900 Ext. 231 Systems Administrator Fax: 302-239-3909 MAGPAGE, We Power the Internet WWW: http://www.magpage.com/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message