LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-07-2005, 10:34 PM   #1
mstahl
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Rep: Reputation: 0
Why message appearing on console


I have FC3 setup to start at level 3 - console in text mode. For some reason, leaving the console logged out causes error messages to scroll on screen as they occur. Why?

I don't won't someone to walk up to the console and see (eg) network error messages. What can I change to turn this off? Is there a good reason to leave this on?
 
Old 07-08-2005, 04:02 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
could you post one or 2 of those messages?
 
Old 07-08-2005, 07:39 AM   #3
mstahl
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I can't capture the messages since they are sitting on the console window before logged in....but since they are the same as being logged to the messages file:

IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:e0:81:51:99:ac:08:00 SRC=172.31.254.2 DST=255.255.255.255 LEN=328 TOS=0x00 PREC=0x00 TTL=128 ID=48392 PROTO=UDP SPT=67 DPT=68 LEN=308
IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:e0:81:51:99:ac:08:00 SRC=172.31.254.2 DST=255.255.255.255 LEN=276 TOS=0x00 PREC=0x00 TTL=128 ID=48998 PROTO=UDP SPT=68 DPT=67 LEN=256
IN=eth0 OUT= MAC=ff:ff:ff:ff:ff:ff:00:e0:81:51:99:ac:08:00 SRC=172.31.254.2 DST=255.255.255.255 LEN=328 TOS=0x00 PREC=0x00 TTL=128 ID=48999 PROTO=UDP SPT=67 DPT=68 LEN=308

Not that I have IPTABLES set to capture packets on my LAN card, so it's normal for these to be logged in the messages file. I'm just not clear why they also appear on the console when not logged in.
 
Old 07-08-2005, 08:10 AM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
are you sure iptables is not set to log anything?
could you post any results from:
#iptables-save | grep LOG
or
#iptables-save
just in case(not both please :-) )
 
Old 07-08-2005, 03:21 PM   #5
tommyr1216
Member
 
Registered: Sep 2004
Location: Pennsylvania
Distribution: Gentoo, Suse, Fedora, Slackware
Posts: 56

Rep: Reputation: 15
IPTables is a set of tools which controls Netfilter in the kernel. Thus, when you tell IPTables to log, those messages are produced by the kernel. If you look in your /etc/syslog.conf file, you will probably see a line which says:

kern.* /dev/console

which tells syslog to print kernel messages to the active console. This is why you see you iptables messages here. I believe that you can specify a log level in your iptables rule which will allow you to filter these out. Or, just remove the above line from your syslog.conf file.
 
Old 07-15-2005, 09:26 PM   #6
mstahl
LQ Newbie
 
Registered: Jul 2005
Posts: 10

Original Poster
Rep: Reputation: 0
I think you're close - but something is still missing. (See below) The line for kern.* has been commented out.

Do the kern.* messages default to the console even if commented out? Can I send these to /dev/null (to keep them off the console) while still having them record in messages file?

-OCG-

[root@pbx etc]# cat syslog.conf
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages

# The authpriv file has restricted access.
authpriv.* /var/log/secure

# Log all the mail messages in one place.
mail.* -/var/log/maillog


# Log cron stuff
cron.* /var/log/cron

# Everybody gets emergency messages
*.emerg *

# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler

# Save boot messages also to boot.log
local7.* /var/log/boot.log
 
  


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
Console Message. Carpinus Linux - Newbie 4 01-15-2005 12:46 PM
'UTF8 mode' message appearing Rodolfo Medina Linux - General 1 11-19-2004 08:29 AM
Strange message on console complus Linux - Software 3 09-02-2003 04:35 AM
Console message - how do I create one? davee Linux - Newbie 3 08-08-2003 04:32 AM
Console Message DigitalTygrrr Linux - General 2 04-23-2003 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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