Re: Shell Question? Help please.
Re: Shell Question? Help please.
- Subject: Re: Shell Question? Help please.
- From: garbanzito <email@hidden>
- Date: Wed, 1 May 2002 10:10:11 -0600
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.