Remove allow running as root

This commit removes the escape hatch for running Elasticsearch as root.

Relates #18694
This commit is contained in:
Jason Tedor 2016-06-02 05:03:28 -04:00
parent 56d86ef875
commit 3ccd59592a
1 changed files with 1 additions and 5 deletions

View File

@ -86,11 +86,7 @@ final class Bootstrap {
// check if the user is running as root, and bail
if (Natives.definitelyRunningAsRoot()) {
if (Boolean.parseBoolean(System.getProperty("es.insecure.allow.root"))) {
logger.warn("running as ROOT user. this is a bad idea!");
} else {
throw new RuntimeException("don't run elasticsearch as root.");
}
throw new RuntimeException("can not run elasticsearch as root");
}
// enable secure computing mode