8 lines
215 B
Bash
Executable File
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
|