Execute a process as a specific user

Peter Hansen peter at engcorp.com
Fri Jun 13 12:23:27 EDT 2003


Peter Hansen wrote:
> 
> > os.system("su usuario -c comando")
> >
> > Can i make this whitout the "su" command
> 
> Sure!  Log in as root, then run the script.

Ignore that part of my post.   I was thinking of sudo,
not "su someuser -c"...   Didn't actually read what
I was responding to, I guess.    :-(

-Peter




More information about the Python-list mailing list