How do you change rpc password?

1

1

I'm trying to run bitcoind with a changed conf file, but for some reason the password it thinks is incorrect. Is there a way I can change the rpc username and password?

satoshi_ghost

Posted 2018-02-07T00:46:13.130

Reputation: 116

Can you include in your question the exact content of the file (with password masked out if needed), the command you run, the output you expect, the output you see, entries in debug.log that may be relevant? It's very hard to help based on vague observations.Pieter Wuille 2018-06-16T15:45:24.377

Answers

1

  1. bitcoin-cli stop
  2. Then edit your bitcoin.conf with nano bitcoin.conf
  3. Then edit or add the entry rpcpassword=yourpassword and rpcusername=yourusername
  4. Save it
  5. Restart bitcoind

Emil

Posted 2018-02-07T00:46:13.130

Reputation: 63

0

If you try to stop the bitcoind using bitcoin-cli then try edit the bitcoin.conf file to change the login and if that do not work then reboot then change the login (not sure if bitcoind can stop the server)

zhiyan114

Posted 2018-02-07T00:46:13.130

Reputation: 528

I already tried changing the rpcuser and rpcpassword in bitcoin.conf and restarting the server with the new config filesatoshi_ghost 2018-02-07T01:59:11.217

Ok then try to stop the daemon and simplely change the password and username to what you want and start the daemon againzhiyan114 2018-02-07T02:03:26.647

No the problem is when trying to restart daemon with new config, it says invalid credentialssatoshi_ghost 2018-02-07T02:06:17.187

Ik but you have to stop the daemon with the same credentials then change it or else it won't workzhiyan114 2018-02-07T02:25:26.167