<div>I am not aware of a portable way of setuid on Windows, as you need to have the password of the user in order to switch to that user. The closest thing that I came across is <a href="http://www.joeware.net/freetools/tools/cpau/index.htm" target="_blank">http://www.joeware.net/freetools/tools/cpau/index.htm</a>, which encrypts the credentials so you do not need to enter it everytime.<br>
</div>
<div class="gmail_quote">On Tue, Feb 16, 2010 at 3:24 PM, Matthias Felleisen <span dir="ltr"><<a href="mailto:matthias@ccs.neu.edu" target="_blank">matthias@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Could anyone help out here?
<div>
<div></div>
<div><br><br><br>On Feb 16, 2010, at 6:21 PM, Jay McCarthy wrote:<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Portability mainly. I don't know how to do it on Windows.<br><br>Jay<br><br>On Tue, Feb 16, 2010 at 4:17 PM, Matthias Felleisen<br>
<<a href="mailto:matthias@ccs.neu.edu" target="_blank">matthias@ccs.neu.edu</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Why is this not a construct provided by the server library?<br><br><br><br>On Feb 16, 2010, at 6:07 PM, Jay McCarthy wrote:<br>
<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">It is also very easy to use the ffi to call setuid. Call it after calling<br>serve.<br><br>Jay<br><br>On Tue, Feb 16, 2010 at 3:36 PM, YC <<a href="mailto:yinso.chen@gmail.com" target="_blank">yinso.chen@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>A couple of possible ways that I know of -<br><br>Use an apache mod_proxy as the frontend to web-server<br>
Use iptables to redirect port 80 to another port (say 8080) -<br><br><a href="http://www.groovygrails.de/blog/groovygrails/entry/non_root_tomcat_on_port" target="_blank">http://www.groovygrails.de/blog/groovygrails/entry/non_root_tomcat_on_port</a><br>
<br>HTH. Cheers,<br>yc<br><br>On Tue, Feb 16, 2010 at 2:13 PM, Danny Yoo <<a href="mailto:dyoo@cs.wpi.edu" target="_blank">dyoo@cs.wpi.edu</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Hi everyone,<br><br>I'm writing a small web servlet using the PLT Scheme web server<br>libraries. The servlet needs to run on port 80, but on Unix systems,<br>
I need to be root to bind to port 80. I feel a little nervous when I<br>have a long-running, network-accessible service, especially if it runs<br>as the superuser. Does anyone have any suggestions on how to drop<br>privileges here?<br>
_________________________________________________<br> For list-related administrative tasks:<br> <a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
</blockquote><br><br>_________________________________________________<br> For list-related administrative tasks:<br> <a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
<br><br></blockquote><br><br><br>--<br>Jay McCarthy <<a href="mailto:jay@cs.byu.edu" target="_blank">jay@cs.byu.edu</a>><br>Assistant Professor / Brigham Young University<br><a href="http://teammccarthy.org/jay" target="_blank">http://teammccarthy.org/jay</a><br>
<br>"The glory of God is Intelligence" - D&C 93<br>_________________________________________________<br> For list-related administrative tasks:<br> <a href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme" target="_blank">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a><br>
</blockquote><br><br></blockquote><br><br><br>-- <br>Jay McCarthy <<a href="mailto:jay@cs.byu.edu" target="_blank">jay@cs.byu.edu</a>><br>Assistant Professor / Brigham Young University<br><a href="http://teammccarthy.org/jay" target="_blank">http://teammccarthy.org/jay</a><br>
<br>"The glory of God is Intelligence" - D&C 93<br></blockquote><br></div></div></blockquote></div><br>