I am on Linux Mint.
I have added the SUID bit to a script using the following command:
chmod u+s script.sh
as confirmed by ll
(ls -laF
):
Now, if I login using another user, I can't execute the script.sh
file;
I get a "Permission denied" error:
What am I doing wrong?
ASAIK, SUID allows anybody to execute the program as the owner.