Mounting shares with python
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Jan 26 19:27:51 CET 2007
> 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.
BOFH excuse #9:
More information about the Python-list