0

Something has broken in my macOS 12.x installation (currently 12.6) but I'm at a loss as to what it might be. A command such as this:

osascript -e 'do shell script "echo test" with administrator privileges'

...would previously pop up a prompt for a username & password of an administrator. It's one of those things that's "always worked". I sign into an admin-level account routinely anwyay, so usually I'm just retyping my login password as the prepopulated username field is already correct.

At some point in the last few months, within the 12.x release cycle, something broke. The expected dialogue box appears, but no matter what I type into the prompt, the dialogue box just "shakes" in that 'wrong password' kind of way. I have no idea what might be wrong here. I've tried "shouldn't be needed but might have helped anyway" things like adding the osascript binary to "System Preferences -> Security -> Accessibility/Full Disc Access/Developer Tools", to no avail.

  • Is this a known issue with a simple fix?
  • Failing that is there anything I might look for in logs?

Thanks!

Andrew Hodgkinson
  • 4,379
  • 3
  • 33
  • 43

0 Answers0