?
Solved

terminate

Posted on 2001-07-19
5
Medium Priority
?
324 Views
Last Modified: 2013-12-23
when logged in as root
is there a command to end a users session?
eg a user pulled the plug on their pizza and as far is w is concerne they are still logged on, can i in effect terminate that session
0
Comment
Question by:KLilburn2108
3 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 6297921
with the
  w
command you get a list of all active (login) session, for you the USER and TTY column is of interest.
Then is ps (ax  or  -ef, depending on your OS) and grep for that user using this tty. Finally use
  kill -9 <pid of shell of idetified user>
0
 
LVL 4

Assisted Solution

by:Otetelisanu
Otetelisanu earned 100 total points
ID: 6302511
Or make
1.ps -ef|grep John
Example:
John 10900 10899  0 10:27:07 pts/15   0:00 rlogin pluto
2. fuser -k /dev/pts/15
and kill all process from John
on the terminal 15
0
 

Expert Comment

by:CleanupPing
ID: 9157239
KLilburn2108:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question