gemini-cli - 💡(How to fix) Fix run_shell_command calls fail with "execvp(3) failed.: Permission denied" [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#25933Fetched 2026-04-25 06:22:10
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Author
Participants
Timeline (top)
labeled ×1

Code Example

> /about
 About Gemini CLI│                                                                                                                                                                                                                                                            │
CLI Version                                                                             0.39.1Git Commit                                                                              4d73f3413                                                                                                                                                          │
Model                                                                                   Auto (Gemini 3)Sandbox                                                                                 no sandbox                                                                                                                                                         │
OS                                                                                      linux                                                                                                                                                              │
Auth Method                                                                             gemini-api-key
RAW_BUFFERClick to expand / collapse

What happened?

I just installed v0.39.1 on my RHEL8 (also tried RHEL9 host) and while it mostly works, I cannot run external commands at all. They all fail with execvp(3) failed.: Permission denied.

I thought that maybe having it installed in my NFS-based home dir was the issue, but installing in a local temp directory did not change anything.

I wish I could provide more information, but even in --debug the console pretty has the same information. Other tools like Codex or Claude have no problems. I tried both with Node 22.22.2 and 25.9.0.

What did you expect to happen?

Simple things like "echo Hello" surface the issue.

Client information

<details> <summary>Client Information</summary>

Run gemini to enter the interactive CLI, then run the /about command.

> /about
 About Gemini CLI                                                                                                                                                                                                                                           │
│                                                                                                                                                                                                                                                            │
│ CLI Version                                                                             0.39.1                                                                                                                                                             │
│ Git Commit                                                                              4d73f3413                                                                                                                                                          │
│ Model                                                                                   Auto (Gemini 3)                                                                                                                                                    │
│ Sandbox                                                                                 no sandbox                                                                                                                                                         │
│ OS                                                                                      linux                                                                                                                                                              │
│ Auth Method                                                                             gemini-api-key
</details>

Login information

I am using Vertex through a custom URL

Anything else we need to know?

No response

extent analysis

TL;DR

The issue is likely due to a permission issue with the installation or execution of external commands, and checking the file system permissions and ownership may help resolve the issue.

Guidance

  • Verify the file system permissions and ownership of the installation directory and the external commands to ensure they are executable by the user running the application.
  • Check the SELinux context of the files and directories involved, as RHEL8 and RHEL9 have SELinux enabled by default, which may be restricting the execution of external commands.
  • Try running the application with elevated privileges or as a different user to see if the issue is related to user permissions.
  • Investigate the execvp(3) failed: Permission denied error further, as it may indicate a specific issue with the system's ability to execute external commands.

Example

No code snippet is provided as the issue is more related to system configuration and permissions.

Notes

The issue may be specific to the RHEL8 and RHEL9 environments, and the fact that other tools like Codex or Claude work fine suggests that the issue is not with the Node versions being used.

Recommendation

Apply workaround: Check and adjust file system permissions and ownership, and investigate SELinux context, as these are the most likely causes of the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix run_shell_command calls fail with "execvp(3) failed.: Permission denied" [1 participants]