exec command in node red

hello, i’m having trouble to set the time…

As the title says the error comes in the exec node in node-red it says in stderr the following:
Command failed: date -s “2022-04-24 05:14”
date: cannot set date: Operation not permitted

maybe i have to add the user node red to the sudoers group or something like that?

thanks in advance

Yes I guess you need to put nodered user inside sudoers and execute the command using sudo

thanks for the reply how exactly i have to add to the sudoers group?

Have a look to following small guide I found on the web https://www.linuxfordevices.com/tutorials/linux/adding-users-to-sudoers
Relevant should be point #2