I have a python script that I want any user to be able to run as root. I understand the risks, but I am the only the user on this machine. Here is what I have done:
Here is what the permissions of script.py look like:
Any idea why this doesn't work
Code:
root# chown root script.py
root# chmod 4755 script.py
user$ python script.py
operation not permitted
Here is what the permissions of script.py look like:
Code:
-rwsr-xr-x 1 root
Any idea why this doesn't work