Re: [Zope] ExternalMethod - add new parameter

2008-04-11 Thread Chris Withers
rishi pathak wrote: We have a portal using which users use our compute resources. In zope we use NIS authentication for validating a user.We have many things that requires root/logged in user privledeges.One example is of a 'file system explorer'.In this I have used

Re: [Zope] ExternalMethod - add new parameter

2008-04-11 Thread rishi pathak
hi again, Let me clarify what I am doing and what is my approach till now. We have a portal using which users use our compute resources. In zope we use NIS authentication for validating a user.We have many things that requires root/logged in user

Re: [Zope] ExternalMethod - add new parameter

2008-04-09 Thread Thomas Bennett
If you would elaborate a little, like what you really want to do, you might get responses directing you toward a quicker solution. That aside, if you want to execute a command line application as root from your External Method look at Paramiko as mentioned in my response to the previous

Re: [Zope] ExternalMethod - add new parameter

2008-04-09 Thread Dieter Maurer
rishi pathak wrote at 2008-4-8 18:03 +0530: I dont have a need to run all the external method as root, only some of them. I did understand this *BUT* you do not have a choice. While a single ExternalMethod runs as root, the complete Zope process runs as root -- and this applies

Re: [Zope] ExternalMethod - add new parameter

2008-04-08 Thread rishi pathak
Hi Dieter, I dont have a need to run all the external method as root, only some of them. For this what I was thinking was to introduce a new control apart from the regular ones. viz id , title , Module Name and Function Name by name of 'Run as root', it would probably be a

Re: [Zope] ExternalMethod - add new parameter

2008-04-08 Thread Chris Withers
rishi pathak wrote: I dont have a need to run all the external method as root, only some of them. You seem to be carefully ignoring the fact that Dieter is pointing out that this isn't possible ;-) Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope] ExternalMethod - add new parameter

2008-04-08 Thread Martijn Jacobs
Hi Rishi. Can you telll me where should I look in the source(Code segment where external methods are loaded and executed) External methods are not just 'called' or 'loaded', they are executed in a zope thread which belong to the zope user. Changing the effective user would be a complex and

Re: [Zope] ExternalMethod - add new parameter

2008-04-08 Thread JPenny
PROTECTED] cc Dieter Maurer [EMAIL PROTECTED], zope@zope.org Subject Re: [Zope] ExternalMethod - add new parameter rishi pathak wrote: I dont have a need to run all the external method as root, only some of them. You seem to be carefully ignoring the fact that Dieter is pointing out

Re: [Zope] ExternalMethod - add new parameter

2008-04-08 Thread Dieter Maurer
rishi pathak wrote at 2008-4-8 18:03 +0530: I dont have a need to run all the external method as root, only some of them. For this what I was thinking was to introduce a new control apart from the regular ones. Apparently, my previous message has not been clear enough. Let's try

[Zope] ExternalMethod - add new parameter

2008-04-07 Thread rishi pathak
There is a requirement for running some external methods as super user. For this I thought of adding a new parameter.If set the code would be executed with effective uid of root. Can some one point to the code section where zope loads the ExternalMethod codes for execution. -- Regards-- Rishi

Re: [Zope] ExternalMethod - add new parameter

2008-04-07 Thread Martijn Jacobs
rishi pathak wrote: There is a requirement for running some external methods as super user. For this I thought of adding a new parameter.If set the code would be executed with effective uid of root. Can some one point to the code section where zope loads the ExternalMethod codes for execution.

Re: [Zope] ExternalMethod - add new parameter

2008-04-07 Thread Dieter Maurer
rishi pathak wrote at 2008-4-7 17:46 +0530: There is a requirement for running some external methods as super user. For this I thought of adding a new parameter.If set the code would be executed with effective uid of root. This is extremely dangerous. To run code as super user, you need to