Root access with python
Moray Taylor
mtaylor at lowebroadway.com
Mon Mar 25 05:37:24 EST 2002
Hi,
I want to know how to run a 'root' command with python, i.e. mounting
an NFS drive.
On the terminal, you would do a 'su', type your password, then enter
the command you wanted to run. How is this achieved within Python?
My purpose is to make a small GUI app with PyQT to make mounting NFS
volumes easier, I can handle the GUI bit, but I don't understand how
to 'su'.
Thanks for any help
Moray
More information about the Python-list
mailing list