diff --git a/node.go b/node.go index 45740ff..6a4f2d0 100644 --- a/node.go +++ b/node.go @@ -41,13 +41,13 @@ func InitNodeUUID() (*uuid.UUID, error) { } func createNodeUUID() (*uuid.UUID, error) { - err := os.MkdirAll(CONFIG_PATH, 0600) + err := os.MkdirAll(CONFIG_PATH, 0755) if err != nil { return nil, err } mode := os.O_RDWR | os.O_CREATE | os.O_EXCL - f, err := os.OpenFile(UUID_PATH, mode, 0600) + f, err := os.OpenFile(UUID_PATH, mode, 0644) if err != nil { return nil, err }