Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

/home/claude/.claude.json not accessible by claude user in container #14

@FelixSchwarz

Description

@FelixSchwarz

🚀 Starting Claude Code...
Press Ctrl+C to drop to bash shell

node:fs:574
  return binding.open(
                 ^

Error: EACCES: permission denied, open '/home/claude/.claude.json'
    at Module.openSync (node:fs:574:18)
    at Object.writeFileSync (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:536:1088)
    at uM (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:559:103)
    at i30 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:664:2002)
    at D5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:664:2642)
    at _xA (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:552:1317)
    at HN5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:2452:8118)
    at UN5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:2453:34)
    at zN5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:2452:11014)
    at file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:2456:1808 {
  errno: -13,
  code: 'EACCES',
  syscall: 'open',
  path: '/home/claude/.claude.json'
}

Node.js v20.19.2

Claude exited. You're now in bash shell.
Type 'claude --dangerously-skip-permissions' to restart Claude
Type 'exit' to end the session

$ ls -la /home/claude
total 40
drwxr-x---. 1 claude claude 4096 Jun 13 05:41 .
drwxr-xr-x. 1 root   root   4096 Jun 13 05:41 ..
-rw-r--r--. 1 claude claude  220 Jan  6  2022 .bash_logout
-rw-r--r--. 1 claude claude 3771 Jan  6  2022 .bashrc
-rw-r--r--. 1 root   root   1035 Jun 13 05:41 .claude.json
-rw-r--r--. 1 claude claude  866 Jun 13 05:41 .gitconfig
-rw-r--r--. 1 claude claude  807 Jan  6  2022 .profile
-rw-r--r--. 1 claude claude    0 Jun 13 05:41 .sudo_as_admin_successful
-rwxr-xr-x. 1 claude claude  409 Jun 13 05:41 start-session.sh

Setting ownership for /home/claude/.claude.json to claude:claude fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions