Yes, it’s definitely possible. You need to run influxd recovery auth create-operator
(documentation here: influxd recovery auth create-operator | InfluxDB OSS v2 Documentation).
There are some gotcha’s you need to be aware of:
- You can only run this command while the influxd service is not running. If you’re using docker, it’s not obvious how to proceed, but you can follow the instructions posted here: Best practice of stopping InfluxDB inside a docker container without stopping the container - #8 by tkohhh
- By default, this will update the bolt file in this path:
~/.influxdbv2/influxd.bolt
In some cases, that’s not the correct location of your live bolt file. If that’s the case, you’ll need to specify the correct path using--bolt-path
- Make sure you include the
--org
and--username
as these are required.
I hope this helps!