diff --git a/pkg/api/config/config.go b/pkg/api/config/config.go index 8c850d667..81739b3ef 100644 --- a/pkg/api/config/config.go +++ b/pkg/api/config/config.go @@ -50,7 +50,7 @@ func (c *Config) SetupConfig() error { } confPath := path.Join(u.HomeDir, ".minio") - if err := os.MkdirAll(confPath, os.ModeDir); err != nil { + if err := os.MkdirAll(confPath, 0700); err != nil { return iodine.New(err, nil) }