Browse Source

Bugfix, use profile of the login user

pull/1/head
Marc Schoechlin 12 years ago
parent
commit
498b746deb
2 changed files with 5 additions and 2 deletions
  1. +1
    -0
      README.md
  2. +4
    -2
      helpers/auditshell

+ 1
- 0
README.md View File

@ -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


+ 4
- 2
helpers/auditshell View File

@ -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"

Loading…
Cancel
Save