blob: f4d19aed2a9faa38e4beba103c50107f7e542aa3 [file] [log] [blame] [raw]
#!/bin/sh
export SHELL=/bin/sh
LOG_FILE="/var/log/noshell/$USER.`date -u +%F.%H-%M-%S`"
[ -d /tmp/playground ] || mkdir /tmp/playground
cd /tmp/playground
#exec script -c "export SHELL=/bin/noshellhere; exec /usr/bin/telnet" -fqt $LOG_FILE 2> $LOG_FILE.time
exec script -c "export SHELL=/bin/noshellhere; exec /bin/bash --restricted --noprofile --rcfile /etc/rshrc" -fqt $LOG_FILE 2> $LOG_FILE.time