<p><code>bitcoin-cli</code> attempts to read the credentials from <code>$HOME/.bitcoin</code>. Since user2 will have a different home directory, bitcoin-cli will not able to find the credentials.</p>

<p>You can either symlink <code>.bitcoin</code> from user1's home directory to user2's, or alias <code>bitcoin-cli</code> for user2 to use <code>-datadir=user1home/.bitcoin</code>.</p>

<p>You may need to play around with the read permissions in either case.</p>

CC BY-SA 4.0
2019-11-08T13:28:03.087Z
2019-11-08T13:28:03.087Z
Raghav Sood
<p>I have installed Bitcoin v0.18.1 as <code>user1</code>.
Everything is fine, but now I need to let <code>user2</code> access the same run so he can use <code>bitcoin-cli</code> as well.</p>

<p>However, once I log into the VM instance as <code>user2</code> I get this error:</p>

<p><code>error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set.  See -rpcpassword and -stdinrpcpass.  Configuration file: (/home/user2/.bitcoin/bitcoin.conf)</code></p>

<p>It does not matter if the users use the same wallet, I just need <code>bitcoin-cli</code> to work for both users and use data from <code>user1</code> (full sync)</p>

<bitcoind><bitcoin-cli><daemon>
How do you run one daemon for multiple users?
Augustinas Makevičius
# How do you run one daemon for multiple users?

(Asked by: username_0 on 2019-11-08)

I have installed Bitcoin v0.18.1 as `user1`.
Everything is fine, but now I need to let `user2` access the same run so he can use `bitcoin-cli` as well.

However, once I log into the VM instance as `user2` I get this error:

`error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is not set. See -rpcpassword and -stdinrpcpass. Configuration file: (/home/user2/.bitcoin/bitcoin.conf)`

It does not matter if the users use the same wallet, I just need `bitcoin-cli` to work for both users and use data from `user1` (full sync)

**Tags:** bitcoind, bitcoin-cli, daemon


---

## 1 answers

### Answer by username_1 on 2019-11-08. Score: 4 | Accepted answer

`bitcoin-cli` attempts to read the credentials from `$HOME/.bitcoin`. Since user2 will have a different home directory, bitcoin-cli will not able to find the credentials.

You can either symlink `.bitcoin` from user1's home directory to user2's, or alias `bitcoin-cli` for user2 to use `-datadir=user1home/.bitcoin`.

You may need to play around with the read permissions in either case.


---

