RE: do shell script and passwords
RE: do shell script and passwords
- Subject: RE: do shell script and passwords
- From: garbanzito <email@hidden>
- Date: Wed, 12 Jun 2002 11:19:37 -0600
at 2002 06 07, 22:27 +0100, they whom i call Daisy Whitman wrote:
you can check the password before with this script:
set myPassword to "..."
set myresult to "wrong"
try
set myresult to (do shell script "sudo -v"
password myPassword with administrator
privileges)
[...]
just noticed this and wanted to note that sudo -v will
*succeed* with an incorrect password if the user's sudo
timestamp is still alive. so to really verify the password,
precede it with sudo -k.
--
steve harley 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.