Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-23 Thread Kelly Brown
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

Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-23 Thread Jon Clausen
On Wed, Oct 23, 2002 at 01:08:11PM +, Kelly Brown wrote: 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? i Not that I know of. Or would I have to compile it elsewhere, and then move it over to leaf?

Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-23 Thread Brad Fritz
Kelly, On Wed, 23 Oct 2002 13:08:11 GMT Kelly Brown wrote: Brad, Thank you so much for pointing me in the right direction. Glad to help. 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

Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-23 Thread Charles Steinkuehler
Less secure would be to do the same thing with a setuid shell script. It's my understanding that shell scripts will not work suid. (I did try that out before turning to C, it never worked, and I seem to remember seeing an explanation of why it doesn't work somewhere...) CCMIW For the

[leaf-devel] Allowing Weblet to change a root file

2002-10-22 Thread Kelly Brown
Hi guys, I'll admit right up front that I'm not very knowledgeable in regards to Linux, so I hope I don't come off sounding TOO foolish. I do a lot of web development, so I do know my way around a unix/linux environment somewhat. I'm more used to working in a cgi environent with perl or php,

Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-22 Thread Brad Fritz
Kelly, On Tue, 22 Oct 2002 14:58:30 GMT Kelly Brown wrote: Hi guys, I'll admit right up front that I'm not very knowledgeable in regards to Linux, so I hope I don't come off sounding TOO foolish. I do a lot of web development, so I do know my way around a unix/linux environment

Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-22 Thread Jon Clausen
On Tue, Oct 22, 2002 at 09:40:26PM -0500, Brad Fritz wrote: How could I get around this? I think the most secure solution would be to write a minimal C program that sets ip_nonlocal_bind and run it setuid root. There was some discussion of this awhile back on leaf-user or leaf-devel

Re: [leaf-devel] Allowing Weblet to change a root file

2002-10-22 Thread Brad Fritz
Minor typo correction below... On Tue, 22 Oct 2002 21:40:26 EST I wrote: [snip] I made a tiny little script to do this, but it doesn't work. It runs, but the ip_masq_udp_dloose file never changes [snip] I think the most secure solution would be to write a minimal C program that sets