Solved

terminate

Posted on 2001-07-19
5
306 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
5 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 25 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

What’s a web proxy server? A proxy server is a server that goes between clients and web servers, used in corporate to enforce corporate browsing policy and ensure security. Proxy servers are commonly used in three modes. A)    Forward proxy …
This is an article about my experiences with remote access to my clients (so that I may serve them) and eventually to my home office system via Radmin Remote Control. I have been using remote access for over 10 years and have been improving my metho…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now