diff --git a/pkg/minikube/bootstrapper/exec_runner.go b/pkg/minikube/bootstrapper/exec_runner.go index bdc39599489f..39863eda577c 100644 --- a/pkg/minikube/bootstrapper/exec_runner.go +++ b/pkg/minikube/bootstrapper/exec_runner.go @@ -87,7 +87,7 @@ func (*ExecRunner) Copy(f assets.CopyableFile) error { if err != nil { return errors.Wrapf(err, "error creating file at %s", targetPath) } - perms, err := strconv.Atoi(f.GetPermissions()) + perms, err := strconv.ParseInt(f.GetPermissions(), 8, 0) if err != nil { return errors.Wrapf(err, "error converting permissions %s to integer", f.GetPermissions()) } diff --git a/pkg/minikube/machine/cache_binaries.go b/pkg/minikube/machine/cache_binaries.go index b21c76d85a0f..cd1a083d5c38 100644 --- a/pkg/minikube/machine/cache_binaries.go +++ b/pkg/minikube/machine/cache_binaries.go @@ -85,7 +85,7 @@ func CacheBinary(binary, version string) (string, error) { // CopyBinary copies previously cached binaries into the path func CopyBinary(cr bootstrapper.CommandRunner, binary, path string) error { - f, err := assets.NewFileAsset(path, "/usr/bin", binary, "0641") + f, err := assets.NewFileAsset(path, "/usr/bin", binary, "0755") if err != nil { return errors.Wrap(err, "new file asset") }