Eric, you can.
chown root.system
chmod u=rws,g=rx,o=rx
As well as making the file owned by root, and turning SetUID on to mean the
script runs as its owner, you also need to give other users execute permission on
the file.
Regarding running shells scripts as root, you could perhaps compile the
Eric,
I recall that running scripts with suid set is disallowed. A reference is
given in the O'Reilly "Learning the Bash Shell" book, 2nd Ed., page 255.
"Modern system administration wisdom says that creating suid shell scripts is
a very, very bad idea. In fact, some versions of UNIX intenti
I've RTFM, and then read it again, I'm missing something OBVIOUS.
I'm trying to build a simple script which executes one line, but it
needs root permission. So, I built the one line script, did a chown
root.system script ; chmod 6755 script.
However it acts like the script is running still as t