LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-04-2007, 08:16 PM   #1
packets
Member
 
Registered: Oct 2005
Posts: 339

Rep: Reputation: 32
two copies of login in iptables


Evertime time an IP is logging in via ssh, it was loggin in /var/log/secure. As I check /var/log/secure, there are two logs of logins. One is the actual time (8:48) and the other one is less 8 hours (0:048).

Feb 5 00:48:08 SERVER sshd[19937]: Accepted password for foo from ::ffff:X.X.X.X port 1597 ssh2
Feb 5 08:48:08 SERVER sshd[19936]: Accepted password for foo from ::ffff:X.X.X.X port 1597 ssh2

How can I remove the wrong log which is 00:48?

Last edited by packets; 02-04-2007 at 08:40 PM.
 
Old 02-04-2007, 08:34 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Please explain *why* it is wrong?
 
Old 02-04-2007, 08:38 PM   #3
packets
Member
 
Registered: Oct 2005
Posts: 339

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by unSpawn
Please explain *why* it is wrong?
The right log is 8:48 not 0:48. Just imagine if there are lots of ip that are logging in to the server.
 
Old 02-04-2007, 08:45 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
What does running lsof or fuser on /var/log/secure return?
 
Old 02-04-2007, 08:49 PM   #5
packets
Member
 
Registered: Oct 2005
Posts: 339

Original Poster
Rep: Reputation: 32
I think lsof and fuser is not installed. It says "command not found"

Is this something to do with port as I change the port from 22 to 6500?
 
Old 02-05-2007, 04:33 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I think lsof and fuser is not installed. It says "command not found"
Are you running them as root account user? What's your $PATH like, then?


Is this something to do with port as I change the port from 22 to 6500?
I don't know. What steps did you take to move to that port?
 
  


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
Too many copies come out of printer Phrenchax Linux - Hardware 1 07-01-2006 05:12 AM
Two Copies Of XFCE Starting? douceur Linux - Software 1 06-19-2005 02:05 PM
How to burn Simultaneous copies? mcle Linux - General 8 01-04-2005 11:41 AM
Pls check my iptables to see if i can login into hotmail and other SSL sites! debloxie Linux - Networking 1 01-26-2004 10:33 AM
fork and copies of variables Griffon26 Programming 3 08-23-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:31 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