We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2c788a commit 41c47cfCopy full SHA for 41c47cf
1 file changed
src/polycubectl/config/config.go
@@ -85,7 +85,10 @@ func saveConfig(config Config) error {
85
return fmt.Errorf("error during json Marshal: %s", err.Error())
86
}
87
88
- os.MkdirAll(home+PathToConfigFile, 0600)
+ // Create a directory for the config file with read, write and execute
89
+ // permission for the current user (700)
90
+ // (both w and x are needed to edit the content of the dir)
91
+ os.MkdirAll(home+PathToConfigFile, 0700)
92
93
f, err := os.Create(home + PathToConfigFile + ConfigFile)
94
defer f.Close()
0 commit comments