LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 12-20-2006, 06:16 PM   #1
micro_xii
Member
 
Registered: Sep 2006
Posts: 140

Rep: Reputation: 15
Question Command to show who login to my server


Greetings:

Im using SLES

How will I know if someone log into my server or remote login. What is the command?
 
Old 12-20-2006, 06:27 PM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Type:
who
 
Old 12-20-2006, 06:27 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
You can determine current connections with "w" or "who". The "last" command will give a history of connections and the length of the connection.
 
Old 12-20-2006, 06:35 PM   #4
micro_xii
Member
 
Registered: Sep 2006
Posts: 140

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by jschiwal
You can determine current connections with "w" or "who". The "last" command will give a history of connections and the length of the connection.
Ok now I know BUT how to terminate or kill who log to my server. What is the command?
 
Old 12-20-2006, 06:57 PM   #5
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 31
Try
Code:
skill -KILL -u $username
EDIT: That will only "logout" the offending user if they're logged in. If you want to block their access you'll want to put their IP address into /etc/hosts.deny and maybe change some passwords

If the user is logging in locally then you need better security.

Last edited by zetabill; 12-20-2006 at 07:03 PM.
 
  


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
command to show all the login users sessions RajRed Linux - Newbie 3 04-18-2006 08:24 AM
Show Login Screen on SuSE 9.2 Zakirium Linux - Newbie 2 01-17-2006 01:44 PM
show last users login wisdom Programming 3 11-17-2005 02:56 AM
show motd on login pirozzi Debian 11 12-15-2004 10:40 AM
Show Uptime On Shell Login~ skate Linux - Software 2 09-09-2003 12:48 PM


All times are GMT -5. The time now is 04:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration