LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command to show who login to my server (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-show-who-login-to-my-server-512373/)

micro_xii 12-20-2006 06:16 PM

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?:Pengy:

lord-fu 12-20-2006 06:27 PM

Type:
who

jschiwal 12-20-2006 06:27 PM

You can determine current connections with "w" or "who". The "last" command will give a history of connections and the length of the connection.

micro_xii 12-20-2006 06:35 PM

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?:twocents:

zetabill 12-20-2006 06:57 PM

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. ;)


All times are GMT -5. The time now is 12:26 PM.