diff --git a/cmd/fs-v1.go b/cmd/fs-v1.go index 784a623cf..a39678acb 100644 --- a/cmd/fs-v1.go +++ b/cmd/fs-v1.go @@ -140,7 +140,7 @@ func NewFSObjectLayer(fsPath string) (ObjectLayer, error) { } else { username = "" } - hint := fmt.Sprintf("Use 'sudo chown %s %s && sudo chmod u+rxw %s' to provide sufficient permissions.", username, fsPath, fsPath) + hint := fmt.Sprintf("Use 'sudo chown -R %s %s && sudo chmod u+rxw %s' to provide sufficient permissions.", username, fsPath, fsPath) return nil, config.ErrUnableToWriteInBackend(err).Hint(hint) } diff --git a/cmd/storage-rest-server.go b/cmd/storage-rest-server.go index d4404c7b7..7a8a5d01c 100644 --- a/cmd/storage-rest-server.go +++ b/cmd/storage-rest-server.go @@ -820,7 +820,7 @@ func registerStorageRESTHandlers(router *mux.Router, endpointZones EndpointZones } else { username = "" } - hint := fmt.Sprintf("Run the following command to add the convenient permissions: `sudo chown %s %s && sudo chmod u+rxw %s`", username, endpoint.Path, endpoint.Path) + hint := fmt.Sprintf("Run the following command to add the convenient permissions: `sudo chown -R %s %s && sudo chmod u+rxw %s`", username, endpoint.Path, endpoint.Path) logger.Fatal(config.ErrUnableToWriteInBackend(err).Hint(hint), "Unable to initialize posix backend") }