From owner-freebsd-questions Wed Nov 21 11:41:13 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mx0.ecxnetwork.net (mx0.ecxnetwork.net [208.144.33.2]) by hub.freebsd.org (Postfix) with ESMTP id CEAA437B621 for ; Wed, 21 Nov 2001 11:40:26 -0800 (PST) Received: from mailsvr.ecx.com ([208.144.33.135]) by mx0.ecxnetwork.net (8.11.3/8.11.3) with ESMTP id fALJG3p08807; Wed, 21 Nov 2001 11:16:03 -0800 (PST) (envelope-from JHilgeman@ecx.com) Received: by mailsvr.ecx.com with Internet Mail Service (5.5.2653.19) id ; Wed, 21 Nov 2001 11:38:47 -0800 Message-ID: <5D90F61EB6FDD411836500508B137F1AA3F06E@mailsvr.ecx.com> From: Jonathan Hilgeman To: "'Daniel Frazier'" Cc: "'freebsd-questions@freebsd.org'" Subject: RE: Log Out Other Users Date: Wed, 21 Nov 2001 11:38:43 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" 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 Hmmm, I installed slay, but I still have a user in "who" that has no processes whatsoever. The "who" list doesn't seem to be stuck, either. If I log out, I can see that it has updated the "who" list. I don't really want to go to shutdown -k - that seems a bit desperate and this is a production box. - Jonathan -----Original Message----- From: Daniel Frazier [mailto:dfrazier@magpage.com] Sent: Wednesday, November 21, 2001 10:35 AM To: Jonathan Hilgeman Cc: 'freebsd-questions@freebsd.org' Subject: Re: Log Out Other Users 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