Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Solaris 10 SUID

807557Mar 27 2008 — edited Apr 3 2008
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2008
Added on Mar 27 2008
12 comments
1,076 views