[Zope3-Users] execute script from as root user

Jonathan dev101 at magma.ca
Wed Jun 7 07:39:46 EDT 2006


----- Original Message ----- 
From: "Leticia Larrosa" <leticia at tesla.cujae.edu.cu>
To: <zope3-users at zope.org>
Sent: Tuesday, June 06, 2006 11:49 PM
Subject: [Zope3-Users] execute script from as root user


>
> Hi all
>
> I want generate a shell script and run it as root in the local system from 
> a
> zope3 application.
>
> For example I want to save a file with the following content:
>
> #! /bin/sh
> ls
>
> I want to open this file and run the content as the root user


Have a look at the linux su and sudo commands (you could embed this before 
the 'ls' command in your script)


Jonathan 



More information about the Zope3-users mailing list