From a91cfa03e79f7f66c8d5503ad119b2db36babdfd Mon Sep 17 00:00:00 2001 From: ebozduman Date: Tue, 16 Jun 2020 15:32:29 -0700 Subject: [PATCH] extend the HINT on backend ownership and its contents (#9846) --- cmd/fs-v1.go | 2 +- cmd/storage-rest-server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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") }