Solved

terminate

Posted on 2001-07-19
5
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 25 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 25 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

690 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