• 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
Re: with administrator privileges...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: with administrator privileges...


  • Subject: Re: with administrator privileges...
  • From: Alex Robinson <email@hidden>
  • Date: Sat, 18 May 2002 23:07:28 +0100

> 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.


Are you sure that you haven't just performed a sudo command yourself?

I get the following behaviour running the script:

1. When no sudo command has been performed
Fails with the error message "Sorry, try again. sudo: 1 incorrect password
attempt"

2. After a sudo command has been issued (or the script has been run and the
correct password entered)
Succeeds.

It is the consequence of sudo remaining in operation for 5 minutes (or
whatever you have it set to in sudoers. It is odd that it throws up a
superflous password box to fill in. (and of course if you remove the with
administrator privileges the script will fail regardless of the fact).
_______________________________________________
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.

References: 
 >with administrator privileges... (From: Chris Janton <email@hidden>)

  • Prev by Date: Re: with administrator privileges...
  • Next by Date: Re: osascript - path to me
  • Previous by thread: Re: with administrator privileges...
  • Next by thread: Scripting Web Sharing
  • Index(es):
    • Date
    • Thread