What about using sudo?
As root, create the script, “chmod u+s script” it.
I’ve read that many current UNIXes ignore suid bit on scripts.
I hoped that QNX4 does this too.
XTang, which version does your advise relate to?
Yes, “current UNIXes”. Neither QNX 4 nor QNX 6 is considered that
So, setuid script will work.