ShadowArch/Shared/logged-shell
2016-11-09 22:25:00 -06:00

8 lines
215 B
Bash
Executable File

#!/bin/bash
export SHELL=/bin/bash
export LOGFILE="/var/log/guest_log/$(/usr/bin/whoami)-$(date +%F-%R).log"
env > $LOGFILE
exec /bin/sh -c "script -a -q -f $LOGFILE"
#/bin/bash -c "echo /usr/bin/logged-shell"
exit