Sending a signal to a process started by another user

Oleg Broytmann phd at phd.pp.ru
Wed Apr 10 05:57:48 EDT 2002


On Wed, Apr 10, 2002 at 02:38:01AM -0700, Joonas Paalasmaa wrote:
> Oleg Broytmann <phd at phd.pp.ru> wrote in message news:<mailman.1018377258.31626.python-list at python.org>...
> > On Tue, Apr 09, 2002 at 04:53:58PM +0000, Joonas Paalasmaa wrote:
> > > How can I send a signal to a process started by another user. In this 
> > > case my intention is to send a signal 14 to a process started by user jp 
> > > from a cgi script. The script raises an "Operation not permitted"- 
> > > OSError perhaps because the script is run by user "apache" and the 
> > > process by user "jp". How can In make this work properly?
> > 
> >    Using some form of setuid programs.
> 
> Can you give me an example how to use setuid scripts with CGI and Python.

   Just compile a program, that does what you need, and ask your sysadmin
to install it setuid.
   Please note, that setuid programs are security risks, and setuid scripts
are disabled on all modern OSes. If you want setuid script - you need a
setuid wrapper for it.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.





More information about the Python-list mailing list