Re: with administrator privileges...
Re: with administrator privileges...
- Subject: Re: with administrator privileges...
- From: Jason Bourque <email@hidden>
- Date: Sat, 18 May 2002 15:07:48 -0400
Don't you need the password parameter too.
Thanks,
Jason Bourque
Co-Director Boston AppleScript Users Group
On 5/18/02 2:52 PM, "Chris Janton" <email@hidden> wrote:
>
Am I seeing things?
>
>
Try this script from an account that has administrator privileges...
>
>
do shell script "cat /private/etc/master.passwd" with administrator
>
privileges
>
>
Do not do any "sudo" commands from the shell. Do not be logged in as
>
"System Administrator"
>
>
Make sure you type in an *incorrect* password when prompted.
>
>
Do you see the contents of the file in the result window?
>
>
If you leave off the "with administrator privileges" the script *should*
>
fail with a privlege denied
>
message. It does for me.
>
>
If I type in a bogus password I get the contents of the file, even though
>
I shouldn't.
>
>
Is the password checking dialog box just a sham?
>
>
8)
>
----------------------------------
>
Chris Janton Centos Prime
>
2202 E Towner St Internet: email@hidden
>
Tucson, AZ 85719 Phone: +1 520 881-6634
>
Netminder for Opus1.COM
>
_______________________________________________
>
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.
_______________________________________________
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.