Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btcd creates home directory unconditionally despite --configfile --datadir --logdir cli arguments and rpc disabled #1483

Open
lestephane opened this issue Oct 29, 2019 · 0 comments

Comments

@lestephane
Copy link

I'm trying to run btcd as an unprivileged user who does not have a HOME directory (ie the home in /etc/passwd points to a /non-existing-location), and can only read and write to the necessary files btcd.conf, data/ directory and log/ directory. I have not turned on rpc in btcd.conf, so I don't care to define the RPC key and cert file, but I could down the line, making the use of defaultHomeDir completely redundant.

line 516 in config.go v0.20.0-beta creates the home unconditionally.

err = os.MkdirAll(defaultHomeDir, 0700)

Have you considered adding a --homedir directory cli argument, that I could point to an existing empty, non-writable directory for my use case?

@lestephane lestephane changed the title btcd insists on wanting to create a home directory despite being given --configfile --datadir --logdir cli arguments btcd creates home directory unconditionally despite being given --configfile --datadir --logdir cli arguments Oct 29, 2019
@lestephane lestephane changed the title btcd creates home directory unconditionally despite being given --configfile --datadir --logdir cli arguments btcd creates home directory unconditionally despite --configfile --datadir --logdir cli arguments and rpc disabled Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant