Re: with administrator privileges...
Re: with administrator privileges...
- Subject: Re: with administrator privileges...
- From: Richard Baskett <email@hidden>
- Date: Sat, 18 May 2002 12:07:29 -0700
Hmm.. When I type that in I get a permission denied, I don9t get a prompt
for a password... And even when I do sudo and put in a wrong password, I get
permission denied...
Rick
"Every person you meet - and everything you do in life - is an opportunity
to learn something." - Tom Clancy
>
From: Chris Janton <email@hidden>
>
Date: Sat, 18 May 2002 11:52:04 -0700
>
To: email@hidden
>
Subject: with administrator privileges...
>
>
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.