Skip to content

dangerously-skip-permissions using a devcontainer #927

Description

@danieldeusing

I am getting

╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                        │
│ WARNING: Claude Code running in Bypass Permissions mode                                                                │
│                                                                                                                        │
│ In Bypass Permissions mode, Claude Code will not ask for your approval before running potentially dangerous commands.  │
│ This mode should only be used in a sandboxed container/VM that has restricted internet access and can easily be        │
│ restored if damaged.                                                                                                   │
│                                                                                                                        │
│ By proceeding, you accept all responsibility for actions taken while running in Bypass Permissions mode.               │
│                                                                                                                        │
│ https://docs.anthropic.com/s/claude-code-security                                                                      │
│                                                                                                                        │
│   1. No, exit                                                                                                          │
│ ❯ 2. Yes, I accept✔                                                                                                    │
│                                                                                                                        │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
   Enter to confirm · Esc to exit
root@cc-master:/workspace# claude --dangerously-skip-permissions
--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons

I totally understand the security concerns, but as I am in a self made dev-container, I explicity want also root to be able to run the skip-permission mode.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingplatform:linuxIssue specifically occurs on Linux

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions