Re: script for system Authentication dialog box.
Re: script for system Authentication dialog box.
- Subject: Re: script for system Authentication dialog box.
- From: Sander Tekelenburg <email@hidden>
- Date: Thu, 21 Jul 2005 06:34:21 +0200
At 12:52 -0700 UTC, on 2005/07/20, Christopher Nebel wrote:
[...]
> Authenticating (officially)
> once gives you a five-minute window during which you will not need to
> authenticate again. For instance, try this:
>
> set x to do shell script "whoami" with administrator privileges
> set y to do shell script "whoami" with administrator privileges
> {x, y}
>
> Notice that you only have to type in your password once.
Indeed. Which is a surprise, given that I have set the gracetime to 0[*],
which *does* do what I expect it to do in Terminal.app. Why would AS ignore
the grace period?
[*] by having Defaults:ALL timestamp_timeout=0 in /etc/sudoers
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden