title: solr installation, cannot start examples
body: <p>First: I want to learn solr. So I want to execute the quickstart tutorial from <a href="http://lucene.apache.org/solr/quickstart.html" rel="nofollow noreferrer">http://lucene.apache.org/solr/quickstart.html</a></p>
  
  <p>On ubuntu 14.04 64 bit I installed solr the following way:</p>
  
  <p>In /opt per wget I took the latest version 6.3.0. This was made as root.</p>
  
  <p>Then I extracted the service installation file by</p>
  
  <pre><code>tar xzf solr-6.3.0.tgz solr-6.3.0/bin/install_solr_service.sh --strip-components=2
  </code></pre>
  
  <p>Also by root!</p>
  
  <p>I let it run by</p>
  
  <pre><code>sudo ./install_solr_service.sh solr-6.3.0.tgz
  </code></pre>
  
  <p>that led to user/group solr, started solr as a service, made a symlink from /opt/solr to /opt/solr-6.3.0, made solr.home to /var/solr with user solr as owner etc.</p>
  
  <p>Solr is started as expected so <a href="http://localhost:8983/solr/#/" rel="nofollow noreferrer">http://localhost:8983/solr/#/</a> shows me the dash in the browser.</p>
  
  <p>I stop with the usual command</p>
  
  <pre><code>service solr stop 
  </code></pre>
  
  <p>the service to start the examples.</p>
  
  <p><strong>And here the problem:</strong></p>
  
  <p>When I start as root:</p>
  
  <pre><code>root@duke:/opt/solr# bin/solr start -e cloud -noprompt
  </code></pre>
  
  <p>here the results:</p>
  
  <p>"Welcome to the SolrCloud example!</p>
  
  <p>Starting up 2 Solr nodes for your example SolrCloud cluster.</p>
  
  <p>Solr home directory /opt/solr/example/cloud/node1/solr already exists.
  /opt/solr/example/cloud/node2 already exists.</p>
  
  <p>Starting up Solr on port 8983 using command:
  /opt/solr/bin/solr start -cloud -p 8983 -s "/opt/solr/example/cloud/node1/solr"</p>
  
  <p>WARNING: Starting Solr as the root user is a security risk and not considered best practice. Exiting.
           Please consult the Reference Guide. To override this check, start with argument '-force'</p>
  
  <p>ERROR: Process exited with an error: 1 (Exit value: 1)"</p>
  
  <p>So root is not the correct owner, which I understand because there is a new user solr created.</p>
  
  <p>Then I change to solr as user to start the examples:</p>
  
  <pre><code>solr@duke:/opt/solr$ bin/solr start -e cloud -noprompt
  </code></pre>
  
  <p>"Welcome to the SolrCloud example!</p>
  
  <p>Starting up 2 Solr nodes for your example SolrCloud cluster.</p>
  
  <p>Creating Solr home directory /opt/solr/example/cloud/node1/solr</p>
  
  <p>ERROR: Destination '/opt/solr/example/cloud/node1/solr' directory cannot be created"</p>
  
  <p>So the first test as root give me no permission because of solr and the second one as user solr give me no permission to create directories/files.</p>
  
  <p>What is to do???</p>