• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Secure Dashboard Node-red

Q&A Forum › Secure Dashboard Node-red
0 Vote Up Vote Down
Horst Karstens asked 11 months ago

Page 86-87 of “Smart Home” book deals about making the Node red dashboard secure by username and Password.I worked throught all steps, copying as described username and passcode, but when I try to save the changes to the node-red settings.js file, it sais I do not have permissions to do that.
[ Error writing /home/horaika/.node-red/settings.js: Permission denied ]
or
[ File ‘/home/horaika/.node-red/settings.js’ is unwritable ]
How can I access/write changes to the settings.js File ?

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 11 months ago

Hi.
I’m sorry for the delay in my response.
 
Can you try running the commands starting with “sudo”?
 
Regards,
Sara
 

0 Vote Up Vote Down
Horst Karstens answered 11 months ago

Hello Sara,
thx for reply ! It worked now with a leading “sudo”, but I face another problem now.
I worked down the change procedure as described in the book, copy and paste the user name an pass-string as described into httpNodeAuth, removed the two dashes at the beginning of the line, saved the setting file and did reboot the pi.
When I start the Node Red Editor with 192…….:1880 it ask for my username and password and the editor starts as expected. When openening another browser window witjh 192…….:1880/ui a login window appears as expected, but my user name und password, which works fine with the editor, does not work wit the dashboard. I cannot longer start the dashboard at all. 
I did walk through the complete change process 3 times now to ensure I didn´t make anything wrong during the copy and paste steps, but the result is allways the same, dashboard cannot be entered anylonger.
Any suggestion what to do ?
Kind regards
Horst

0 Vote Up Vote Down
Sara Santos Staff answered 11 months ago

Hi.
I’m not sure what might be wrong.
I’m sharing these two links that might be useful to help you troubleshoot the issue.
https://nodered.org/docs/user-guide/runtime/securing-node-red
https://discourse.nodered.org/t/allow-the-user-to-change-his-her-password-for-dashboard-ui/22214/22
 
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.