mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 20:50:22 +03:00
extend the HINT on backend ownership and its contents (#9846)
This commit is contained in:
+1
-1
@@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user