LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-23-2005, 03:31 AM   #1
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Rep: Reputation: 30
var/log/messages


not sure how to put this, I have been reading on this forum people saying that they check their log file with var/log/messages for any illegal log attack, is that right?

When i tried:

vi var/log/messages i got hundereds of lines.... not sure if this right place!!!


please correct me if am wrong.

Thanks.
 
Old 04-23-2005, 04:46 AM   #2
samael26
Member
 
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
hi,
it is the correct place, but why do you use the vi command to check this file ?
use cat or tail -f (the latter will give you the last part of the file, cool hey ? )
 
Old 04-23-2005, 04:52 AM   #3
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
Thanks samae126, i thought the vi is similar to cat(view a file),However;

I have run this command:

root@Admin:/home/moderator# tail -f /var/log/mess*

and the output was:

Apr 23 10:31:00 Admin kernel: smb_request: result -104, setting invalid
Apr 23 10:31:00 Admin kernel: smb_retry: successful, new pid=2676, generation=2
Apr 23 10:31:00 Admin kernel: smb_request: result -104, setting invalid
Apr 23 10:31:00 Admin kernel: smb_retry: successful, new pid=2680, generation=2
Apr 23 10:54:15 Admin -- MARK --
Apr 23 11:14:15 Admin -- MARK --
Apr 23 11:34:15 Admin -- MARK --
Apr 23 11:54:15 Admin -- MARK --
Apr 23 12:14:15 Admin -- MARK --
Apr 23 12:34:15 Admin -- MARK --

I dont understand anything, if someone could expalin these few lines I'll be glad.

Thanks.
 
Old 04-23-2005, 08:45 AM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
vi is a text editor, it edits files. cat, tail, head... they all work fine for viewing files. You'll probably want to narrow your search down though, so you might want to use grep instead of cat, tail, head, etc..
grep "Failed" /var/log/messages | less or what ever error you're looking for.
 
  


Reply



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
what does messages suppressed in /var/log/messages mean saavik Linux - Networking 2 05-07-2008 02:31 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
From where am i getting error messages to /var/log/messages? prabhuacsp Programming 3 02-16-2005 08:59 AM
From where am i getting error messages to /var/log/messages? prabhuacsp Linux - Networking 1 02-16-2005 12:34 AM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 10:08 AM

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

All times are GMT -5. The time now is 05:47 AM.

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