<ol>
<li><code>bitcoin-cli stop</code></li>
<li>Then edit your bitcoin.conf with <code>nano bitcoin.conf</code></li>
<li>Then edit or add the entry <code>rpcpassword=yourpassword</code> and <code>rpcusername=yourusername</code></li>
<li>Save it</li>
<li>Restart bitcoind</li>
</ol>

CC BY-SA 4.0
2018-07-17T22:21:05.787Z
2018-07-17T22:21:05.787Z
Emil Engler
<p>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)</p>

CC BY-SA 3.0
2018-02-07T01:59:11.217Z
I already tried changing the rpcuser and rpcpassword in bitcoin.conf and restarting the server with the new config file
satoshi_ghost
CC BY-SA 3.0
2018-02-07T02:03:26.647Z
Ok then try to stop the daemon and simplely change the password and username to what you want and start the daemon again
zhiyan114
CC BY-SA 3.0
2018-02-07T02:06:17.187Z
No the problem is when trying to restart daemon with new config, it says invalid credentials
satoshi_ghost
CC BY-SA 3.0
2018-02-07T02:25:26.167Z
Ik but you have to stop the daemon with the same credentials then change it or else it won't work
zhiyan114
CC BY-SA 3.0
2018-02-07T01:56:13.633Z
2018-02-07T01:56:13.633Z
zhiyan114
<p>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?</p>

CC BY-SA 4.0
2018-06-16T15:45:24.377Z
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
<bitcoind><json-rpc>
How do you change rpc password?
satoshi_ghost
# How do you change rpc password?

(Asked by: username_0 on 2018-02-07)

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?

**Tags:** bitcoind, json-rpc

> **Comments:**
> **username_1**: 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.  

---

## 2 answers

### Answer by username_2 on 2018-07-17. Score: 2

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


---

### Answer by username_3 on 2018-02-07. Score: 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)

> **Comments:**
> **username_0**: I already tried changing the rpcuser and rpcpassword in bitcoin.conf and restarting the server with the new config file  
> **username_3**: Ok then try to stop the daemon and simplely change the password and username to what you want and start the daemon again  
> **username_0**: No the problem is when trying to restart daemon with new config, it says invalid credentials  
> **username_3**: Ik but you have to stop the daemon with the same credentials then change it or else it won't work  

---

