Commit Graph

49 Commits

Author SHA1 Message Date
mlaier
0b9f8c8fb8 Style:
- do not comment out entries in newsyslog.conf
 - use tabs to line up inetd.conf

Requested by:	bde
Approved by:	bms(mentor)
2004-04-03 17:52:29 +00:00
mlaier
f83ee02957 Add rc.d script to start pflogd and add rcvars etc. Also document vars in
rc.conf(5) and put a sample entry to newsyslog.conf

Reviewed by:	-current
Approved by:	bms(mentor)
2004-04-02 19:25:27 +00:00
fjoe
72dbcd633e Fix typo in comments:
/etc/syslogd.conf -> /etc/syslog.conf

MFC after:	3 days
2003-08-07 21:04:40 +00:00
gad
fae6a5e5b7 Add the 'N' flag to the entries for three log files which are *not*
written to by syslogd:  /var/log/{daily.log,weekly.log,monthly.log}

MFC after:	1 week
2003-05-05 19:08:33 +00:00
gad
2d6e0a42bd Update the comments in this file to reflect the recent changes to
newsyslog.

MFC after:	1 week
2003-05-05 19:05:43 +00:00
des
f3dc8cf093 Introduce debug.log which gets debug.* (most of this would otherwise go
to the great bit-bucket in the sky)
2003-04-08 16:14:02 +00:00
des
7addf1f074 Alphabetize. 2003-02-16 13:07:20 +00:00
markm
48995e5bf3 Rename the ftp log filename for compatability with OpenBSD and NetBSD.
Requested by:	ru
2002-09-21 12:07:35 +00:00
markm
c981f012a2 Log ftpd stuff in the same way that we log lpd stuff. Too many ftpd's
are attacked for us to throw away this sort of evidence.
2002-09-20 22:10:01 +00:00
obrien
17738f685f Use bzip2 instead of gzip for those logs we compress.
Basic idea agreed to by:	rwatson
2002-09-12 17:28:07 +00:00
gshapiro
e1d379eb59 Change the default permissions for the sendmail statistics file to 0640
instead of 0644 to help protect users against a file locking local
denial of service.

MFC after:	1 day
		pending RE approval
2002-05-24 01:44:53 +00:00
rwatson
3421730849 Turns out everyone is a lot lazier than I thought. Spell
'authentication.log' as 'auth.log'.

This is also more consistent with syslog facility names.

Sigh. :-)

Submitted by:	asmodai, aeonflux, green, ....
2002-03-11 19:34:57 +00:00
rwatson
177f8a82f5 Clean up logging of security information a bit:
o Introduce /var/log/authentication.log, which will be the target for
  auth.info and authpriv.info by default.  Rotate on the same schedule
  as most other logs.  Create at installation.

o Remove logging of auth.info from /var/log/security.log, which will
  return to being only for security feature subsystems (such as ipfw,
  and so on).

This creates a special authentication log, which can now be searched
by scripts for authentication events.
2002-03-11 19:26:29 +00:00
obrien
466809f355 Use tabs where possible. 2001-12-01 17:14:34 +00:00
jlemon
2a782a1b3d Change maillog to have permissions of 640. Users shouldn't be able to
eavesdrop on other users' communications.
2001-09-17 01:33:15 +00:00
brian
2baf057e2a Allow group network to read ppp.log & slip.log.
Suggested by: Jesper Skriver <jesper@FreeBSD.org>
2001-09-03 11:35:17 +00:00
rwatson
3ce4b2abe1 o Note that some sites will want to select generally more conservative
permissions on some files, and give hints as to what those permissions
  might be.  Note also that the current more liberal permissions might
  get changed in future revisions.
2001-09-01 21:00:28 +00:00
rwatson
7c271e684f o More conservative permissions for kerberos.log: 600 instead of 644.
Reviewed by:	peter
2001-08-31 23:44:51 +00:00
obrien
11748390e2 Document Bzip2's flag.
PR:		27901
Submitted by:	Anders Nordby <anders@fix.no> (stylistic changes by me)
2001-07-30 15:18:15 +00:00
phk
3c0bb83063 /var/log/console.log should be mode 600.
PR:		25329
Submitted by:	Yoshihiro Koya Yoshihiro.Koya@math.yokohama-cu.ac.jp
MFC after:	1 week
2001-05-28 20:54:34 +00:00
phk
b64cd65b0b Log the console output to "/var/log/console.log", not "/var/log/console"
(MFC candidate)
2001-02-17 20:27:58 +00:00
rwatson
cb42d37eac o Introduce automated log rotation for /var/log/console, the
default syslog target for console messages (when enabled in
  syslog.conf).  Use the same rotation defaults as with
  /var/log/messages -- every 100kb of log, compress back logs,
  and keep five rotated logs.
o Note: phk also thought it would be useful to force rotation
  each boot.  This commit does not introduce such a rotation.

Reviewed by:	phk
2001-02-06 06:07:00 +00:00
brian
1de91cddf9 Another overhaul of the periodic stuff.
All periodic sub-scripts <larf> now have their return codes interpreted
by periodic(8).  Output may be masked based on variable values in
periodic.conf.

It's also now possible to email periodic output to arbitrary addresses,
or to send it to a log file, examples of which can be found in
newsyslog.conf.

The upshot of it all should be no discernable changes to the default
behaviour of periodic(8).

PR:	21250
2000-09-14 17:19:15 +00:00
peter
c459ce68d4 Change various log file modes from mode 664 to 644. Allowing group
wheel to trash logfiles is not exactly good security policy.  There have
been several gid wheel holes in ports.  Various other files were changed
as well (eg: the locate database were set to more restrictive modes (444)
by their generation scripts) so this should be safe for them.  utmp and
wtmp are mode 644 already on all the systems we checked.

Submitted by:  jkb
Reviewed by:   kris
2000-07-14 01:12:50 +00:00
rwatson
8c26e29cd0 Add two commented out syslog.conf entries, one to demonstrate the use of
an all.log for logging all messages, and one to demonstrate use of loghosts.
Also, a matching entry in newsyslog.conf for all.log.

Per request of Garrett Wollman, also modified the maillog entry to use the
@T newsyslog time specification mechanism.  Because newsyslog doesn't
support the mod date specification machanism, couldn't change other
entries that required more than one execution a month, but less than once
a day.

Approved by:	jkh
Reviewed by:	freebsd-security
2000-02-08 21:57:28 +00:00
n_hibma
299fd475fa Move /var/cron/log to /var/log/cron 1999-09-06 20:10:27 +00:00
peter
cdad5bae8c $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
green
c50c45093a This is the addition of a syslog(3) security.* top-level category. This
should be used from now on for anything security but not auth-related.
Included are updates for all relevant manpages and also to /etc files,
creating a new /var/log/security. Nothing in the system logs to
/var/log/security yet as of the time of this commit.

Reviewed by:	rgrimes, imp, chris
1999-08-21 18:24:29 +00:00
obrien
e6f703dc89 Syntax for user/group is changed from "user.group" to "user:group" to be
consistant with chown(8).
1999-06-28 03:15:02 +00:00
obrien
bb351572da Fix minor alignment problem. 1999-06-28 03:03:17 +00:00
ru
a502e1f443 Damn, forgot this: time -> when. 1999-06-01 11:20:15 +00:00
ru
edf5d29de3 Sync header line with newsyslog(8).
PR:		11511
Reviewed by:	des
1999-06-01 10:57:38 +00:00
wollman
7cdc246962 Now that newsyslog is capable of doing this at a specific time,
let it rotate /var/log/wtmp again, and update monthly/200.accounting to
take this into account.  (Some sites might want to change the parameters
of the rotation; it's easier to do this when it's all centralized in
newsyslog.conf.)
1999-01-28 20:03:31 +00:00
ache
1100c9655f Indicate optional signal number field 1998-06-09 18:26:16 +00:00
jmb
633b443be1 rotate sendmail statistics file weekly.
keep the last ten weeks of data.
Submitted by:	jmb
1998-04-14 23:08:29 +00:00
danny
53abf85a5f PR: 1708, 5448
Remove wtmp
1998-02-09 11:47:51 +00:00
ache
f82edf60eb Fix ppp log name 1997-06-10 20:39:10 +00:00
ache
a2201f0c87 Not kill ppp now, it uses syslog 1997-06-10 20:06:40 +00:00
brian
8157c564e6 Update ppp example pid_file name.
Suggested by:	ache
1997-05-10 05:46:52 +00:00
ache
20c46fa180 Use newly introduced pid file field now for ppp 1997-05-04 02:41:29 +00:00
peter
0e0dfca0f9 Revert $FreeBSD$ to $Id$ 1997-02-23 09:21:14 +00:00
mpp
0aa0738d01 Change the header line to read "count" instead of "ngen" so
that it matched the terms used in the manual page.

Closes PR# 2663.
1997-02-05 14:17:11 +00:00
jkh
9c0cd3f9df Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
pst
8089561864 Add /var/log/ppp.log from iij ppp 1996-06-22 21:34:03 +00:00
graichen
4799fe441e added the "-p" option to amd so that it writes it's pid to
/var/run/amd.pid and added the "-l /var/log/amd.log" option there too

added an entry for the "rotation" of /var/log/amd.log to newsyslog.conf
1996-01-16 08:04:06 +00:00
ache
f5a8f09c5a Put startslip syslog messages into separate file
Increase rotating log sizes in newsyslog.conf to reflect
more common case
1996-01-07 00:52:50 +00:00
ache
9e49e863b7 Restore broken accounting statistics:
1) It have nothing common to (new)syslog messages
2) acct.* rotating allowed only after "sa -s" run!
1996-01-06 22:19:37 +00:00
ache
9c4af2d68b /var/account/acct is binary file, mark this fact as 'B' flag 1996-01-06 21:47:07 +00:00
graichen
aa591244a2 added the file /etc/newsyslog.conf (config file for
/usr/sbin/newsyslog - see the man-page for it for details) - i put all
the "rotations" which were in /etc/[daily,weekly,monthly] in here
1996-01-05 10:24:03 +00:00