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:
Emmett Gray <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Thu, 30 Jul 2009 09:42:42 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (27 lines)
Thank you for this clarification. Although my script functions, it is 
officially dis-recommended for security reasons and apparently will 
hang in 10.4.0 and 10.4.1. The correct syntax is to leave out "sudo" 
since the granting of administrator privileges makes the use of 
"sudo" redundant.

--E

On Wed, 29 Jul 2009 04:40:18 -0400, "J. Stewart" <[log in to unmask]> wrote:
>
>On 7/28/09 at 10:45 PM, Emmett Gray <[log in to unmask]>=20
>spake thusly:
>
>>This only asks for the password, but if you want to actually=20
>>invoke administrator privileges inside a shell script, you=20
>>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?"

ATOM RSS1 RSS2