# Different password for node red and dashboard?

**URL:** https://discourse.nodered.org/t/different-password-for-node-red-and-dashboard/25745
**Category:** Dashboard
**Created:** [29 April 2020 13:31 UTC](https://discourse.nodered.org/t/different-password-for-node-red-and-dashboard/25745 "2020-04-29T13:31:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![martin8094](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@martin8094](https://discourse.nodered.org/u/martin8094)
#### Post date: [29 April 2020 13:31 UTC](https://discourse.nodered.org/t/different-password-for-node-red-and-dashboard/25745/1 "2020-04-29T13:31:34Z")

</div>

Hi, Is it possible to set a different password for the ui dashboard than that of node red. I want to have node red accessible with one password and the dashboard with another. I am using a raspberry pi. If possible some instructions would be great.

---

<div class="post-metadata">

### Author: ![martin8094](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@martin8094](https://discourse.nodered.org/u/martin8094)
#### Post date: [1 May 2020 09:55 UTC](https://discourse.nodered.org/t/different-password-for-node-red-and-dashboard/25745/2 "2020-05-01T09:55:26Z")

</div>

All figured out

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [1 May 2020 10:17 UTC](https://discourse.nodered.org/t/different-password-for-node-red-and-dashboard/25745/3 "2020-05-01T10:17:07Z")

</div>

Good stuff.

Note...  
It would be good for anyone searching the forum who comes across your thread have the answer or a link to the document that showed you how.

---

<div class="post-metadata">

### Author: ![martin8094](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@martin8094](https://discourse.nodered.org/u/martin8094)
#### Post date: [1 May 2020 13:24 UTC](https://discourse.nodered.org/t/different-password-for-node-red-and-dashboard/25745/4 "2020-05-01T13:24:11Z")

</div>

In settings.js  
The following is the section controls the node red password:

// Securing Node-RED  
// -----------------  
// To password protect the Node-RED editor and admin API, the following  
// property can be used. See [http://nodered.org/docs/security.html](http://nodered.org/docs/security.html) for details.  
//adminAuth: {  
// type: "credentials",  
// users: [{  
// username: "admin",  
// password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN.",  
// permissions: "\*"  
// }]  
//},

Section of Settings.js which controls the Dashboard (UI) password:

//To password protect the node-defined HTTP endpoints (httpNodeRoot), or  
//the static content (httpStatic), the following properties can be used.  
// The pass field is a bcrypt hash of the password.  
// See [http://nodered.org/docs/security.html#generating-the-password-hash](http://nodered.org/docs/security.html#generating-the-password-hash)  
//httpNodeAuth: **{user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."},**

Note: To edit node red setting.js file. Open file manager (folder icon on raspberry pi dashboard). In folder path bar, search - /home/pi/.node-red and open the setting file.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [15 May 2020 13:24 UTC](https://discourse.nodered.org/t/different-password-for-node-red-and-dashboard/25745/5 "2020-05-15T13:24:12Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
