ERR: 401 Unauthorized: unauthorized access while ruinng influx commands

I am new to the influxdb2.6. Getting authorization denied while running influx commands. Can anyone please help me on this

I think this can be useful for your situation

You can also check this post with a similar case