Validating a user password against the administrator password....

Hi guys,

I need some help with a scenario.

I’ve created a simple input box that a user will enter his/her password. Getting that string, I want to compare it against the system administrator’s password box to validate a match as I’m trying to bypass the “with administrator” dialog box. However, I need administrator rights to delete certain root files. How do I do this validation? There must be an event fired by Applescript that determines if an administrator password is correct or not. Only, I want the text from the input box I created to validate against the administrator password.

Thanks and God bless.

Ben.

How are you trying to delete those files? I would (carefully) use do shell script:

do shell script "" with administrator privileges

Hi, thanks for your help, I figured it out! :slight_smile:

God bless,

Ben.