Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 03-02-2005, 06:54 AM   #1
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.
Old 03-02-2005, 07:08 AM   #2
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

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

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

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

Rep: Reputation: 233Reputation: 233Reputation: 233
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


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 > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:03 AM.

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