title: Neo4j runs as root
body: <p>I've installed Neo4j testing on my brand new Ubuntu 13.10 minimal server.
  Usually Neo4j runs as the neo4j user, which is there, but mine runs as root.</p>
  
  <p>The configuration is default.</p>
  
  <p>How can I fix that?</p>
  
  <p><hr></p>
  
  <h1>Update</h1>
  
  <p>I do see a service running as <code>neo4j</code> and in <code>/etc/security/limits.conf</code> I have:</p>
  
  <pre><code>neo4j   soft    nofile  40000
  neo4j   hard    nofile  40000
  </code></pre>
  
  <p>But I still see the warnings about <em>Max 1024 open files allowed</em> and <em>not changing user</em>:</p>
  
  <pre><code>$ sudo service neo4j-service restart
   * Restarting Neo4j Graph Database neo4j
  WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
  Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
  Starting Neo4j Server...WARNING: not changing user
  process [2398]... waiting for server to be ready.... OK.
  http://localhost:7474/ is ready.
  </code></pre>