how do I suppress system messages?
Eric Crist
ecrist at secure-computing.net
Wed Oct 13 12:14:12 PDT 2004
On Oct 13, 2004, at 2:08 PM, Kevin Glick wrote:
> Lynette,
>
> System messages print out to the console on tty0 only, by default. If
> you
> want to use the console, switch to tty1 or above. Do this by
> ALT+2(tty1),
> ALT+3(tty2), etc.
> When you're in Vi, and syslog prints across the screen, using CTRL+L
> will
> re-draw the screen, and remove the syslog messages.
> If you want to get rid of the messages altogether, look into disabling
> syslogd, via /etc/rc.conf. (Man syslogd, or check
> /etc/defaults/rc.conf for
> syslogd.
>
> Kevin Glick
> ITS Manager
> Sterling Business Forms
> keving at sbfnet.com
>
>
> -----Original Message-----
> From: owner-freebsd-newbies at freebsd.org
> [mailto:owner-freebsd-newbies at freebsd.org] On Behalf Of Lynette Tillner
> Sent: Wednesday, October 13, 2004 11:21 AM
> To: freebsd-newbies at freebsd.org
> Subject: how do I suppress system messages?
>
> This is something that drives me crazy but I've not been able to find
> a way
> to stop it.
>
> When I log into my FreeBSD 4.6 Web Server as root, I get messages from
> sendmail that I can't suppress with dmesg. They are a real pain
> because
> they even come across the screen when I'm using VI to edit files and
> then I
> can't figure out the line I was in the middle of editing, and end up
> doing a
> :q! and starting over, very frustrating because we get tons of mail
> and it
> seems like I can't do anything as root because of these messages.
>
> Is there a command that will suppress the messages? I remember being
> able
> to do that when I was working on an HP-UX system but haven't figured
> it out
> under FreeBSD.
>
> Thanks for any help!
>
> Lynette
You can also disable this by editing the file /etc/syslog.conf and
commenting out the following line:
*.err;kern.debug;auth.notice;mail.crit /dev/console
Simply put a # in front, save the file, and restart syslogd by doing
the following as root:
# killall -1 syslogd
HTH
-----
Eric F Crist
Secure Computing Networks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20041013/daefe211/PGP.bin
More information about the freebsd-questions
mailing list