Can I change the bitcoin block-data directory from /home/user/.bitcoin/blocks to something else?

1

I have two users on my Linux system, daemonuser, which runs bitcoind and abeuser, which runs Abe.

Whenever I start Abe, I am told:

Skipping datadir /home/daemonuser/.bitcoin/blocks: [Errno 13] Permission denied: '/home/daemonuser/.bitcoin/blocks/blk0001.dat'

Even after adding abeuser as a readable user on the /home/daemonuser/.bitcoin/blocks/ directory.

Would it be easier to keep bitcoin's blockdata in a public folder and read it from there for Abe's purposes?

user3145

Posted 2013-05-04T03:09:58.407

Reputation: 777

Question was closed 2013-05-06T00:16:21.640

That's for windows :S And bitcoinqt. Does the same work on bitcoind on linux? If so, awesome!user3145 2013-05-04T05:02:01.553

Bitcoind is exactly the same codebase as Bitcoin-Qt, only compiled without GUI. There's very little difference between the versions for different OS'es too. One notable exception is the location of the standard datadir.Pieter Wuille 2013-05-04T13:39:27.833

Asking about how to change the default storage location has been posted many, many times. The future canonical question is probably Bitcoin-Qt setup: Change block-chain file location, settings? documentation?. Possible duplicate of Bitcoin-Qt setup: Change block-chain file location, settings? documentation?.

Peter Mortensen 2014-08-01T12:32:40.650

Answers

1

Did you make the files in the .bitcoin/blocks/ directory readable for Abe? You can test this by logging in as Abe (sudo su abeuser should suffice) and typing strings ~daemonuser/.bitcoin/blocks/any.file.

Bram Geron

Posted 2013-05-04T03:09:58.407

Reputation: 111