I get this annoying dialog when I login on my mac as a standard user, and I don't know why it keeps asking for an admin password.
My question is if there is a way to find out which command/process or whatever is causing this dialog. Thanks in advance
Best Answer
Credit to superuser answer for this.
There are certainly other ways to achieve this, but if you are clever with Python, here is a handy script that will show you pertinent details for currently displayed windows. After running, move the window in question, and the script will give you the specifics (e.g. PID) for that window. From there, you can poke around and see who is bugging you for su.
Note: This script is for Python 3.x. I fought with the original script for quite some time (I'm not a Python programmer). I couldn't get it to work (with 2.x) due to a Quartz dependency requiring 3.x.
A couple of prerequisites are: