From 498b746deb39f3e3857bd207c7583ccda754519f Mon Sep 17 00:00:00 2001 From: Marc Schoechlin Date: Tue, 15 Oct 2013 10:13:40 +0200 Subject: [PATCH] Bugfix, use profile of the login user --- README.md | 1 + helpers/auditshell | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 402ede1..9524825 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ The logged information can also be forwarded to secured logging servers using st ```bash cd helpers/ wget https://www.kernel.org/pub/linux/utils/util-linux/v2.23/util-linux-2.23.tar.gz + tar zxvf util-linux-2.23.tar.gz cd util-linux-2.23/ patch -p1 < ../auditshell_script.patch ./configure --without-ncurses --disable-nls diff --git a/helpers/auditshell b/helpers/auditshell index 89e49f9..a4a2d98 100755 --- a/helpers/auditshell +++ b/helpers/auditshell @@ -1,7 +1,8 @@ -#!/bin/bash +#!/bin/bash -l IDENT="`date --date="today" "+%Y-%m-%d_%H-%M-%S"`.`whoami`.$$" + # This is a file transfer, no audit shell neccessary if (echo "$@"|egrep -q ".*scp.*");then exec /bin/sh "$@" @@ -28,4 +29,5 @@ EOF /usr/local/bin/script -d -e -f -q -t 5 \ 5> >(base64|logger -t $TYPESCRIPT) \ - 2> >(base64|logger -t $TIMING) + 2> >(base64|logger -t $TIMING) +echo "Finish"