diff --git a/pkg/standalone/standalone.go b/pkg/standalone/standalone.go index bd2761f82..64e7e2905 100644 --- a/pkg/standalone/standalone.go +++ b/pkg/standalone/standalone.go @@ -724,7 +724,7 @@ func makeDefaultComponentsDir(installDir string) error { } } - os.Chmod(componentsDir, 0o777) + os.Chmod(componentsDir, 0o755) return nil } @@ -1030,12 +1030,12 @@ func checkAndOverWriteFile(filePath string, b []byte) error { } func prepareDaprInstallDir(daprBinDir string) error { - err := os.MkdirAll(daprBinDir, 0o777) + err := os.MkdirAll(daprBinDir, 0o755) if err != nil { return err } - err = os.Chmod(daprBinDir, 0o777) + err = os.Chmod(daprBinDir, 0o755) if err != nil { return err }