The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sftp problem with user id of no telnet session allowed superdougl UNIX for Advanced & Expert Users 2 10-30-2006 07:28 AM
Deleting a user session jbrubaker UNIX for Dummies Questions & Answers 7 07-06-2006 09:01 AM
Kill user ust UNIX for Dummies Questions & Answers 3 02-09-2005 09:10 AM
kill all user processes vascobrito Shell Programming and Scripting 2 04-02-2004 10:27 AM
User login session Docboyeee UNIX for Advanced & Expert Users 1 11-10-2002 04:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 07-29-2007
Registered User
 

Join Date: Mar 2007
Posts: 8
kill user session

how do i kill a user session
Reply With Quote
Forum Sponsor
  #2  
Old 07-29-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
try

Code:
man kill
Reply With Quote
  #3  
Old 08-03-2007
Registered User
 

Join Date: Aug 2007
Posts: 4
first locate the process, for example, user logged in using ssh .

ps -ef | grep ssh


then, get the pid and kill the process .

That's it.

Regards,

Fernando.
Reply With Quote
  #4  
Old 08-03-2007
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,609
man pkill

[message too short]
Reply With Quote
  #5  
Old 08-03-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
Code:
who -u
will show the pid of the login process. Killing that process would log the user out, however you may also need to cleanup an child processes, which could continue to run without the parent if they ignore SIGHUP.
Reply With Quote
  #6  
Old 08-04-2007
Registered User
 

Join Date: Jun 2007
Posts: 19
only add command
after you get who login to the system
kill -9 <pid>

thx
Reply With Quote
  #7  
Old 08-04-2007
reborg's Avatar
Administrator
 

Join Date: Mar 2005
Location: Ireland
Posts: 3,590
Never use kill -9 on a process as a first resort.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0