LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-04-2004, 07:49 PM   #1
ceph
LQ Newbie
 
Registered: Jun 2003
Location: New York
Distribution: gentoo 2006; mac osx server
Posts: 16

Rep: Reputation: 0
logout others


is there a command to log out others that are logged in to my machine? Like if someone has logged in via ssh and I want them out.

thanks in advance

ryan
 
Old 06-04-2004, 07:54 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
You can always find their ssh or bash process (depending how they are logged in) with ps, and kill it. That will knock them off the system.
 
Old 06-05-2004, 04:54 AM   #3
karans
LQ Newbie
 
Registered: Oct 2003
Location: India
Distribution: Red Hat {9.0, 7.x , 6.x } , Mandrake 9.x
Posts: 19

Rep: Reputation: 0
Hi

I will explain explicitly here. DO the following steps :

SSH
-------

1. ps -axj | grep "ssh"
2. kill -9 PID

BASH
--------

1. ps -axj | grep "bash"
2. kill -9 PID

and you are done .
 
Old 06-07-2004, 11:09 AM   #4
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
a harsher way, if you are root. netstat -something. find out their IP (you can do it with tcpdump as well). with the IP:

iptables -I INPUT -p tcp --dport 22 -s IP.OF.THE.VICTIM -j DROP

that should break the conection. I think it's that way... I'd have to check out at home to be completley sure.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
logout others ceph Linux - General 1 10-25-2005 11:37 AM
how do i logout? howarddevore Debian 7 07-05-2005 10:54 AM
On gnome / x logout run "logout" ?? once here Linux - Software 1 01-09-2004 02:53 PM
cannot logout kalmen Linux - General 1 12-16-2002 06:04 PM
Logout karunesh LQ Suggestions & Feedback 8 03-28-2002 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration