>Received: (from andreas(at)localhost) by klemm.gtn.com (8.11.1/8.11.1) id f058UKd68800; Fri, 5 Jan 2001 09:30:20 +0100 (CET) (envelope-from andreas)
On Fri, Jan 05, 2001 at 01:36:51AM -0600, Moritz Schmitt wrote:
> Hi,
> jedesmal, wenn ich als root eingeloggt bin und mich
> ein zweites Mal auf einer anderen Konsole als root
> einlogge bekomme ich eine Meldung der Art:
>
> date login: ROOT ROOT bla bla bla
>
> Ich habe die Meldung leider nicht genauer im Kopf,
> aber ich denke, jeder kennt sie.
> Wie kann ich die Ausgabe auf die Konsole abschalten
> und alle Meldungen stattdessen in eine dafuer vor-
> gesehene Datei (welche es auch sei) umschreiben lassen?
Schau Dir den source von login an, der die syslog message generiert,
um herauszufinden, mit welchem level das gelogged wird.
Dann kuck Dir /etc/syslog.conf und die dazugehörige manual page an ...
man syslog.conf
Danach paßt Du die syslog.conf an und mußt dem syslogd process mitteilen,
die config Datei neu einzulesen
kill -1 <PID of syslogd>
/usr/src/usr.bin/login:
[...]
/*
* If fflag is on, assume caller/authenticator has logged root login.
*/
if (rootlogin && fflag == 0)
{
if (hostname)
syslog(LOG_NOTICE, "ROOT LOGIN (%s) ON %s FROM %s",
^^^^^^^^^^
username, tty, full_hostname);
else
syslog(LOG_NOTICE, "ROOT LOGIN (%s) ON %s",
^^^^^^^^^^
username, tty);
}
[...]
Also "notice" !!!
# $FreeBSD: src/etc/syslog.conf,v 1.13 2000/02/08 21:57:28 rwatson Exp $
#
# Spaces are NOT valid field separators in this file.
# Consult the syslog.conf(5) manpage.
*.err;kern.debug;auth.notice;mail.crit /dev/console
^^^^^^^^^^^^
*.notice;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
security.* /var/log/security
mail.info /var/log/maillog
lpr.info /var/log/lpd-errs
cron.* /var/log/cron
*.err root
*.notice;news.err root
^^^^^^^^^
*.alert root
*.emerg *
# uncomment this to enable logging of all log messages to /var/log/all.log
#*.* /var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.* @loghost
# uncomment these if you're running inn
# news.crit /var/log/news/news.crit
# news.err /var/log/news/news.err
# news.notice /var/log/news/news.notice
!startslip
*.* /var/log/slip.log
!ppp
*.* /var/log/ppp.log
Eins von beidem muß es sein ...
-- Andreas Klemm Powered by FreeBSD SMP Songs from our band >>64Bits<<............http://www.apsfilter.org/64bits.html My homepage................................ http://people.FreeBSD.ORG/~andreas Please note: Apsfilter got a NEW HOME................http://www.apsfilter.org/ To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org with "unsubscribe de-bsd-questions" in the body of the messageReceived on Fri 05 Jan 2001 - 10:45:36 CET