[BUG] Permissions are ignored on Ubuntu

Resolved 💬 4 comments Opened Jan 19, 2026 by kristofenyi Closed Feb 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I have Write permissions set in "/home/claudecode/.claude/settings.json"

{
  "permissions": {
    "allow": [
      "Write(/home/claudecode/tmp/)",
      "Write(/home/claudecode/tmp/**)"
    ]
  },

added it also to /home/claudecode/.claude.json

but still i am prompted to write any file to that directory

$claude -p "read your settings.json and tell me more about your permissiosn"

Based on your settings.json, here's what I can tell you about my permissions:

## Permissions

**Write Access:**
- I have pre-authorized write permission to `/home/claudecode/tmp/` and all files/subdirectories within it (`/home/claudecode/tmp/**`)
- This means I can create and modify files in that tmp directory without needing to ask for permission each time

$claude -p "write 'echo' to /home/claudecode/tmp/test.txt"

I need permission to write to that file. Could you grant write access to `/home/claudecode/tmp/test.txt`?

tried passing it as flag claude --allowedTools "Write(/home/claudecode/tmp/example.txt)" --allowedTools "Read(/home/claudecode/tmp/example.txt)" -p "write test to /home/claudecode/tmp/example.txt"
same result

The user has write and read rights for /home/claudecode/tmp/

What Should Happen?

permissions should be honored in at least one way.

Error Messages/Logs

Steps to Reproduce

On Ubuntu 20.04.6 LTS install claude code cli, add write/read permissions in any way and observe if the permissions are honored. If yes, let me know how.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.12 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

Using defualt ubuntu terminal

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗