hendry@knuckles ~ $ bitcoin-cli backupwallet /home/hendry/backup.dat
error code: -1
error message:
boost::filesystem::status: Permission denied: "/home/hendry/backup.dat"

Reddit couldn't help me https://www.reddit.com/r/BitcoinBeginners/comments/aftb91/am_i_running_bitcoin_core/

This is no permission problem.

hendry@knuckles ~ $ touch backup.dat
hendry@knuckles ~ $ ls backup.dat
hendry@knuckles ~ $ rm backup.dat

I suspect the bitcoind -server which runs in isolation as "nobody" is trying to access my home directory, which is a bit of a concern. My user's .bitcoin directory looks fine:

hendry@knuckles ~ $ find .bitcoin/

1 Answer 1


The process writing the file is bitcoind, not bitcoin-cli, which is simply issuing RPC commands to the server.bitcoind needs to be able to write to the destination, which can’t be another users home folders unless you explicitly give it permission.

  • I don't understand this model. I have my private ~/.bitcoin directory with my private stuff there I hope. I interact with the blockchain with bitcoind. It makes no sense for the bitcoind to be able to write to my home folder from my perspective.
    – hendry
    Jan 19, 2019 at 2:47
  • The file list you posted is not of a synchronised node, by the way.
    – Claris
    Jan 19, 2019 at 2:49
  • synchronized afaict s.natalian.org/2019-01-19/1547890087_2548x1398.png
    – hendry
    Jan 19, 2019 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.