You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
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
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.Have you considered adding a --homedir directory cli argument, that I could point to an existing empty, non-writable directory for my use case?
The text was updated successfully, but these errors were encountered: