On my Beaglebone Black device, I want to run python code at startup which is shared here https://github.com/acseckin/hmrid. The python code requires super user privileges. The Debian version I used on the device was installed with the image "Debian 8.7 2017-03-19 4GB SD IOT". The code works fine from the terminal.
sudo python /home/debian/hmrid/runhmrid.py
Debian users and roots crontab does not work when I append the following line.
@reboot sudo python /home/debian/hmrid/runhmrid.py
But other code that does not require a super user is working perfectly when I add a crontab for a Debian user like
@reboot python /home/debian/hmrid/runNotSuperUser.py