| #!/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 |