do shell script and passwords
do shell script and passwords
- Subject: do shell script and passwords
- From: garrett <email@hidden>
- Date: Fri, 07 Jun 2002 15:40:14 -0500
How do I get feedback from a script that the command sent an incorrect
password?
Here is the script:
set AdminPass to "myPass"
do shell script "/usr/sbin/rawrequest" administrator privileges yes
password AdminPass
something weird is going on... first off, the result returned is empty, even
though the password is purposely set wrong. Even worse, the process is
actually run! I even quit the process in processViewer, and tried the script
again, and sure enough, it launches the process without the correct
password.
Am I missing something? Is my correct password being cached somewhere by
some part of this process (before I tried to create an error trapping
routine for a bad password, I had been using the script with the correct
password).
using os 10.1.5.
-------
garrett
email@hidden
_______________________________________________
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.