26

I am trying to install some software, (at this particular moment I want to install VirtualBox, although this issue has happened with other software), and I have to click "Allow" in System Preferences, in the Security & Privacy -> General window. When I click on it, nothing happens, and the button and message stays there.

I looked online, and all of the solutions say that there is some kind of program running that captures/forwards mouse clicks and such, and thus I am not "directly" clicking on the Allow button.

The problem is that I don't know of any programs that I'm running that do this.

I am on a Macbook Pro 13 inch 2016 with touchbar, running macOS High Sierra

  • I am not connected remotely
  • I have tried restarting my computer
  • I have tried running the installer through terminal, with and without the sudo command
  • I have tried right-clicking and clicking on "open" on the .pkg file
  • I have tried unlocking the system preferences page before clicking "Allow"
  • I tried re-downloading the .pkg file

Screenshot of security and privacy window

Abraham
  • 585
  • 2
  • 5
  • 12
  • I'm not sure what kind of element we are talking about, but the whole System Preferences window should be navigable with a keyboard: Arrow keys, Tab, Shift+Tab, Space, Enter. As far as fixing this issue goes... Try to reboot to safe mode and see if you can click the same "Allow" in that mode. – Joonas Apr 26 '18 at 06:37
  • Are you able to start the program when you right-click the program and then choose "open"? – Jules Apr 26 '18 at 06:57
  • Welcome to Ask Different! :) It would be really good if you could [edit](https://apple.stackexchange.com/posts/323668/edit) your question to clarify the exact `Allow` button you're referring to. It may be best to actually upload a screenshot of the window it's on. Also, it may be worth mentioning the software you're trying to install as it could be relevant to the problem. – Monomeeth Apr 26 '18 at 08:17
  • I have edited my post to make it more clear what I'm asking – Abraham Apr 26 '18 at 14:10
  • I was not able to navigate the window using my keyboard, how can I do this? – Abraham Apr 26 '18 at 14:10
  • It is a .pkg file, and the same thing happens when I right-click and choose open. The same thing also happens when I run the installer through terminal. – Abraham Apr 26 '18 at 14:11
  • you need to click the lock to make changes in the bottom left corner of that window... then enter your administrator account's password. Otherwise the "allow" button will not do anything. – dwightk Apr 26 '18 at 15:50
  • I have tried unlocking and entering my password, and it did not work. – Abraham Apr 26 '18 at 17:15
  • See https://github.com/tekezo/Karabiner-Elements/issues/1017 – rogerdpack Oct 05 '18 at 21:48

10 Answers10

44

This worked for me on High Sierra 10.13.4:

  • System Preferences > Keyboard > Shortcuts > Select 'All Controls'

enter image description here

Then:

  • System Preferences > Privacy & Security > Press 'Tab' until 'Allow' is selected > Press 'Spacebar'

*Note: the Privacy & Security page may need to be unlocked before 'Tab' will work.

*Note: After open Security & Privacy and selecting General tab you should push tab key to select allow button after that push space bar key!

Hope this helps!

Credit to @dansanduleac's answer on GitHub

GabeBrady
  • 786
  • 7
  • 6
10

We can use Apple Script to click on the Allow button as follows:

  1. Press Shift Command 4 to start screen capture (but don't actually go thru with this):
  2. Hover over the Allow button and note the coordinates (e.g. 620, 534)

enter image description here

  1. Open a Terminal window and use those coordinates in a script:

    osascript -e 'tell application "System Events" to click at {620, 534}'

Stephen Quan
  • 426
  • 5
  • 8
  • The fact that you may need to click this button with the command line is a crazy bad UX – David Lopez Oct 26 '18 at 21:40
  • 1
    Genius complex idea for engineering! – masoud soroush Nov 07 '18 at 01:02
  • Using the osascript method works great, but you cannot see the cursor position info over ARD. Solution was to drag the window to the top-left corner of the screen, and then the coordinates are: {570, 473}. – staze Jan 11 '19 at 23:21
  • You may need to go into Security & Privacy -> Privacy tab and under Accessibility check the box next to the terminal for this solution to work properly. – chris Apr 04 '19 at 07:03
  • 2
    No need to hunt for coordinates: https://pastebin.com/raw/TGxeccPV – gdeff Nov 07 '20 at 23:39
7

If you are connecting to the computer remotely with software such as TeamViewer, VNC etc. it will not work, because macOS doesn’t allow you to press “Allow” button through other applications. You have to directly press that button with your trackpad.

  • I am on my actual computer, and I am not connected remotely. – Abraham Apr 26 '18 at 20:18
  • In this case, I can’t help you, but this answer is still valid. Are you using a mouse? If so, try using the trackpad. Shouldn’t make a difference, but worth to try. –  Apr 26 '18 at 20:20
  • 1
    Unfortunately I am using the trackpad. Solutions I've found online involve this answer, and many people have said they had some software like MagicPrefs, Witch, etc. that capture and forward mouse clicks and such. I might have some services running that do this that I do not know about. – Abraham Apr 26 '18 at 20:22
  • 1
    Did you try safe mode? –  Apr 26 '18 at 20:23
  • That worked! After I got out of safe mode, and tried to install other stuff, it had the same problem. It must have been some software monitoring my mouse and keyboard events, I'll have to look into that. Thanks! – Abraham Apr 26 '18 at 21:01
  • Great to know you fixed your problem! By the way, I posted that as an answer. If you find it useful, you can mark it as answered. –  Apr 26 '18 at 21:07
5

Nothing was working for me, local clicking, keyboard selection, nothing. Turns out it was a piece of security software that hadn't been authorized correctly. This security software was the process actually "performing" the click. To find out what bit of software or hardware happens to be being blocked, you have to establish what Process ID it uses, then identify the software/hardware from its PID, and go from there, either killing or uninstalling the hardware/software, and repeating until the click succeeds. Man I hate macos.

  1. Open Console ( Finder > Go > Applications > Utilities > Console )
  2. Click, press, tap, space, automator the button
  3. A message will pop onto Console (under your Device's main logs) that looks someting like this: “Dropping mouse down event because sender’s PID (1234) isn’t self or 0”
  4. Open Activity Monitor and sort by the PID field. Find the PID, [force] quit the process, try to click/press/tap/space/automator the button again, should work. If not, repeat this process - probably another PID blocking you now.

Note, the above is NOT a workaround for being unable to use remote software - that just won't work unless you completely disable SIP.

Micah Roth
  • 51
  • 1
  • 1
  • Quick note: for me it was VLC which was blocking the click event. You might try to quit both Chrome and VLC if you're in a hurry, if that doesn't solve the problem this method works absolutely fine, thanks! – jlapoutre Sep 23 '18 at 07:26
3

Try safe mode. It should disable any services running at the background, letting you to click the Allow button. You can get into safe mode by rebooting and holding shift during reboot.

2

for me it worked after i quit VLC

ehsan
  • 21
  • 1
2

After looking through some of these answers, I realized that the issue was the Spectacle window manager app. Once I quit that it worked fine.

1

It worked for me when I quit Chrome before clicking 'Allow'.

weigel
  • 11
  • 1
0

Using Micah Roth's solution I figured out that it was the fact that I was using a Wacom pad. I looked up the process and it was WacomTabletDriver. To fix this I went into System Preferences > Accessibility > Mouse & Trackpad and checked Enable Mouse Keys. You can then use the following keys to move and the center one (5/I) to click. (Image is from https://support.apple.com/kb/PH18381)

use the outer numbers on the numpad or the keys around I on querty to move

-1

I experienced this same issue today with Little Snitch, and after reading and trying a half dozen fairly complicated "solutions" without any success, what worked for me was: close the Chrome app. Problem solved.