From owner-freebsd-questions@FreeBSD.ORG Wed Oct 13 19:14:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3596316A4CE for ; Wed, 13 Oct 2004 19:14:12 +0000 (GMT) Received: from grog.secure-computing.net (grog.secure-computing.net [63.228.14.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id A080343D1D for ; Wed, 13 Oct 2004 19:14:11 +0000 (GMT) (envelope-from ecrist@secure-computing.net) Received: from [172.30.100.1] ([12.106.19.228]) (authenticated bits=0)i9DJE47l005348; Wed, 13 Oct 2004 14:14:05 -0500 (CDT) (envelope-from ecrist@secure-computing.net) In-Reply-To: <20041013190901.1959D43D1D@mx1.FreeBSD.org> References: <20041013190901.1959D43D1D@mx1.FreeBSD.org> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-4--871509221" Message-Id: Content-Transfer-Encoding: 7bit From: Eric Crist Date: Wed, 13 Oct 2004 14:12:54 -0500 To: "Kevin Glick" X-Pgp-Agent: GPGMail 1.0.2 X-Mailer: Apple Mail (2.619) X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on grog.secure-computing.net X-Virus-Status: Clean cc: 'Lynette Tillner' cc: freebsd-questions@freebsd.org Subject: Re: how do I suppress system messages? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 19:14:12 -0000 --Apple-Mail-4--871509221 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed 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@sbfnet.com > > > -----Original Message----- > From: owner-freebsd-newbies@freebsd.org > [mailto:owner-freebsd-newbies@freebsd.org] On Behalf Of Lynette Tillner > Sent: Wednesday, October 13, 2004 11:21 AM > To: freebsd-newbies@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 --Apple-Mail-4--871509221 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iEYEARECAAYFAkFtfjcACgkQRAAY9knOW+psrwCeN7MupRcBPSQAS2IJUPZfj3GO Wr0An2p1sv2P+KTied1TKEWM650C8MEj =/Xy2 -----END PGP SIGNATURE----- --Apple-Mail-4--871509221--