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 default installation directory permissions #1375

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/standalone/standalone.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ func makeDefaultComponentsDir(installDir string) error {
}
}

os.Chmod(componentsDir, 0o777)
os.Chmod(componentsDir, 0o755)
return nil
}

Expand Down Expand Up @@ -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
}
Expand Down
Loading