user59687: When I run this command 
bitcoind -testnet -printtoconsole -rpcuser=123456 -rpcpassword=123456

After bitcoind is up. I run this on the same Ubuntu 17.10
bitcoin-cli -testnet -rpcuser=123456 -rpcpassword=123456 getbalance

I get this result:
error: incorrect rpcuser or rpcpassword (authorization failed)
The second day I tried exactly the same way. I get the correct result. It is really weird.
I try to put these two lines in /home/user/.bitcoin/bitcoin.conf
rpcuser=123456
rpcpassword=123456

And I run this command
bitcoind -testnet -printtoconsole -conf=/home/gogogo237/.bitcoin/bitcoin.conf

And this 
bitcoin-cli -testnet -rpcuser=123456 -rpcpassword=1234564 getbalance

notice that I intentionally changed -rpcpassword to a wrong password. But I still can get a correct result. 
This is really unpredictable and obviously a mistake. Anyone can explain this error? Thanks!

user38482: re-compiled on an Ubuntu system, fresh from github.com:
$ uname -a
Linux ubuntu-ae 4.10.0-19-generic

$ bitcoind -version
Bitcoin Core Daemon version v0.15.99.0-g96ac26e5662

$ bitcoind -testnet -printtoconsole -rpcuser=123456 -rpcpassword=123456

$ bitcoin-cli -testnet -rpcuser=123456 -rpcpassword=123456 getaccountaddress "myaccount"
n2r1aQiA37LLgy4qWjuLHXqA9ZhtcX4KG6

$ bitcoin-cli -testnet -rpcuser=123456 -rpcpassword=123456 getbalance
0.00000000

and with wrong password:
$ bitcoin-cli -testnet -rpcuser=123456 -rpcpassword=1234564 getbalance
error: incorrect rpcuser or rpcpassword (authorization failed)

so s.th. is wrong with the sources? Or with Ubuntu setup. What kernel do you have (uname -a) ?

59687: <p>When I run this command </p>

<pre><code>bitcoind -testnet -printtoconsole -rpcuser=123456 -rpcpassword=123456
</code></pre>

<p>After bitcoind is up. I run this on the same Ubuntu 17.10</p>

<pre><code>bitcoin-cli -testnet -rpcuser=123456 -rpcpassword=123456 getbalance
</code></pre>

<p>I get this result:
error: incorrect rpcuser or rpcpassword (authorization failed)
The second day I tried exactly the same way. I get the correct result. It is really weird.</p>

<p>I try to put these two lines in /home/user/.bitcoin/bitcoin.conf</p>

<pre><code>rpcuser=123456
rpcpassword=123456
</code></pre>

<p>And I run this command</p>

<pre><code>bitcoind -testnet -printtoconsole -conf=/home/gogogo237/.bitcoin/bitcoin.conf
</code></pre>

<p>And this </p>

<pre><code>bitcoin-cli -testnet -rpcuser=123456 -rpcpassword=1234564 getbalance
</code></pre>

<p>notice that I intentionally changed -rpcpassword to a wrong password. But I still can get a correct result. 
This is really unpredictable and obviously a mistake. Anyone can explain this error? Thanks!</p>
 38482: <p>re-compiled on an Ubuntu system, fresh from github.com:</p>

<pre><code>$ uname -a
Linux ubuntu-ae 4.10.0-19-generic

$ bitcoind -version
Bitcoin Core Daemon version v0.15.99.0-g96ac26e5662

$ bitcoind -testnet -printtoconsole -rpcuser=123456 -rpcpassword=123456

$ bitcoin-cli -testnet -rpcuser=123456 -rpcpassword=123456 getaccountaddress "myaccount"
n2r1aQiA37LLgy4qWjuLHXqA9ZhtcX4KG6

$ bitcoin-cli -testnet -rpcuser=123456 -rpcpassword=123456 getbalance
0.00000000
</code></pre>

<p>and with wrong password:</p>

<pre><code>$ bitcoin-cli -testnet -rpcuser=123456 -rpcpassword=1234564 getbalance
error: incorrect rpcuser or rpcpassword (authorization failed)
</code></pre>

<p>so s.th. is wrong with the sources? Or with Ubuntu setup. What kernel do you have (uname -a) ?</p>
