Brad,

Thank you so much for pointing me in the right direction.

I have my shell script, "toggle_udp", which checks to see if ip_masq_udp_dloose is set to 0, and if so, it sets it to 1 (and vice-versa).

I also just found a little C code snippet on google that I think should do what I want. This is what I have:

-------------------
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>

void main(void)
{
int status;

status = setuid(0);
if(status == -1){
fprintf(stderr, "Error setting uid to 0\n");
exit(1);
}

system("/var/sh-www/cgi-bin/toggle_udp");

exit(0);
}
-------------------

Now my only problem is, how do I compile this to run on Leaf? Is there a compiler available and small enough to work on the system? Or would I have to compile it elsewhere, and then move it over to leaf? If this is the case, I only have access to machines running windows or solaris. Would anyone be willing to compile the small program above for me?

-Kelly

_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en


_______________________________________________
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to