Mounting shares with python
half.italian at gmail.com
half.italian at gmail.com
Tue Jan 30 06:27:16 EST 2007
On Jan 26, 10:27 am, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n... at spamgourmet.com> wrote:
> 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.
>
> Consider modifying /etc/fstab.
>
> > Have a comand to send a root password...?
> > I've tried
>
> > os.system ("su")
> > os.system ("the password")
>
> > but it doesn't works.
>
> Be advised that storing a root password as clear text can be a huge
> security risk. Use sudo.
>
> Regards,
>
> Björn
>
> --
> BOFH excuse #9:
>
> doppler effect
I use pexpect. http://pexpect.sourceforge.net/
~Sean
More information about the Python-list
mailing list