Re: with administrator privileges...
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.