Running 9.52 I have a policy to update macs via our SUS server. The policy is set as a "On recurring check-in" with a 1 week interval.
If there is an update that requires a restart, the users get the dialog asking them to log out. When they do, many (most so far) get a dialog "Unapproved Caller - SecurityAgent may only be invoked by Apple Software." If you click on the dialog, it spins for a second, and then comes right back.
I can usually resolve it by SSH into the machine and doing a: sudo rm -Rf /var/folders/*
There are hundreds of posts that suggest using variations of the above to fix the unapproved caller error, but I have yet to find one that explains why it happens.
Sometimes it may require emptying that folder a few times, or restarting and trying again before it finally succeeds with the updates. I am also not convinced that the same thing won't happen the next time an update is installed that requires a restart.
Why is this happening? Is there a permanent fix that I can deploy to our machines that haven't been added to the policy yet? I only have test machines in the policy because I don't trust this to not leave someone stranded after hours.
This is highly frustrating as it should be the most bulletproof task that Casper can do.
Other trivia:
If the policy installs an update that doesn't require a restart, I have found that Apple Software Update is broken until after a restart. Opening the AppStore and clicking on the Update tab gives an error.
Is there an easy way to trigger the installation of an Apple software update that needs a restart to continue testing a machine that is fully patched?
