Change user on UNIX

Giampaolo Rodola' gnewsg at gmail.com
Thu Mar 20 07:51:28 EDT 2008


Hi all.
Is there any way to su or login as a different user within a python
script? I mainly need to temporarily impersonate another user to
execute a command and then come back to the original user.
I tried to google a little bit about it but I still didn't find a
solution.


Thanks in advance.

--- Giampaolo
http://code.google.com/p/pyftpdlib



More information about the Python-list mailing list