From f596abf6706ac2b48e0a9092661e689f78897947 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Wed, 17 Oct 2018 00:08:56 +0200 Subject: [PATCH] daily autocommit --- logrotate.d/samba | 5 ++++- logrotate.d/winbind | 7 ++++++- samba/smb.conf | 6 ++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/logrotate.d/samba b/logrotate.d/samba index 8a9632b..ff0ba2e 100644 --- a/logrotate.d/samba +++ b/logrotate.d/samba @@ -2,6 +2,7 @@ weekly missingok rotate 7 + minsize 4M postrotate [ ! -x /usr/bin/smbcontrol ] || /usr/bin/smbcontrol smbd reload-config endscript @@ -14,6 +15,7 @@ weekly missingok rotate 7 + minsize 4M postrotate [ ! -x /usr/bin/smbcontrol ] || /usr/bin/smbcontrol nmbd reload-config endscript @@ -22,10 +24,11 @@ notifempty } -/var/log/samba/log.samba { +/var/log/samba/log.samba /var/log/samba/samba.log { weekly missingok rotate 7 + minsize 4M postrotate if [ -d /run/systemd/system ] && command systemctl >/dev/null 2>&1 && systemctl is-active --quiet samba-ad-dc; then systemctl kill --kill-who all --signal=SIGHUP samba-ad-dc diff --git a/logrotate.d/winbind b/logrotate.d/winbind index 43ae1af..b5443ff 100644 --- a/logrotate.d/winbind +++ b/logrotate.d/winbind @@ -1,7 +1,12 @@ -/var/log/samba/log.winbindd { +/var/log/samba/log.winbindd +/var/log/samba/log.winbindd-idmap +/var/log/samba/log.wb-BRUNI +/var/log/samba/log.wb-BUILTIN +{ weekly missingok rotate 7 + minsize 4M postrotate if [ -x /usr/bin/smbcontrol ]; then /usr/bin/smbcontrol winbindd reload-config diff --git a/samba/smb.conf b/samba/smb.conf index 81f31ef..bfe9a89 100644 --- a/samba/smb.conf +++ b/samba/smb.conf @@ -24,7 +24,8 @@ ; printing = cups guest account = gast log file = /var/log/samba/samba.log - max log size = 5120 + ;max log size = 5120 + max log size = 0 #null passwords = no username level = 6 #password level = 6 @@ -38,7 +39,8 @@ ; domain logons = no os level = 33 #logging = syslog@2 file - log level = 3 passdb:10 auth:10 + #log level = 3 passdb:10 auth:10 + log level = 2 logon drive = m: logon home = \\%L\homes\%u logon path = \\%L\profiles\%u -- 2.39.5