# Dashboard keeps asking for login

**URL:** <https://forum.opensearch.org/t/dashboard-keeps-asking-for-login/25396>\
**Category:** OpenSearch Dashboards\
**Created:** [June 30, 2025, 10:22am UTC](https://forum.opensearch.org/t/dashboard-keeps-asking-for-login/25396 "2025-06-30T10:22:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OSMedia](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@OSMedia](https://forum.opensearch.org/u/OSMedia)\
**Post date:** [June 30, 2025, 10:22am UTC](https://forum.opensearch.org/t/dashboard-keeps-asking-for-login/25396/1 "2025-06-30T10:22:39Z")

</div>

Debian 11  
Opensearch 3.1.0

I have successfully installed both opensearch and opensearch-dashboards on my local debian system using apt (not docker). Since this is only for local dev/testing purposes I don’t need the extra security (TLS and login). I followed all the the hints on the web on how to disable security and login but nothing seems to work. Whenever I try to access the dashboard I get redirected to a login page.

**opensearch.yml**

```auto
cluster.name: opensearch
node.name: node-1
network.host: 0.0.0.0
http.port: 9201

discovery.type: single-node
plugins.security.disabled: true

node.max_local_storage_nodes: 3

path.data: /var/lib/opensearch
path.logs: /var/log/opensearch

```

Since I am also running elasticsearch on this machine, I moved the port to 9201.

**opensearch-dashboard.yml**

```auto
server.host: "0.0.0.0"
opensearch.hosts: ["http://localhost:9201"]

```

Both services are running fine according to `systemctl`.

What am I doing wrong?

Thank you

---

<div class="post-metadata">

**Author:** ![Anthony](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/anthony/32/9939_2.png) [@Anthony](https://forum.opensearch.org/u/Anthony)\
**Post date:** [June 30, 2025, 10:29am UTC](https://forum.opensearch.org/t/dashboard-keeps-asking-for-login/25396/2 "2025-06-30T10:29:40Z")

</div>

@OSMedia did you remove security plugin on OSD? You can use the [docs](https://docs.opensearch.org/docs/latest/security/configuration/disable-enable-security/#rpm-and-debian) for more details.

Can you also check if you can successfully curl to http endpoint directly?

---

<div class="post-metadata">

**Author:** ![OSMedia](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@OSMedia](https://forum.opensearch.org/u/OSMedia)\
**Post date:** [June 30, 2025, 10:44am UTC](https://forum.opensearch.org/t/dashboard-keeps-asking-for-login/25396/3 "2025-06-30T10:44:34Z")

</div>

`curl -X GET http://localhost:9201/`

```auto
{
  "name" : "node-1",
  "cluster_name" : "opensearch",
  "cluster_uuid" : "ss-lqjNLRdGUylrf9ZluYg",
  "version" : {
    "distribution" : "opensearch",
    "number" : "3.1.0",
    "build_type" : "deb",
    "build_hash" : "8ff7c6ee924a49f0f59f80a6e1c73073c8904214",
    "build_date" : "2025-06-21T08:05:38.757936053Z",
    "build_snapshot" : false,
    "lucene_version" : "10.2.1",
    "minimum_wire_compatibility_version" : "2.19.0",
    "minimum_index_compatibility_version" : "2.0.0"
  },
  "tagline" : "The OpenSearch Project: https://opensearch.org/"
}

```

And yes, I followed the doc’s instructions to the T.

---

<div class="post-metadata">

**Author:** ![OSMedia](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@OSMedia](https://forum.opensearch.org/u/OSMedia)\
**Post date:** [June 30, 2025, 12:52pm UTC](https://forum.opensearch.org/t/dashboard-keeps-asking-for-login/25396/4 "2025-06-30T12:52:58Z")

</div>

After a little back and forth with ChatGPT i had an epiphany. I checked the ownership of `/var/log/opensearch-dashboards/`. It was set to `opensearch-dashboards:adm`. I changed that to `opensearch-dashboards:opensearch-dashboards` and restarted the service.  
All of a sudden it worked.
