Hi there,
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:
Code:
username ALL=(ALL) ALL
username ALL=NOPASSWD: /path/to/my/script.py
username ALL=NOPASSWD: /usr/bin/python,/bin/dd,/bin/sh
none of these seem to work. When I run
it gets to the point in the script where it is running
Code:
os.system("./shellscript.sh")
and asks for a password.
Thanks for any help!
-Jolladay
Bookmarks