Hello,
I KNOW suid script doesn't work and it is better so.
But on my HP-UX machine i can do the following:
Let say i have a c_program (RWSR_XR_X c_program)
The c_program does the following:
system("/home/user1/hello")
"hello" is a shell script (ksh)
The permission of the script "hello" are RWX ___ ___
Any user may execute the script "hello" by running
the c_program. And they can't read the script "hello".
The same is true with a perl script, expect script,
awk script,...
You just have to call the script from a compiled
C program.
Now the question :
Why doesn't it work with linux ??
(mandrake6.1 - kernal 2.2.13-7 - bash)
Thanks for any light on the subject.
Pierre.