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 ?
Hi.
I’m sorry for the delay in my response.
Can you try running the commands starting with “sudo”?
Regards,
Sara
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
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