suid script

In solaris ( all other Unix’es too?) most script interpretators will ignore suid bit, and the effective user id is set to the real user id. To avoid this you can use specific options. For example -p for ksh and bash.