From: Rachid BOUKHARI (rachid.boukhari@st.com)
Date: Tue Apr 27 2004 - 11:09:25 EDT
Hi,
I''ve tried to enable setuid bit on an excutable file but no success.
I'm runing solaris8 with gcc 2.95.2
test.c
#include <stdio.h>
main()
{
system("rsh venus comf");
}
# gcc -o test.o test.c
# chmod 4755 test.o
#ls -l test.o
rwsr-xr-x geniune geniune 5912 Apr 27 10:53 /work/test.o
User "geniune" is the only user who can execute "comf" on host "venus"
When trying to excute the "test.o" by another user, the permission is
denied
# /home/geniune/test.o
#permission denied
What is wrong, is it the fact that the C script make a call for a system
command?
Regards,
Rachid,
[demime 1.01b removed an attachment of type text/x-vcard which had a name of rachid.boukhari.vcf]
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:32 EDT