Mounting shares with python

Carl J. Van Arsdall cvanarsdall at
Fri Jan 26 18:30:21 CET 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.
I do a lot of that type of stuff.  Just setup sudo access for that user 
and have it state no password.

I also do that stuff on remote machines, similarly, setup ssh such that 
you don't need to use a password.  It will work :)



Carl J. Van Arsdall
cvanarsdall at
Build and Release
MontaVista Software

More information about the Python-list mailing list