claude-code - 💡(How to fix) Fix [Bug] Permission deny rules not enforced for file Read operations Windows [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47053Fetched 2026-04-13 05:42:43
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description

  • OS: Windows 11 Home 10.0.26200
  • settings.json contents of each attempt
  • Steps to reproduce (deny rule for Read on a path, then successfully reading that path anyway)

Tried each of these formats settings.json { "autoUpdatesChannel": "latest", "permissions": { "deny": [ "Write(C:/Users/abigail/Contacts/)", "Edit(C:/Users/abigail/Contacts/)", "Read(C:/Users/abigail/Contacts/**)", ] } }

settings.json { "autoUpdatesChannel": "latest", "permissions": { "deny": [ "Write(C:/Users/abigail/Contacts/)", "Edit(C:/Users/abigail/Contacts/)", "Read(C:/Users/abigail/Contacts/*)", ] } }

settings.json { "autoUpdatesChannel": "latest", "permissions": { "deny": [ "Read(C:\Users\abigail\Contacts\)", "Write(C:\Users\abigail\Contacts\)", "Edit(C:\Users\abigail\Contacts\**)", ] } }

settings.json { "autoUpdatesChannel": "latest", "permissions": { "deny": [ "Read(C:\Users\abigail\Contacts\)", "Write(C:\Users\abigail\Contacts\)", "Edit(C:\Users\abigail\Contacts\*)", ] } }

settings.json { "autoUpdatesChannel": "latest", "permissions": { "deny": [ "Read(/c/Users/abigail/Contacts/)", "Write(/c/Users/abigail/Contacts/)", "Edit(/c/Users/abigail/Contacts/**)", ] } }

settings.json { "autoUpdatesChannel": "latest", "permissions": { "deny": [ "Read(/c/Users/abigail/Contacts/)", "Write(/c/Users/abigail/Contacts/)", "Edit(/c/Users/abigail/Contacts/*)", ] } }

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.104
  • Feedback ID: d14d8f76-2fe6-488d-8c51-be228548d8ec

Errors

[]

extent analysis

TL;DR

The issue may be resolved by using the correct path separator and wildcard in the deny rules of the settings.json file.

Guidance

  • Verify that the path separator used in the deny rules matches the expected format for the Windows platform.
  • Try using a single wildcard (*) instead of a double wildcard (**) in the deny rules to see if it makes a difference.
  • Check if the issue is related to the order of the deny rules or if there are any other permissions that might be overriding the deny rules.
  • Test the deny rules with a simpler path to see if the issue is specific to the C:/Users/abigail/Contacts path.

Example

No code snippet is provided as the issue seems to be related to the configuration of the settings.json file.

Notes

The issue may be related to the specific version of the software (2.1.104) or the Windows 11 Home platform, and further investigation may be needed to determine the root cause.

Recommendation

Apply workaround: Try using a different path separator and wildcard in the deny rules, such as Read(C:\\\\Users\\\\abigail\\\\Contacts\\\\*), to see if it resolves the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Permission deny rules not enforced for file Read operations Windows [1 comments, 2 participants]