From f3497452f34af5f90a0902f71d7906472402c2ab Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Mon, 10 Sep 2018 07:57:40 +0200 Subject: more logs --- tools/boca-submit-log | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/boca-submit-log b/tools/boca-submit-log index 1a22ac1..a22a058 100644 --- a/tools/boca-submit-log +++ b/tools/boca-submit-log @@ -36,8 +36,8 @@ mkdir -p "$ROOTLOGS" for zcount in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do - ###novoveroot - grep -i 'opened for user root' /var/log/auth.log | grep -v CRON | tail -n 500 > $ROOTLOGS/.logsession.tmp + ###novoveroot2 + grep -e 'opened for user root' -e " su " -e pkexec -e sudo -e "password:session" /var/log/auth.log | grep -v CRON | tail -n 500 > $ROOTLOGS/.logsession.tmp ###grep -e " su " -e pkexec -e sudo -e "password:session" /var/log/auth.log | tail -n 500 > $ROOTLOGS/.logsession.tmp [ -f $ROOTLOGS/.logsession ] || touch $ROOTLOGS/.logsession diff $ROOTLOGS/.logsession $ROOTLOGS/.logsession.tmp > $ROOTLOGS/.logsession.diff 2>/dev/null -- cgit v1.2.3