Hi, from my login i want to login as a other user ,
Gerhard Häring
gh at ghaering.de
Wed Nov 9 07:21:37 EST 2005
sumi wrote:
> Hi, i am very new to python , it is just 2 days i started reading abt
> it. I did not understand the above statement. what i want to do is , i
> want to login as a super user eg :
> $su xyz , and then i need to enter the passwd, i want to do these steps
> using python , how can i do it??????????
You're probably looking for the setuid() and setgid() functions in the
module `os`.
-- Gerhard
More information about the Python-list
mailing list