Re: [Zope] External Method in Zope

2008-04-07 Thread Andreas Jung



--On 7. April 2008 13:15:04 +0530 vaibhav pol [EMAIL PROTECTED] wrote:


hi,

I am using Zope-2.8.1-final and also added zoperl-1.0.beta5 for perl
support . I wrote a Perl module which edit files the file access
permission is only to root  and i want to invoking the  module as onther
user . by some way i want to invoke the perl interpreter as root for my
user.
and i also want to know how the zope  call external method.


This has also little to do with Zope. You could use 'sudo' for
starting other command within an other user context.

-aj

pgpetMO2p6UEv.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] External Method in Zope

2008-04-07 Thread Jens Vagelpohl


On Apr 7, 2008, at 11:23 , vaibhav pol wrote:

Thanks  alot
but i am not using command but i using perl function to modify the  
passwd and shadow file. in my module that's why i want to invoke  
that module as root


There's a few things seriously wrong with your plan:

 - you want to create a way to manipulate a system's password/shadow  
files through the web by a web application. That's insane to begin  
with. Just don't do it. Have you ever thought about the security  
implications?


 - doing Perl methods or external methods in Zope has been deprecated  
years and years ago. You will have a hard time finding anyone to  
support that.


jens



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] External Method in Zope

2008-04-07 Thread vaibhav pol
Thanks  alot
but i am not using command but i using perl function to modify the passwd
and shadow file. in my module that's why i want to invoke that module as
root







On Mon, Apr 7, 2008 at 1:19 PM, Andreas Jung [EMAIL PROTECTED] wrote:



 --On 7. April 2008 13:15:04 +0530 vaibhav pol [EMAIL PROTECTED]
 wrote:

  hi,
 
  I am using Zope-2.8.1-final and also added zoperl-1.0.beta5 for perl
  support . I wrote a Perl module which edit files the file access
  permission is only to root  and i want to invoking the  module as onther
  user . by some way i want to invoke the perl interpreter as root for my
  user.
  and i also want to know how the zope  call external method.
 

 This has also little to do with Zope. You could use 'sudo' for
 starting other command within an other user context.

 -aj
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] External Method in Zope

2008-04-07 Thread Chris Withers

Jens Vagelpohl wrote:


 - doing Perl methods or external methods in Zope has been deprecated 
years and years ago. You will have a hard time finding anyone to support 
that.


I'm guessing you mean perl external methods rather than all external 
methods in general? ;-)


Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] External Method in Zope

2008-04-07 Thread Jens Vagelpohl


On Apr 7, 2008, at 12:18 , Chris Withers wrote:

Jens Vagelpohl wrote:
- doing Perl methods or external methods in Zope has been  
deprecated years and years ago. You will have a hard time finding  
anyone to support that.


I'm guessing you mean perl external methods rather than all external  
methods in general? ;-)


I mean the Perl Methods and Perl External Methods that were part of  
the old Zope-Perl package from eons ago.


jens



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] External Method in Zope

2008-04-07 Thread Thomas Bennett
If you absolutely have to, look at Paramiko a python ssh/sftp library which is 
easy to use but as mentioned already there are critical security issues.  
with paramiko you don't have to directly edit the files but within an ssh 
connection run the commands needed that actually make the changes.  You may 
have to put in time.sleep(x) commands to give the response time to come back, 
where x is an integer.

Thomas


On Monday 07 April 2008 03:45, vaibhav pol wrote:
 hi,

 I am using Zope-2.8.1-final and also added zoperl-1.0.beta5 for perl
 support . I wrote a Perl module which edit files the file access permission
 is only to root  and i want to invoking the  module as onther user . by
 some way i want to invoke the perl interpreter as root for my user.
 and i also want to know how the zope  call external method.

 please
 help me!!

-- 

Thomas McMillan Grant Bennett   Appalachian State University
Operations  Systems AnalystP O Box 32026
University Library  Boone, North Carolina 28608
(828) 262 6587

... using OpenOffice.org, and save them back to disk automatically,
in MS Word format.  They surf the Web, check e-mail, do instant 
messsaging, view YouTube videos, visit their Facebook pages, learn 
touch-typing skills and lots more.  Our public library has been 
offering these Linux public stations for the past three years.
 - Phil Shapiro Linux Journal January 2008

Library Systems Help Desk: https://www.library.appstate.edu/help/

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )