FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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:
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.
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940
Rep:
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 :-) )
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.