Root access with python

Andy Gimblett gimbo at ftech.net
Mon Mar 25 10:49:45 EST 2002


On Mon, Mar 25, 2002 at 12:38:55PM -0300, Gustavo Niemeyer wrote:

> You have several options to do this, and all of them involve setting the
> setuid bit in some executable. OTOH, setting setuid bit on scripts
> usually doesn't work. If that's your case, you'll have to freeze your
> script into a native executable, or build some kind of wrapper. Google
> for "setuid bit scripts" for more information.

As a general solution to this kind of problem, sudo is excellent,
though it might be overkill for this particular case.

http://www.courtesan.com/sudo/

-- 
Andy Gimblett - Programmer - Frontier Internet Services Limited
Tel: 029 20 820 044 Fax: 029 20 820 035 http://www.frontier.net.uk/
Statements made are at all times subject to Frontier's Terms and
Conditions of Business, which are available upon request.




More information about the Python-list mailing list