Mounting shares with python
Diez B. Roggisch
deets at nospam.web.de
Fri Jan 26 08:03:41 EST 2007
Marcpp wrote:
> Hi, when i mount a share with python...
>
> os.system ("mount -t smbfs -o username=nobody ...")
>
> the problem is that I'll to be root.
> Have a comand to send a root password...?
> I've tried
>
> os.system ("su")
> os.system ("the password")
>
> but it doesn't works.
You can try to use sudo
os.system ("sudo mount -t smbfs -o username=nobody ...")
It must be configured properly of course.
Diez
More information about the Python-list
mailing list