Re: do shell script and passwords
Re: do shell script and passwords
- Subject: Re: do shell script and passwords
- From: Alex Robinson <email@hidden>
- Date: Fri, 7 Jun 2002 22:25:45 +0100
>
How do I get feedback from a script that the command sent an incorrect
>
password?
You should be getting an execution error, but...
>
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).
Yep. The admin password (as with sudo) is cached for 5 minutes by default -
see man sudo. Run the command sudo -k to make sure that the cache is
deleted. If you can still run the process with a dodgy password then
something is definitely up
_______________________________________________
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.