File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,15 @@ file, however it is recommended that a strong and secure password be used
29
29
as this password is security critical to securing the wallet should the
30
30
wallet be enabled.
31
31
32
- If bitcoind is run with "-daemon" flag, and no rpcpassword is set, it will
33
- print a randomly generated suitable password to stderr. You can also
34
- generate one from the shell yourself like this:
32
+ If bitcoind is run with the "-server" flag (set by default), and no rpcpassword is set,
33
+ it will use a special cookie file for authentication. The cookie is generated with random
34
+ content when the daemon starts, and deleted when it exits. Read access to this file
35
+ controls who can access it through RPC.
35
36
36
- ` bash -c 'tr -dc a-zA-Z0-9 < /dev/urandom | head -c32 && echo' `
37
+ By default the cookie is stored in the data directory, but it's location can be overridden
38
+ with the option '-rpccookiefile'.
37
39
38
- Once you have a password in hand, set ` rpcpassword= ` in ` /etc/bitcoin/bitcoin.conf `
40
+ This allows for running bitcoind without having to do any manual configuration.
39
41
40
42
` conf ` , ` pid ` , and ` wallet ` accept relative paths which are interpreted as
41
43
relative to the data directory. ` wallet ` * only* supports relative paths.
You can’t perform that action at this time.
0 commit comments