Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


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

Rep: Reputation: 168Reputation: 168
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:
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?


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 05:48 PM
New users can't logon to FTP server... drzigman Linux - General 4 06-13-2005 04:50 AM
restricting logon hours to users? FiveFlat Linux - Networking 2 01-18-2004 02:43 PM
Logon screen, Users & Passwords. DLM Slackware 7 12-14-2003 03:06 PM
killing a users ssh session acid2000 Linux - Software 6 03-17-2003 11:17 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:19 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
Open Source Consulting | Domain Registration