Browse Source

Remove allow running as root

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

Relates #18694
Jason Tedor 9 years ago
parent
commit
3ccd59592a
1 changed files with 1 additions and 5 deletions
  1. 1 5
      core/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java

+ 1 - 5
core/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java

@@ -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