3
I'm setting up and hardening a dedicated headless bitcoind and lightning daemon and wanted to have a discussion about location of the bitcoin.conf.
Item #1:
Bitcoind defaults to using ~/.bitcoin/bitcoin.conf, presumably because keeping all relevant files in one location makes it easier to copy and/or share the blockchain between different machines. Are there security implications to this? Is it substantively safer to store bitcoin.conf in /etc instead (such as /etc/bitcoind/bitcoin.conf)?
One argument against using ~/home/.bitcoin/bitcoin.conf I thought of is the RPC Password is be stored in the .conf file and could be viewed by anyone with read access. So it is less readable in ~/home or in /etc?
I'd get +1 POSIX-style-points for using /etc...
One argument against using /etc/bitcoind/bitcoin.conf is portability. It is less convenient to have the .conf file in a separate location. Less convenient means greater chance of mistake or error sometime down the road.
Item #2
Similar to #1, besides +1 style points, is there any advantage to moving logs to /var/log? My understanding is bitcoind already rotates logs, but is there an advantage to how systemd does log rotation in /var/log?
1
You "wanted to have a discussion" -- remember this is not a discussion forum. According the the [help/dont-ask] we should avoid open-ended chatty questions for the reasons given there. Your Item #2 is mostly off-topic here and would best be answered by reading existing answers in (for example) our sister-site https://serverfault.com
– RedGrittyBrick – 2018-11-09T10:50:47.2931OK, so I changed my mind. I don't want to 'have a discussion' I simply want an answer to the following question:
Is it "best" to keep bitcoin.conf in /etc/ or in ~/home/.bitcoin? – Mike – 2018-11-09T16:41:36.470