{"id":50758822,"url":"https://github.com/paralevel/useful-disk-access-for-terminal","last_synced_at":"2026-06-11T08:01:01.845Z","repository":{"id":351740357,"uuid":"1212269431","full_name":"paralevel/useful-disk-access-for-terminal","owner":"paralevel","description":"Modify protected files in macOS Terminal without having Full Disk Access","archived":false,"fork":false,"pushed_at":"2026-05-10T15:40:11.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-10T17:27:05.567Z","etag":null,"topics":["bypass","containers","defaults","finder","full-disk-access","macos","restricted-access","sandbox","terminal"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paralevel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-16T08:07:51.000Z","updated_at":"2026-05-10T15:40:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/paralevel/useful-disk-access-for-terminal","commit_stats":null,"previous_names":["paralevel/bypass-sandbox-in-macos-terminal","paralevel/unfull-disk-access-for-terminal","paralevel/useful-disk-access-for-terminal"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paralevel/useful-disk-access-for-terminal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralevel%2Fuseful-disk-access-for-terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralevel%2Fuseful-disk-access-for-terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralevel%2Fuseful-disk-access-for-terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralevel%2Fuseful-disk-access-for-terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paralevel","download_url":"https://codeload.github.com/paralevel/useful-disk-access-for-terminal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralevel%2Fuseful-disk-access-for-terminal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34188272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bypass","containers","defaults","finder","full-disk-access","macos","restricted-access","sandbox","terminal"],"created_at":"2026-06-11T08:01:00.573Z","updated_at":"2026-06-11T08:01:01.839Z","avatar_url":"https://github.com/paralevel.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Useful Disk Access for Terminal\n\nIf you for example get a `Could not write domain` error when using the `defaults` command or `Operation not permitted` when trying to access specific files or folders (related to file system areas that are sandboxed or under some kind of protection, instead of file permissions which would give a `permission denied` error), this is usually solved by giving Full Disk Access permission to Terminal ([see here](https://github.com/mathiasbynens/dotfiles/issues/820)), but if you want to avoid doing that just for a single file, you can instead use the following trick (the example is after a failed attempt at running `defaults write -app safari WBSNewTabPositionPreferenceKey -int 0`):\n\nOpen ~/Library/Containers/com.apple.Safari/Data/Library/Preferences/ in Finder (e.g. using `open ~/Library/Containers/com.apple.Safari/Data/Library/Preferences/`)\n\nCopy the file 'com.apple.Safari.plist' and paste it into Terminal (press Ctrl-C to abort afterwards) – also has the same effect if you copy the parent folder or one of the other files in the same folder\n\nRetry the `defaults` command\n\nSeems to have a permanent effect and also makes all other files and subdirectories in the same directory accessible, and unlike Full Disk Access which goes into effect for all users, it only affects the current user\n\nApparently, the behavior [is by design](https://mysk.blog/2026/05/19/cve-2026-28910/#drag--drop-an-intentional-sandbox-loophole) and not a security flaw\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalevel%2Fuseful-disk-access-for-terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparalevel%2Fuseful-disk-access-for-terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalevel%2Fuseful-disk-access-for-terminal/lists"}