Running one Python program from another as a different user
jeffrey.schwab at rcn.com
Sat Aug 13 04:21:31 CEST 2005
dwelch91 at gmail.com wrote:
> Thanks, that looks very promising...
> Is there a solution for pre-Python v2.4? I have to have code that works
> on 2.x, 0<=x<=4. Do I just use the os.popen instead?
pipe = os.popen("su %s" % username, 'w')
if __name__ == "__main__":
for user in sys.argv[1:]:
More information about the Python-list