extend the HINT on backend ownership and its contents (#9846)

master
ebozduman 4 years ago committed by GitHub
parent 087aaaf894
commit a91cfa03e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      cmd/fs-v1.go
  2. 2
      cmd/storage-rest-server.go

@ -140,7 +140,7 @@ func NewFSObjectLayer(fsPath string) (ObjectLayer, error) {
} else {
username = "<your-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)
}

@ -820,7 +820,7 @@ func registerStorageRESTHandlers(router *mux.Router, endpointZones EndpointZones
} else {
username = "<your-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")
}

Loading…
Cancel
Save