From: phd at sun.med.ru (Oleg Broytmann)
Date: Thu, 22 Apr 1999 15:37:40 +0400 (MSD)
Subject: Pyton setuid program?
In-Reply-To: <7fn0u5$9jm$1@news.rz.uni-karlsruhe.de>
Message-ID: <Pine.SOL2.3.96.SK.990422153401.25204D-100000@sun.med.ru>
X-UID: 602                                                  

Hi!

On 22 Apr 1999, Bjoern Giesler wrote:
> is it possible to have a Python script run setuid? If so, how do I do
> that?

   Having setuid script is big security issues. Most modern operating
systems do not allow to do this. Perl has special provisions for making
perl scripts setuid. In python please avoid it. Write setuid wrapper for
your script. Standard python distribution has a file Misc/setuid-prog.c. It
is a template for writing good setuid wrappers.

> Or could that be a Linux problem?

   It is OS-specific. Yes, Linux (thanks a lot) is among other OSes that
disable setuid scripts.

> TIA,
> 				--Bjoern
> -- 
> | thank you for your time, worship the antichrist, and have a nice day /\
> +---------------------------------------------------------------------/()\
> | pgp key available on request                                       /____\

Oleg.
---- 
    Oleg Broytmann  National Research Surgery Centre  http://sun.med.ru/~phd/
           Programmers don't die, they just GOSUB without RETURN.





