LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-02-2005, 06:54 AM   #1
rsharpypoo
LQ Newbie
 
Registered: Jan 2005
Distribution: Su
Posts: 1

Rep: Reputation: 0
Exclamation Disconnecting a single user now!!!


If I have 150 users logged on and I want to kick only 1 user off immediately, how can I do this and not disrupt the rest of the world.
Thanks
 
Old 03-02-2005, 07:08 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
Maybe something like:
ps -u thisUserLoginName | grep -v 'PID' | awk '{print $1}' | xargs kill

I'm on cygwin right now. I can't test.

Yves.
 
Old 03-02-2005, 07:09 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,436
Blog Entries: 11

Rep: Reputation: 181Reputation: 181
Easiest way to do this is to kill all programs run by the user. You could also just kill the programm the user uses to connect to your box.
Or if you got his ip adress. Deny connections from this ip. Either using iptables, or hosts.deny/allow.

You could check out some security-papers and read the section about "What to do during a compromise" or similar headline.

Hope this helps
--zhjim--
 
  


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
single user mode... navaladi Mandriva 2 12-26-2004 02:41 AM
single user boot... cyberfox1234 Mandriva 13 12-25-2004 09:06 PM
disconnecting a user wenberg Linux - Newbie 2 01-13-2004 01:18 PM
single user mode ? wr3ck3d Slackware 5 03-29-2003 09:52 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 12:17 PM


All times are GMT -5. The time now is 04:56 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration