Skip to content

pilot start fails: claude cannot be used with root/sudo privileges for security reasons #97

@mavogel

Description

@mavogel

Description

When running pilot after the install completes in the container I get

--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons
[Wrapper] Claude exited unexpectedly: exit code 1

Steps to Reproduce

  1. install fresh
  2. run pilot
  3. ...

Expected vs Actual Behavior

pilot should run fine. Maybe claude changed something under the hood

Idea: create a dedicated user on bootstrap in the devcontainer. Then install all deps etc.

I tried

root in workshops on  main [!] via ⬢ v22.22.1 on 🐳 v28.5.2 took 4.1s …
➜ sudo su vscode
rm: cannot remove '/usr/local/share/nvm/current': Permission denied
vscode ➜ /workspaces/workshops (main) $ which claude
claude not found

because everything was installed with root

Environment

  • OS: OSX 26.3.1
  • Claude Code version: 2.1.74 (Claude Code)
  • Pilot version: Pilot Shell v7.5.4
  • Tier: Solo

Error Output

--dangerously-skip-permissions cannot be used with root/sudo privileges for security reasons
[Wrapper] Claude exited unexpectedly: exit code 1

Checklist

  • I am using the latest version of Pilot Shell
  • I have searched existing issues to avoid duplicates
  • I can reproduce this consistently with the steps above

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions