Debian 12 bookworm
Sponsored Link

InfluxDB : Basic User Management2023/07/06

 
This is InfluxDB Basic User Management example.
[1] Add or delete InfluxDB users.
root@dlp:~#
influx -username admin -password adminpassword

Connected to http://localhost:8086 version 1.6.7~rc0
InfluxDB shell version: 1.6.7~rc0

# create [debian] user
# replace [userpassword] to any password
> create user debian with password 'userpassword' 

# create [serverworld] user with admin privilege
> create user serverworld with password 'userpassword' with all privileges 

> show users 
user        admin
----        -----
admin       true
debian      false
serverworld true

# add admin privilege to [debian] user
> grant all privileges to "debian" 

> show users 
user        admin
----        -----
admin       true
debian      true
serverworld true

# remove admin privilege from [debian] user
> revoke all privileges from "debian" 

# change [debian] user's password
> set password for "debian" = 'newpassword' 

# delete [debian] user
> drop user "debian" 

> exit
Matched Content