I created a simple script called test that says the following:
to test out learning the SUID bit. The script is owned by root, and I did:
chmod 777 test
chmod u+s test
The permissions now read rwsrwxrwx, but when I try to execute the file as another user, it says init: must be superuser.
I thought the suid bit allows a script to execute as the script's owner, in this case root. Is there possibly some security measure that can prevent this execution?