From: Vlad S. <vl...@cr...> - 2006-05-16 14:01:18
|
Recently i was looking into nsproxy to accomplish an opposite task, my nsd runs as nobody but i need ability to execute some scripts as root but it looks like nsproxy is not designed for this task without hacking nsd: i.e. run nsd as root, spawn nsproxy then manually switch nsd to nobody. Zoran Vasiljevic wrote: > Hi! > > I have concluded the work of getting the nsproxy module > from the AOLserver repository into ours. > > There have been *numerous* changes and improvements to the > initial code. See ChangeLog for more details. > There is also a test-suite and a man-page written in doctools. > All is under the nsproxy directory which is new so you may > need to checkout your sandbox. > > To get a html or nroff file from ns_proxy.man, please see > the docs/src/README.doc file. > > The sample-config.tcl now includes the nsproxy module. > Also the test server used for "make test" loads and > exercises the module. As of my experience, it works fine > on Mac OSX, Linux and Solaris OS'es. > > Please checkoout the new nsproxy and tell me if you get > any problems with it. We plan to deploy it in one of the next > releases of our product. Our main motivation to work on that > was the ability to execute Tcl code in a controllable manner > outside the server and under different user/group than > the server itself. Our app runs the nsd as root but at some > places we need to execute some Tcl code as different user. > Now, under Unix threading model it is not possible to "impersonate" > a thread, which is possible only under Windows. For Unix we need > to get the code executed in a different process, hence I was very > pleased to see Jim adding this nsproxy module to AOLserver. > I believe this was just a small rewrite of the db-proxy module. > But it is in itself a very helpful thing for us. It will hopefully > be of use for the rest of the Naviserver users. > > > Off-topic: > At this point it is clear that we need to invest more time in > getting the docs written. We now have so much new functionality > built into the server that I start loosing the overview. > I would encourage everybody to look into the files in doctools > provided so far and start adding content. In one of the next > days I will add a template page for each Tcl-API command under > the docs/src. > > Cheers > Zoran > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |