Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DocSystem/tccutil
A macOS Permissions manager
https://github.com/DocSystem/tccutil
macos permissions tccutil
Last synced: 2 months ago
JSON representation
A macOS Permissions manager
- Host: GitHub
- URL: https://github.com/DocSystem/tccutil
- Owner: DocSystem
- Created: 2020-07-07T15:26:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-28T19:17:11.000Z (over 2 years ago)
- Last Synced: 2024-02-14T21:24:26.765Z (11 months ago)
- Topics: macos, permissions, tccutil
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 37
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tccutil
### A macOS Permissions manager.Tested and works on macOS 12.3.1 with SIP turned off. Other macOS versions haven been tested.
This tool modifies the TCC.db file, use it at your own risk.
You can use tccutil.py to manage an app's permissions (Microphone access, Camera access...)
Here are all disponible commands:
```
usage: tccutil.py [-h] [-e] [-d] [-r] [-id BUNDLEID] [-p APPPATH]
[-n APPNAME] [--contacts] [--calendars] [--reminders]
[--photos] [--camera] [--microphone]optional arguments:
-h, --help show this help message and exit
-e, --enable Enable App Function
-d, --disable Disable App Function
-r, --remove Remove Record of App Function
-id BUNDLEID, --bundleid BUNDLEID
Defines App Bundle ID
-p APPPATH, --apppath APPPATH
Defines App Path to automatically find Bundle ID
-n APPNAME, --appname APPNAME
Defines App Name to automatically find Bundle ID (if
app is not stored in /Applications/, please use
--apppath)
--contacts Change Contacts Access Status for the selected app
--calendars Change Calendars Access Status for the selected app
--reminders Change Reminders Access Status for the selected app
--photos Change Photos Access Status for the selected app
--camera Change Camera Access Status for the selected app
--microphone Change Microphone Access Status for the selected app
```## Add it to Path:
If you want to add it to your path (to be able to type ``tccutil`` without typing ``python /path/to/tccutil``)
Type the following commands in a terminal:
With zsh (macOS 10.15+):
```
PATHTOTCCUTIL="/path/to/tccutil.py"
echo "alias tccutil=python\ `echo $PATHTOTCCUTIL`" >> ~/.zshrc
```
Then restart Terminal for changes to take effect.