Hi, I also cannot mv a file or cp and rm due to permission errors.
sudo -u openhab mv file1.sh file2.sh
I already added openhab to sudoers as mentioned here.
So for adding the user openhab with no password:
sudo visudo -f /etc/sudoers.d/010_pi-nopasswd
I added
openhab ALL=(ALL) NOPASSWD: ALL
I also added directly into sudo visudo
openhab ALL=(ALL:ALL) ALL
What am I missing? I am able to execute through executeCommandLine
python scripts but when I use a library to move such as shutil shutil.mv
I return to same issue of permission errors.