Browse Source

Merge pull request #6532

8778471 Update init doc to mention cookie authentication (fanquake)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
3eaaf71fe7
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 12
      doc/init.md

12
doc/init.md

@ -29,13 +29,15 @@ file, however it is recommended that a strong and secure password be used @@ -29,13 +29,15 @@ file, however it is recommended that a strong and secure password be used
as this password is security critical to securing the wallet should the
wallet be enabled.
If bitcoind is run with "-daemon" flag, and no rpcpassword is set, it will
print a randomly generated suitable password to stderr. You can also
generate one from the shell yourself like this:
If bitcoind is run with the "-server" flag (set by default), and no rpcpassword is set,
it will use a special cookie file for authentication. The cookie is generated with random
content when the daemon starts, and deleted when it exits. Read access to this file
controls who can access it through RPC.
`bash -c 'tr -dc a-zA-Z0-9 < /dev/urandom | head -c32 && echo'`
By default the cookie is stored in the data directory, but it's location can be overridden
with the option '-rpccookiefile'.
Once you have a password in hand, set `rpcpassword=` in `/etc/bitcoin/bitcoin.conf`
This allows for running bitcoind without having to do any manual configuration.
`conf`, `pid`, and `wallet` accept relative paths which are interpreted as
relative to the data directory. `wallet` *only* supports relative paths.

Loading…
Cancel
Save