Skip to main content
Solved

Security command: User interaction is not allowed!

  • November 21, 2019
  • 1 reply
  • 2 views

Forum|alt.badge.img+5

Hey guys,
I'm need to run security show-keychain-info command to query Keychains information of endpoints. Some of them return User interaction is not allowed although their Keychain is unlocked.
Other security commands don't work on those endpoints.
How can I fix this now?

Best answer by adam_vu

I figured it out. Have to use

currUser=$(/usr/bin/stat -f%Su /dev/console) currUserUID=$(id -u "$currUser") /bin/launchctl asuser "$currUserUID" sudo -iu "$currUser" /usr/bin/security
View original
Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+5
  • Author
  • New Contributor
  • 9 replies
  • Answer
  • November 21, 2019

I figured it out. Have to use

currUser=$(/usr/bin/stat -f%Su /dev/console) currUserUID=$(id -u "$currUser") /bin/launchctl asuser "$currUserUID" sudo -iu "$currUser" /usr/bin/security

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings