Special thanks to all who responded to this problem!
Especially:
Troy Wollenslegel <troy@intranet.org>
Martin Espinoza <drink@sei.com>
"Karl E. Vogel" <vogelke@c17.wpafb.af.mil>
Casper Dik <casper@holland.Sun.COM>
Super-User <root@utopia.poly.edu>
James.E.Coby.Jr@cdc.com (James Coby)
donf@brother.com (DON FREELEY)
Sorry if I missed someone.
Resolution
----------
1. Solaris does not allow SetUID for C-Shell scripts.
2. Use a C program, that is setuid to root, that calls the script.
(See example below)
3. Use "sudo" to call the program.
(see http://www.courtesan.com/courtesan/products/sudo)
4. Use ksh instead of csh. (That seemed to work also)
I decided to use "sudo" which worked great.
Thanks again for all the help!!
Thanks, Mark
------------------------------------------
Mark Hargrave, Sr. Unix Systems Manager
Lockheed Martin Manned Space Systems
New Orleans, LA 70189
E-Mail: meh@wisdom.maf.nasa.gov
------------------------------------------
Example C program that calls a script
-------------------------------------
#include <stdio.h>
#include <string.h>
#define begin_program {
#define then {
#define loop {
#define when {
#define end_program }
#define end_if }
#define end_loop }
#define end_switch }
main ()
begin_program
char buffer[256];
strcpy ( buffer, "/myscript" );
system ( buffer );
end_program
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:18 CDT