Re: Shell Question? Help please.
Re: Shell Question? Help please.
- Subject: Re: Shell Question? Help please.
- From: Jason Bourque <email@hidden>
- Date: Wed, 01 May 2002 12:47:39 -0400
Steve,
Thanks, we tried the config file but couldn't get it to work right, maybe
the article will shed some light on it.
Also, the
set my_command to "sudo mount_smbfs -N -W myworkgroup
//username@netbiosname/share ./myshare"
do shell script my_command with application privileges password
"admin_password"
Doesn't compile with and error on the word "privileges", does it compile for
you?
My config is :
AS version: 1.8.2, ScriptDebugger version: 3.0.3, OS version: 10.1.4
Thanks,
Jason Bourque
Co-Director Boston AppleScript Users Group
On 5/1/02 12:10 PM, "garbanzito" <email@hidden> wrote:
>
at 2002 05 01, 08:56 -0400, they whom i call Jason Bourque wrote:
>
> I need to do the following, and I am not quite sure how to do it.
>
> [...]
>
> -- Login as root
>
> -- Enter password.
>
> -- Send this command
>
> mount_smbfs -W myworkgroup //username@netbiosname/share ./myshare
>
> -- Enter password that responses to the privious command.
>
>
you'd be leaving passwords around for snoopers, but you
>
could (1) create a file ~/.nsmbrc containing the text
>
"password=your_smb_password".
>
>
(i don't know much about SMB, but i found details on this config file here:
>
<http://www.onlamp.com/pub/a/bsd/2001/11/15/Big_Scary_Daemons.html>)
>
>
then (2) your AppleScript could invoke administrator
>
privileges:
>
>
set my_command to "sudo mount_smbfs -N -W myworkgroup
>
//username@netbiosname/share ./myshare"
>
do shell script my_command with application privileges password
>
"admin_password"
>
>
note that when you "do shell script" your default directory
>
is /, so you might want to change the ./myshare to a more
>
explicit mountpoint ...
>
>
--
>
steve harley email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.