title: InfluxDB can create the first user only when auth is turned off
body: <p>Is there a way of creating an user in InfluxDB with authentication enabled? Disclaimer: I am a novice to InfluxDB.</p>
  
  <p>I created a Docker container running InfluxDB with authentication enabled by setting <code>auth-enabled = true</code> in <code>http</code> section of the <code>influxdb.conf</code> file.</p>
  
  <pre><code>[http]
    ...
    # Determines whether user authentication is enabled over HTTP/HTTPS.
    auth-enabled = true
    ...
  </code></pre>
  
  <p>As there are no users, I tried to create one using the following command:</p>
  
  <pre><code>docker exec influxdb influx -execute "create user admin with password 'blabla' with all privileges"
  </code></pre>
  
  <p>However, this fails with</p>
  
  <pre><code>"stdout": "ERR: error authorizing query: no user provided
  </code></pre>
  
  <p>So it is kind of a chicken-and-egg problem. You cannot create a user, because this requires logging in as a user in the first place.</p>
  
  <p>It works when authentication is disabled. So I can do the following:</p>
  
  <ol>
  <li>Create config with authentication disabled.</li>
  <li>Start InfluxDB</li>
  <li>Create users</li>
  <li>Change config so authentication is now enabled.</li>
  <li>Restart InfluxDB</li>
  </ol>
  
  <p>but in that case I have to store the config in a specific Docker volume and it still leaves a window when anybody could log in without authentication. So it can be automated, but it is not an elegant solution.</p>
  
  <p>Is there an elegant solution for this problem?</p>