mirror of https://github.com/minio/minio.git
extend the HINT on backend ownership and its contents (#9846)
This commit is contained in:
parent
087aaaf894
commit
a91cfa03e7
|
@ -140,7 +140,7 @@ func NewFSObjectLayer(fsPath string) (ObjectLayer, error) {
|
||||||
} else {
|
} else {
|
||||||
username = "<your-username>"
|
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)
|
return nil, config.ErrUnableToWriteInBackend(err).Hint(hint)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -820,7 +820,7 @@ func registerStorageRESTHandlers(router *mux.Router, endpointZones EndpointZones
|
||||||
} else {
|
} else {
|
||||||
username = "<your-username>"
|
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")
|
logger.Fatal(config.ErrUnableToWriteInBackend(err).Hint(hint), "Unable to initialize posix backend")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue