Remove allow running as root
This commit removes the escape hatch for running Elasticsearch as root. Relates #18694
This commit is contained in:
parent
56d86ef875
commit
3ccd59592a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue