summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-04-14 10:04:14 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-04-14 10:04:14 +0200
commitfddad03834636859c971103b3b40ceb061bb56a0 (patch)
treebc36e2988f1687e0a5642ca6f1045beeb61f25fe /template
parent645549be49e99ad6976e0fc0829800427befab57 (diff)
downloadOpenBSD-firewall-fddad03834636859c971103b3b40ceb061bb56a0.tar.gz
OpenBSD-firewall-fddad03834636859c971103b3b40ceb061bb56a0.tar.bz2
cleanup and better newsyslog config for small devices
Diffstat (limited to 'template')
-rw-r--r--template/etc/master.passwd2
-rw-r--r--template/etc/newsyslog.conf11
2 files changed, 3 insertions, 10 deletions
diff --git a/template/etc/master.passwd b/template/etc/master.passwd
index 89e02e6..7e9ab0e 100644
--- a/template/etc/master.passwd
+++ b/template/etc/master.passwd
@@ -62,8 +62,6 @@ _pkguntar:*:58:58::0:0:pkg untar user:/nonexistent:/sbin/nologin
_gitdaemon:*************:778:778:daemon:0:0:GIT Daemon:/nonexistent:/sbin/nologin
_dbus:*************:572:572:daemon:0:0:dbus user:/nonexistent:/sbin/nologin
_avahi:*************:629:629:daemon:0:0:Avahi User:/var/empty:/sbin/nologin
-abaumann:$2b$07$CHHNuvn65gkaKSpJnTE90..n3T52iAvyq/VDOBUq8wbvxjtXZHTNu:500:10::0:0:,,,:/home/abaumann:/usr/local/bin/tcsh
-build:*:21:21::0:0:base and xenocara build:/var/empty:/bin/ksh
_switchd:*:49:49::0:0:Switch Daemon:/var/empty:/sbin/nologin
_traceroute:*:50:50::0:0:traceroute privdrop user:/var/empty:/sbin/nologin
_ping:*:51:51::0:0:ping privdrop user:/var/empty:/sbin/nologin
diff --git a/template/etc/newsyslog.conf b/template/etc/newsyslog.conf
index 8e59a5c..b20d762 100644
--- a/template/etc/newsyslog.conf
+++ b/template/etc/newsyslog.conf
@@ -5,13 +5,8 @@
# logfile_name owner:group mode count size when flags
/var/cron/log root:wheel 600 3 10 * Z
/var/log/authlog root:wheel 640 7 * 168 Z
-/var/log/daemon 640 5 300 * Z
-/var/log/lpd-errs 640 7 10 * Z
-/var/log/maillog 640 7 * 24 Z
-/var/log/messages 644 5 300 * Z
+/var/log/daemon 640 5 30 * Z
+/var/log/messages 644 5 30 * Z
/var/log/secure 600 7 * 168 Z
/var/log/wtmp 644 7 * $W6D4 B
-/var/log/xferlog 640 7 250 * Z
-/var/log/pflog 600 3 250 * ZB "pkill -HUP -u root -U root -t - -x pflogd"
-/var/www/logs/access.log 644 4 * $W0 Z "pkill -USR1 -u root -U root -x httpd"
-/var/www/logs/error.log 644 7 250 * Z "pkill -USR1 -u root -U root -x httpd"
+/var/log/pflog 600 3 25 * ZB "pkill -HUP -u root -U root -t - -x pflogd"