• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
with administrator privileges...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

with administrator privileges...


  • Subject: with administrator privileges...
  • From: Chris Janton <email@hidden>
  • Date: Sat, 18 May 2002 11:52:04 -0700

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.

  • Follow-Ups:
    • Re: with administrator privileges...
      • From: Alex Robinson <email@hidden>
    • Re: with administrator privileges...
      • From: Jon Pugh <email@hidden>
    • Re: with administrator privileges...
      • From: Jason Bourque <email@hidden>
    • Re: with administrator privileges...
      • From: Richard Baskett <email@hidden>
  • Prev by Date: Re: Using 'echo' from 'do shell script'
  • Next by Date: Re: with administrator privileges...
  • Previous by thread: Re: do shell script non-ASCII
  • Next by thread: Re: with administrator privileges...
  • Index(es):
    • Date
    • Thread