8 lines
215 B
Plaintext
8 lines
215 B
Plaintext
|
#!/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
|