how to spawn a process under different user

sanket sanket.s.patel at gmail.com
Thu Jul 2 17:56:30 EDT 2009


On Jul 2, 1:58 pm, Tim Golden <m... at timgolden.me.uk> wrote:
> sanket wrote:
> > Hello All,
>
> > I am trying to use python's subprocess module to launch a process.
> > but in order to do that I have to change the user.
>
> > I am not getting any clue how to do that?
> > so can anyone please tell me How can I spawn a process under different
> > user than currently I am logging in as.
>
> What platform are you on? If you are on Windows,
> there was a thread on this subject some time in
> the last month. (Short answer: switching user before
> launching subprocess won't work; switching within
> the subprocess will...)
>
> TJG

Hi TJG,
Thanks for the reply.

I am using python 2.4 on centos.

Thanks,
sanket



More information about the Python-list mailing list