Bitcoin Forum
May 05, 2024, 01:28:20 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Additional local node user - Linux Debian 10  (Read 99 times)
ilija_gromovnik (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
December 09, 2019, 12:58:52 PM
 #1

Hi to all,

##Description of problem
Is it possible to have additional local node user? The user should be able to connect to the node via JSON-RPC, bitcoin-cli utility. On a local "node-user", with .bitcoin directory and blockchain data, everything 'just works'.

On the 2nd local user I am getting error: "Authorization failed: Incorrect rpcuser or rpcpassword". It must be a small stupid error, but I can not find where the problem is.
If I add .cookie file to user2 directory I can connect to my node, but if I try with password I get the error Authorization failed?

$tail -f n 5 debug.log
2019-12-06T17:06:20Z ThreadRPCServer incorrect password attempt from 127.0.0.1:43492


##System Details
debian 10, updated
btc core "version": 180100
only localhost RPC connections are allowed
rpc port 8332
rpcauth authentication (salt/hash created with rpcauth.py)
firewall port open 8333

###user1 - node user with blockchain data & config - everything works as it should

~/.bitcoin/bitcoin.conf
##
## bitcoin.conf configuration file. Lines beginning with # are comments.
##
server=1
port=8333
rpcport=8332
maxconnections=90
keypool=100
minrelaytxfee=0.000015
limitfreerelay=5
maxmempool=250
onlynet=ipv4
addresstype=p2sh-segwit
#The second method rpcauth
rpcauth=user2:xxxxxx

#rpcallowip=127.0.0.1
#rpcbind=127.0.0.1
#rpcuser=user
#rpcpassword=pass


###user2 - localhost

$ bitcoin-cli -rpcuser=user2 -rpcpassword=pass-gen-by-rpcauth.py   help
error: Authorization failed: Incorrect rpcuser or rpcpassword



Regards,
gromovnik
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!