# Need password authentication for mongodb

**URL:** <https://forum.genieacs.com/t/need-password-authentication-for-mongodb/2107>\
**Category:** Uncategorized\
**Created:** [October 19, 2021, 6:06am UTC](https://forum.genieacs.com/t/need-password-authentication-for-mongodb/2107 "2021-10-19T06:06:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikheili23](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@mikheili23](https://forum.genieacs.com/u/mikheili23)\
**Post date:** [October 19, 2021, 6:06am UTC](https://forum.genieacs.com/t/need-password-authentication-for-mongodb/2107/1 "2021-10-19T06:06:00Z")

</div>

where i can change default mongodb conection with user password mongodb conection?

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [October 19, 2021, 4:07pm UTC](https://forum.genieacs.com/t/need-password-authentication-for-mongodb/2107/2 "2021-10-19T16:07:59Z")

</div>

Please refer to the [documentation](https://docs.genieacs.com/en/latest/environment-variables.html)…

---

<div class="post-metadata">

**Author:** ![Julian](https://avatars.discourse-cdn.com/v4/letter/j/74df32/32.png) [@Julian](https://forum.genieacs.com/u/Julian)\
**Post date:** [October 19, 2021, 4:39pm UTC](https://forum.genieacs.com/t/need-password-authentication-for-mongodb/2107/3 "2021-10-19T16:39:49Z")

</div>

On the Genieacs env, just set it like this GENIEACS\_MONGODB\_CONNECTION\_URL=mongodb:// **user:password** @127.0.0.1/genieacs

---

<div class="post-metadata">

**Author:** ![mikheili23](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@mikheili23](https://forum.genieacs.com/u/mikheili23)\
**Post date:** [December 24, 2021, 9:56am UTC](https://forum.genieacs.com/t/need-password-authentication-for-mongodb/2107/4 "2021-12-24T09:56:05Z")

</div>

thank you, where is this config file location?

---

<div class="post-metadata">

**Author:** ![Kumar](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Kumar](https://forum.genieacs.com/u/Kumar)\
**Post date:** [December 25, 2021, 5:35pm UTC](https://forum.genieacs.com/t/need-password-authentication-for-mongodb/2107/5 "2021-12-25T17:35:35Z")

</div>

> [@mikheili23](#):
>
> ge default mongodb conection with user password mongodb conection

db.config

---

<div class="post-metadata">

**Author:** ![Kumar](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@Kumar](https://forum.genieacs.com/u/Kumar)\
**Post date:** [December 29, 2021, 10:46am UTC](https://forum.genieacs.com/t/need-password-authentication-for-mongodb/2107/6 "2021-12-29T10:46:39Z")

</div>

cat /opt/genieacs/genieacs.env - will have all the environmental variables defined.

db.config.find() - will give you all the configuration present in the ACS for a device.
