Solaris 10 SUID
807557Mar 27 2008 — edited Apr 3 2008Hi,
I have a slight complication here. Is there any new feature in Solaris 10 that is not letting me run set uid scripts the way it is supposed to run?
For eg;
# ls -l troy
-r-sr-sr-x 1 root sys 3 Mar 27 01:15 troy
# cat troy
id
#
when i am running this as a normal user,
% id
uid=33441 gid=60010
% which troy
/usr/bin/troy
% troy
uid=33441 gid=60010
% ls -l `which troy`
-r-sr-sr-x 1 root sys 3 Mar 27 01:15 /usr/bin/troy
why is it showing the normal user's id and not the root id?
I wrote the same program in C and that too did the same thing...
However there are other suid files like sudo and passwd in the same FS which are executing just fine
Am i lacking some basic concepts here?
Thanks in advance