brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: tccutil reset makes an app ask again for camera or microphone access

Security
~/tips/tip-macos-tccutil-reset

tccutil reset Camera com.example.app

Clears an app's saved privacy permission so macOS asks you again next time.

macOS remembers every Allow and Don’t Allow you click when an app wants your camera, microphone or contacts. Click Don’t Allow by accident and that video call app just shows a black square from then on. You can flip switches in Privacy & Security, but I find a clean reset tidier: the app asks again, like on day one.

The tool for that is tccutil. It needs the service and, optionally, the bundle ID of one app:

tccutil reset Camera com.example.app

To find the bundle ID of an app, read it from its Info.plist:

defaults read /Applications/SomeApp.app/Contents/Info CFBundleIdentifier

So for a video app that lost its microphone, you’d run tccutil reset Microphone with that ID, quit and reopen the app, and macOS shows the permission prompt again. The man page’s own example resets everything for Terminal at once:

tccutil reset All com.apple.Terminal

Be careful with the short form. Leave out the bundle ID and the reset hits every app for that service, so tccutil reset Camera takes camera access away from all of them, and tccutil reset All wipes every privacy decision on your account. The service names are case-sensitive, and Apple’s man page only spells out a couple of them; names like Camera and Microphone come from the list that ss64 keeps.

Further reading: tccutil man page, tccutil on ss64

More Security tips tcpdump -nn -r capture.pcap port 53 mkcert -install Strict-Transport-Security: max-age=0 Referrer-Policy: strict-origin-when-cross-origin wp super-admin list All Security tips (79) All topics

Link