moth/packages/ctfbase/service/ctfd/run

16 lines
367 B
Plaintext
Raw Normal View History

2011-02-03 07:31:42 -07:00
#! /bin/sh -e
exec 2>&1
2011-09-20 09:21:11 -06:00
# Make user accounts
2011-09-23 13:42:02 -06:00
adduser -D -u 0 -h /var root || true
adduser -D -u 100 -h /tmp -g 'CTF Services' ctf || true
adduser -D -u 65534 -h / nobody || true
echo 'root:$1$bEGCYemG$pAo9KXWQKgQNijRGKSb7e1' | chpasswd --encrypted
2011-09-20 09:21:11 -06:00
2011-03-14 17:13:25 -06:00
# Set up networking for all CTF ips
2011-02-03 07:31:42 -07:00
ip link set eth0 up
install -o root -m 0755 -d /var/lib/ctf/tokens
2011-02-07 13:10:02 -07:00
exec ./ctfd