# ERR: received status code 401 from server

**URL:** <https://community.influxdata.com/t/err-received-status-code-401-from-server/24804>\
**Category:** InfluxDB 1\
**Created:** [April 27, 2022, 9:05am UTC](https://community.influxdata.com/t/err-received-status-code-401-from-server/24804 "2022-04-27T09:05:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mayelle26](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/mayelle26/32/9920_2.png) [@Mayelle26](https://community.influxdata.com/u/Mayelle26)\
**Post date:** [April 27, 2022, 9:05am UTC](https://community.influxdata.com/t/err-received-status-code-401-from-server/24804/1 "2022-04-27T09:05:30Z")

</div>

Hi everyone, I’m trying to install the tig package on my ubuntu 18.04 VM (via GCP), but I get an error when I create database like this:

```auto
influx
Connected to http://localhost:8086 version v2.2.0
InfluxDB shell version: 1.8.10
> CREATE DATABASE db_baronnies
ERR: received status code 401 from server

```

Do you have a solution for me?  
Thank you for your answers

---

<div class="post-metadata">

**Author:** ![Giovanni\_Luisotto](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/giovanni_luisotto/32/4017_2.png) [@Giovanni\_Luisotto](https://community.influxdata.com/u/Giovanni_Luisotto)\
**Post date:** [April 27, 2022, 12:27pm UTC](https://community.influxdata.com/t/err-received-status-code-401-from-server/24804/2 "2022-04-27T12:27:38Z")

</div>

> 401 Unauthorized

The user you are using does not have the proper [permission](https://docs.influxdata.com/influxdb/v1.8/administration/authentication_and_authorization/#user-types-and-privileges).

---

<div class="post-metadata">

**Author:** ![Raph](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/raph/32/10176_2.png) [@Raph](https://community.influxdata.com/u/Raph)\
**Post date:** [May 17, 2022, 11:39am UTC](https://community.influxdata.com/t/err-received-status-code-401-from-server/24804/4 "2022-05-17T11:39:27Z")

</div>

And how do you give it permission?  
I’ve tried `auth` but I still get the error, no matter what query I type.

---

<div class="post-metadata">

**Author:** ![Giovanni\_Luisotto](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/giovanni_luisotto/32/4017_2.png) [@Giovanni\_Luisotto](https://community.influxdata.com/u/Giovanni_Luisotto)\
**Post date:** [May 17, 2022, 12:55pm UTC](https://community.influxdata.com/t/err-received-status-code-401-from-server/24804/5 "2022-05-17T12:55:53Z")

</div>

The `auth` command does not return any result, if you pass a wrong username or password it won’t tell you, and you will keep getting `401 Unauthorized`

Every time I use `auth` the first query I run is `SHOW DATABASES` to ensure I got it right…
