You could possibly do an 'exec smbmount blah, blah' from within
a program, but quite likely the program would need to be SUID
root.  Better that, than to SUID root a script, though 8-)...

Cheers,

-- DaveN

-----Original Message-----
From: Juliano Pimentel [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 19, 2000 11:38 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: Mounting a Windows Partition at Linux


   Is there a way to execute the smbmount command inside of a programm
whithout using system,
like for example "int mount()" or something like that?!
Thank you very much,
Juliano

> ----- Mensagem original -----
> De:           Juliano Pimentel 
> Enviada em:           Sexta-feira, 17 de Novembro de 2000 15:26
> Para:         '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
> Assunto:              Mounting a Windows Partition at Linux
> 
> 
>    Hi all,
> I'm looking for a more robust or efficient procedure for mounting a NT
> partition at Linux. What I do is:
> 
> "smbmount //win_machine/share_dir /mnt/shareth -o
> username=administrator,password=123456"
> 
> The problem is I'm developing a stand-alone system and  don't want to
> loose this shared dir.
> Many times I realize that even without network connection lost, it loses
> the shared dir.
> 
> Do someone know any other more efficient and robust procedure in order to
> do so?!
> 
> Thank you all,
> Juliano

--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to