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

fix dump stakerd.conf by permission denied #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fyInALT
Copy link

@fyInALT fyInALT commented Oct 15, 2024

Fix

 ./build/stakercli admin dump-config 

Failed by mkdir mode:

[btc-staker] open /home/fy/.stakerd/stakerd.conf: permission denied

it caused by use error mod:

if err := os.MkdirAll(dir, os.ModeDir); err != nil {

this will make path mode be:

d---------  2 fy   fy   4.0K Oct 15 09:33 .stakerd

Now we should use 0700, as dir 's mode.

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

Successfully merging this pull request may close these issues.

1 participant