Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | Questions | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Category : Home > Operating Systems > Unix     

How to kill Unix user session


One way to kill all sessions for a specific user is to run the following command (replace
username with the actual user name):

kill -9 `ps -u username | grep -v PID | awk '{ printf ("%s ", $1); }'`

Of course you should only use the -9 option when you really have to.


  Options
 
   del.icio.us  |  newsvine  |  digg  |  furl  |  google  |  yahoo  |  Ma.gnolia  |  vigillar  |  reddit  |  technorati  |  icerocket  |  pubsub

     (Average: 4.18 / Votes: 11)   Rate this tip:    

  Support Forum  Posted by 
   How to kill Unix user session       pyroman_pl  
   How to kill Unix user session       bugmenot  
   How to kill Unix user session       euclidian  

Start new discussion or add comment to this tip

  Details
Tip reference : #72
views : 16541
Added on : 01/25/06
Submited by : h8dk97
 
Send a message Send a message Printer friendly output Printer friendly output
Display this member's tips Display this member's tips (159)
 
 
<< Previous Next >>
 Most viewed tips 
  Databases > Oracle > Security : How to unlock Oracle user account  
  Operating Systems > Unix : How to kill Unix user session  
  Databases > Oracle > Performance Tuning : How to enable trace in Oracle  
  Databases > Oracle : Kill user session  
   
  All categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com