I have a routine that works just fine for storing an admin password in Tiger…
user name adminAcct password myPass with administrator privileges
But I want to be able to de-authorize the account with click of a button.
I can do set myPass to “” and if I display myPass in a subsequent dialog, it’s blank…
but still every command that uses user name adminAcct password myPass with administrator privileges IS STILL AUTHORIZED
I suspect for a while until a timer expries. Is there any way to FORCE it to expire?
do shell script “sudo -K” user name adminAcct password myPass with administrator privileges doesn’t work. Oy.