LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-17-2003, 03:28 PM   #1
puzz_1
Member
 
Registered: May 2003
Posts: 49

Rep: Reputation: 15
/var/log/messages is useless


It doesn't track anything except logins and a few system messages here and there.
I am trying to mount a samba share remotely and I keep getting accesss denied (bcz of ipchains blocking 137-139), where can i see this kinda activity?? any logs or something else??
 
Old 07-17-2003, 03:30 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You can set iptables to log to /var/log/messages

For more details:
man iptables
 
Old 07-17-2003, 05:59 PM   #3
german
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Debian etch, Gentoo
Posts: 312

Rep: Reputation: 30
You could enable kernel messages to console (/etc/sysctl.conf I think), then just type <ctrl><alt><f1> from X to see it, after you create the error in a controlled manner.

HTH

B.

-- oh right but you still have to set it to log in ipchains
 
Old 07-18-2003, 01:16 PM   #4
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
/var/log/messages is not useless. It is only as useful as *ahem* it's admin sets it up to be. If it's not how you like it then you are the problem.

A simple solution would be to change the syslog.conf logging parameters to include whatever you want.
http://www.theorygroup.com/Theory/Systems/syslog.html
http://www.die.net/doc/linux/man/man...og.conf.5.html


Always remember, a computer is only as smart as it's user. Never blame the computer when you are the one that is at fault!


I use syslog-ng (due to more fine grained control of logging) but I am sometimes overly paranoid. check it out:
http://www.balabit.com/products/syslog_ng/
 
  


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 10:24 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