# adminAuth for Login

**URL:** <https://discourse.nodered.org/t/adminauth-for-login/8475>\
**Category:** General\
**Created:** [28 February 2019 14:45 UTC](https://discourse.nodered.org/t/adminauth-for-login/8475 "2019-02-28T14:45:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hebergeweb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hebergeweb/32/6394_2.png) [@hebergeweb](https://discourse.nodered.org/u/hebergeweb)\
**Post date:** [28 February 2019 14:45 UTC](https://discourse.nodered.org/t/adminauth-for-login/8475/1 "2019-02-28T14:45:07Z")

</div>

I commented "adminAuth:" in the settings.js file, but authentication remains.  
And otherwise i change login and password but still login failed.  
And i try to reinstall node-red but same problem  
so how to access directly without login to 127.0.0.1:1880

 ![log](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/7d7c6b848646a69b1fbb6d7947adef7769be3c89.png)

---

<div class="post-metadata">

**Author:** ![hebergeweb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hebergeweb/32/6394_2.png) [@hebergeweb](https://discourse.nodered.org/u/hebergeweb)\
**Post date:** [28 February 2019 15:34 UTC](https://discourse.nodered.org/t/adminauth-for-login/8475/2 "2019-02-28T15:34:33Z")

</div>

I have resolved!

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [28 February 2019 15:41 UTC](https://discourse.nodered.org/t/adminauth-for-login/8475/3 "2019-02-28T15:41:58Z")

</div>

How? So if other people find this thread they can learn from what you did...

---

<div class="post-metadata">

**Author:** ![hebergeweb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hebergeweb/32/6394_2.png) [@hebergeweb](https://discourse.nodered.org/u/hebergeweb)\
**Post date:** [1 March 2019 08:25 UTC](https://discourse.nodered.org/t/adminauth-for-login/8475/4 "2019-03-01T08:25:53Z")

</div>

for the first time, I modified the settings.js file under this path / usr / lib / node\_modules / node\_red: **it's false**  
but the **solution is** to modify the settings.js file under the folder /root/.node\_red/

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [1 March 2019 08:40 UTC](https://discourse.nodered.org/t/adminauth-for-login/8475/5 "2019-03-01T08:40:54Z")

</div>

That should generally be the settings.js file under the user who is running Node-RED.  
so for example of a pi. If using the user pi you generally be using the file in /home/pi/.node-red

(the settings.js file gets copied into this directory the first time you run Node-RED)

This is documented here: [https://nodered.org/docs/configuration](https://nodered.org/docs/configuration)

Unless there is a specific reason to run as root it advisable not to.
