If you grep for pts.45 for example that should give all the processes for that pts. If killing off the -ksh is not doing it there seems to be something more to this. How are they connecting to the server, what software are they using? If they are just telneting in then killing of the -ksh should kill their telnet session but if not a bit of detective work is needed for this. First find the time they logged in, then `ps -aef | grep telnetd` and find the telnet with the time of them logging in and kill that as well.
Tony. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tango Echo Sent: 08 July 2005 11:57 To: [email protected] Subject: RE: [newbie] How to disconnect users - force from console? Either I'm doing something wrong, or this version of AIX is completely different. I have tried killing off their shell process (ksh) as well as all other related processes. However, even though the user has no owned processes, it is still listed as logged on. I'm stumped now! Is there perhaps a command that disconnects by their tty such as pts/x? > -----Original Message----- > From: Tony S. Sykes [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 07, 2005 10:21 AM > To: [email protected] > Subject: RE: [newbie] How to disconnect users - force from console? > > > Mikkel is correct, killing off their shell session will kill > them off. I have to do it all the time on unix systems for my > customers who do not bother to teach their users the correct > way of logging out. This works for all unix systems I admin > for which includes aix, true64, the dreaded sco and more. > > Tony. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Mikkel L. > Ellertson > Sent: 06 July 2005 19:00 > To: [email protected] > Subject: Re: [newbie] How to disconnect users - force from console? > > > Tango Echo wrote: > > Hey everyone, > > > > This would probably be more appropriate for a UNIX > > mailing list since that's what I'm dealing with here. > > However, I believe it still applies to Linux, so I'm > > hopeful! > > > > My question is this: How can I disconnect particular > > users by force? We have an AIX UNIX box that > > sometimes has a user that will hang. Next the user > > will try to logon again. When they try to logon, they > > can't get a connection. When I do a 'who' from the > > console it appears that they are still logged into the > server. If I > > do a 'kill' on all their processes, they are still shown to > be logged > > into the server with 'who'. The only way that seems to work is to > > reboot the server. > > > > Any ideas here? > > > I am not sure about AIX, but under Linux, if you kill their > login shell, it will log them off. This is because exiting > the login shell is the normal way of logging out, so killing > it has the same affect. If they are logged in using X, then > you have to kill the desktop, or the X server. > > Mikkel > -- > > Do not meddle in the affairs of dragons, > for thou art crunchy and taste good with Ketchup! > > ____________________________________________________ Sell on Yahoo! Auctions - no fees. Bid on great items. http://auctions.yahoo.com/ -+-+-+-+-+-+-+-+-+ Business Computer Projects - Disclaimer -+-+-+-+-+-+-+-+-+- This message, and any associated attachment is confidential. If you have received it in error, please delete it from your system, do not use or disclose the information in any way, and notify either the sender or [EMAIL PROTECTED] immediately. The contents of this message may contain personal views which are not necessarily the views of Business Computer Projects Ltd., unless specifically stated. Whilst every effort has been made to ensure that emails and their attachments are virus free, it is the responsibility of the recipient(s) to verify the integrity of such emails. Business Computer Projects Ltd BCP House 151 Charles Street Stockport Cheshire SK1 3JY Tel: +44 (0)161 355-3000 Fax: +44 (0)161 355-3001 Web: http://www.bcpsoftware.com
____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
