LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-19-2001, 01:15 AM   #1
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Rep: Reputation: 30

I have set up telnet access to my linux box. How do I check to see the history (who, what, when) of who has accessed my machine? Is this possible?

Thanks.
 
Old 05-19-2001, 01:18 AM   #2
nabil
Member
 
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210

Rep: Reputation: 31
try the command "last" or hit /var/log
 
Old 05-19-2001, 01:23 AM   #3
jonfa
Member
 
Registered: Mar 2001
Location: FL
Posts: 257

Original Poster
Rep: Reputation: 30
I tried the "last" command and it displays the user login only, that is for users physically at the machine. Where in the /var/ directory might I find this info?
 
Old 05-19-2001, 03:21 AM   #4
nabil
Member
 
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210

Rep: Reputation: 31
How about looking at /var/log/secure
I personaly run this as
#tail -f /var/log/secure > /mywebserver/root/secure &

then I monitor result from my web browser. This log will show you all services logins attempted whether it's telnet, ftp, mail...etc..and when tailing it, you will see it as it happens.
If you really wanna see every single traffic that come thru, try command #tcpdump you can do man on it for options.
But basically to look and find past stuff in linux, you have to check logs and they are usualy under /var/log/*

Hope this helped.
 
1 members found this post helpful.
Old 12-02-2011, 01:32 AM   #5
miladamirzadeh
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
Thanks man

When I have some linuxly problems LQ is my place to find solutions.
 
Old 12-02-2011, 06:23 AM   #6
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
Quote:
Originally Posted by nabil View Post
I personaly run this as
#tail -f /var/log/secure > /mywebserver/root/secure &
Are you sure it's not
tail -f /var/log/secure >> /mywebserver/root/secure &

Otherwise that will rewrite the file without appending on it.

Or can you not just make a symlink to /var/log/secure ?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remote login mandrake-n00b Linux - Networking 1 04-23-2005 04:08 AM
remote x login instead of local login mandrake-n00b Mandriva 0 04-22-2005 09:19 PM
Remote Login SBFree Linux - Newbie 2 11-12-2004 06:13 AM
login history zaichik Linux - Newbie 1 06-12-2004 09:22 AM
How to erase the login history (RedHat)? yuzuohong Linux - General 3 08-31-2002 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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