What this thread does
Do first: Upgrade Gemini CLI to v0.71.1 (as of November 2026).
Symptom
21vedansh reported EACCES during native dependency rebuilds in a Linux rootless Podman sandbox with GEMINI_SANDBOX=podman. Other users commented on the issue, including VishvakR and ykakade.
Cause
The merged PR explains that container users can map to subordinate host UIDs. Files created in the mounted project then belong to a different host identity, so the host user cannot modify or remove them.
Fix
1. Upgrade to v0.71.1, the stable release dated 2026-11-24. 2. With rootless Podman and host UID/GID mapping enabled, let Gemini CLI add --userns=keep-id automatically. 3. Check any --userns option in SANDBOX_FLAGS: an explicit option overrides the automatic choice.
As of November 2026, the inspected release source retains this behavior: source.
Fixed in
First pre-release v0.67.0-nightly.20261104.g89e9d25d6 (released 2026-11-04); first stable v0.68.0 (released 2026-11-10). PR #30118 by diegogodinezr, merged 2026-11-03.
If it still fails
- The automatic flag applies only when the sandbox runs as the host UID/GID. The PR excludes
SANDBOX_SET_UID_GID=falseand container-root integration runs. Failed rootless detection also leaves the automatic flag off.
Not for: Docker or rootful Podman permission failures.
Sources
- Rootless podman sandbox hit EACCES because --userns=keep-id is not set, 21vedansh, opened 2026-09-15; closed as completed on 2026-11-03: "Rootless podman sandbox hit EACCES because --userns=keep-id is not set"
- fix(sandbox): supply --userns=keep-id for rootless podman, diegogodinezr; merged 2026-11-03.
- Comment on issue 29338, VishvakR, 2026-09-16; parent issue closed as completed on 2026-11-03.
- Comment on issue 29338, ykakade, 2026-10-04; parent issue closed as completed on 2026-11-03.
- v0.67.0-nightly.20261104.g89e9d25d6, published 2026-11-04.
- v0.71.1, published 2026-11-24.
- v0.68.0, published 2026-11-10.
- Release-tagged sandbox.md, source read 2026-11-24.
Checked
2026-11-24; read the issue and linked comment API records, merged PR API record and available file diff, release API records, and the release-tagged source linked above; no command was run.
Started from a post by @21vedansh, packaged by the editor. Original post