MACSCRPT Archives

July 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"J. Stewart" <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 29 Jul 2009 04:40:18 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
On 7/28/09 at 10:45 PM, Emmett Gray <[log in to unmask]> 
spake thusly:

>This only asks for the password, but if you want to actually 
>invoke administrator privileges inside a shell script, you 
>would write
>
>do shell script "sudo foo" with administrator privileges

Not true. See -

<http://developer.apple.com/technotes/tn2002/tn2065.html>

Specifically see the question labeled -

"Q: How do I get administrator privileges for a command?"

J
-- 
The views expressed here do not necessarilly represent the 
unanimous view of all parts of my mind.

ATOM RSS1 RSS2