LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-20-2007, 02:17 AM   #1
micro_xii
Member
 
Registered: Sep 2006
Posts: 140

Rep: Reputation: 15
Question killing users who logon to server


greetings:

how to kill remote users who logon to my server.
after typing who.........whats next
 
Old 03-20-2007, 02:32 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
You could use ps to see the list of processes and filter it for the username. For example, if someone logs on as joeblogs, you could use:
Code:
ps aux | grep '^joeblogs'
You could then use the kill command to kill their shell and any other processes you didn't want running. This requires root access.

A better approach would be to stop them from logging on in the first place or at least limiting what they can run. Who are these remote users?
 
  


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
ONE of my users cannot logon with gnome (Fedora core 2) Face1 Linux - Software 4 04-08-2006 04:48 PM
New users can't logon to FTP server... drzigman Linux - General 4 06-13-2005 03:50 AM
restricting logon hours to users? FiveFlat Linux - Networking 2 01-18-2004 01:43 PM
Logon screen, Users & Passwords. DLM Slackware 7 12-14-2003 02:06 PM
killing a users ssh session acid2000 Linux - Software 6 03-17-2003 10:17 AM


All times are GMT -5. The time now is 08:12 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration