Got the folder creation to /mnt/ solved quite simply by mounting it to another directory.
But now for the samba mount part. The "su -c 'mount -t smbfs -o workgroup=<domain>,username=<user>,password=<passwd> //<servername>/<share> /<mountpoint>/'" sounds good, but I can't get it to work.
I tried something of the following:
$cmd="su -c 'mount ...blaablaa...'";
$doit=popen($cmd,"w");
fwrite($doit,$rootpass);
pclose($fp);
And some variables of the above, but didn't seem to get it to work. What am I doing wrong? (or could you give simple example please)
Thank you for the help so far btw.