2 echo "==> Creating the bitcoin user…"
3 groupadd -g 8333 bitcoin
4 useradd -d /var/lib/bitcoin-daemon -g 8333 -u 8333 -s /bin/false -N bitcoin
6 pw="$RANDOM$RANDOM$RANDOM"
7 echo "==> Setting the default RPC password to $pw"
8 echo "rpcpassword=$pw" >> /var/lib/bitcoin-daemon/bitcoin.conf
10 chown 8333:8333 /var/lib/bitcoin-daemon/bitcoin.conf
11 chmod 400 /var/lib/bitcoin-daemon/bitcoin.conf
12 echo "==> You can add bitcoind to your DAEMONS array in rc.conf."
16 echo "==> Deleting the bitcoin user…"
19 echo "==> Your configuration file and wallet is still in /opt/bitcoin-daemon."