• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Shell Question? Help please.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Shell Question? Help please.
      • From: Jason Bourque <email@hidden>
References: 
 >Shell Question? Help please. (From: Jason Bourque <email@hidden>)

  • Prev by Date: RE: QXP-Find file open?
  • Next by Date: Re: RegEx with a shell script?
  • Previous by thread: Shell Question? Help please.
  • Next by thread: Re: Shell Question? Help please.
  • Index(es):
    • Date
    • Thread