[SOLVED] Escalation of privileges Node-red Erreur sudo vcgencmd measure_temp Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Stroked_Papy
Posts: 10
Joined: Wed Mar 27, 2019 11:14 am

[SOLVED] Escalation of privileges Node-red Erreur sudo vcgencmd measure_temp

Post by Stroked_Papy »

Hello
When I use under ssh and node-red, a simple Flow using
sudo vcgencmd measure_temp

or

sudo python /home/pi/Natacha/WiFi_Signal_Strength.py

I have an error
TypeError: Can not read property 'toFixed (1)' of undefined :cry:


Why
thank you
Attachments
Capture.JPG
Last edited by Stroked_Papy on Mon Jun 10, 2019 5:22 pm, edited 2 times in total.
j'ai eu un AVC ! je ne écris pas bien :) !!

had a stroke! I do not write well :) !!
Stroked_Papy
Posts: 10
Joined: Wed Mar 27, 2019 11:14 am

Re: Node-red Erreur sudo vcgencmd measure_temp

Post by Stroked_Papy »

Hello
I am with DIETPI
I think the problem is with I think the problem is related to the escalation of privileges :cry: . In visudo I put this

# User privilege specification
root ALL = (ALL: ALL) ALL
pi ALL = (ALL) NOPASSWD: ALL
admin ALL = (ALL) NOPASSWD: ALL
www-data ALL = (ALL) NOPASSWD: ALL

or

root ALL = (ALL: ALL) ALL
pi ALL = (ALL: ALL) ALL
admin ALL = (ALL: ALL) ALL
www-data ALL = (ALL: ALL) ALL

Thanks for your help :D
j'ai eu un AVC ! je ne écris pas bien :) !!

had a stroke! I do not write well :) !!
Stroked_Papy
Posts: 10
Joined: Wed Mar 27, 2019 11:14 am

Re: [SOLVED] Escalation of privileges Node-red Erreur sudo vcgencmd measure_temp

Post by Stroked_Papy »

Code: Select all

echo 'nodered ALL=NOPASSWD: ALL' > /etc/sudoers.d/nodered
j'ai eu un AVC ! je ne écris pas bien :) !!

had a stroke! I do not write well :) !!
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: [SOLVED] Escalation of privileges Node-red Erreur sudo vcgencmd measure_temp

Post by MichaIng »

The hint is already in our online docs: viewtopic.php?f=8&t=5&start=80#p4292
I am thinking to enable this by default: https://github.com/MichaIng/DietPi/issues/2910
Post Reply