I'm fairly new to linux permissions. I have a Python script that does things such as run shell scripts, dd, ntfsclone, ntfsresize. Many of which require me to sudo and enter a password. The requirements are that the script should run on boot and not require a password of the user.
I have added various things to sudoers:
none of these seem to work. When I run
username ALL=(ALL) ALL
username ALL=NOPASSWD: /path/to/my/script.py
username ALL=NOPASSWD: /usr/bin/python,/bin/dd,/bin/sh
it gets to the point in the script where it is running
and asks for a password.
Thanks for any help!