Node-RED sudo permissions Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
William s
Posts: 2
Joined: Fri Mar 08, 2019 7:51 pm

Node-RED sudo permissions

Post by William s »

Hello community, I'm using the latest dietpi version.
I couldn't execute system command with nodered :( since it was worked with raspbian stretch
Eg: sudo shutdown now
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Node red

Post by MichaIng »

I think it is since the nodered by default has no sudo permissions. You can add these via:

Code: Select all

echo 'nodered ALL=NOPASSWD: ALL' > /etc/sudoers.d/nodered
William s
Posts: 2
Joined: Fri Mar 08, 2019 7:51 pm

Re: Node red

Post by William s »

Thanx it helped
User avatar
MichaIng
Site Admin
Posts: 2295
Joined: Sat Nov 18, 2017 6:21 pm

Re: Node red

Post by MichaIng »

Great. I added this info to our online docs: viewtopic.php?p=4292#p4292
Post Reply