-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mintty 3.7.4 : Failed to run '/usr/bin/bash': Permission denied Exit 126. #5135
Comments
reinstalled Git for Windows 2.46.0 64-bit multiple times, also checked files under {user}\AppData\Local\Programs\Git exist and have full permissions |
I investigated a little bit further, and turns out a standard installation works. Mine uses scoop, so I believe this is more related to scoop (and windows policies) than to git-bash |
Hmm. So it looks like an anti-malware issue? I'll add that label, then. |
Yes, it looks like so, some default strategy added recently by Microsoft, we believe. That's more on scoop side, I think, but I do not understand why as the binaries are identical |
Strange, indeed. Let's focus on ScoopInstaller/Main#6190 by closing this here ticket. |
Setup
$ git --version --build-options
git version 2.46.0.windows.1
cpu: x86_64
built from commit: 2e6a859
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
feature: fsmonitor--daemon
libcurl: 8.9.0
OpenSSL: OpenSSL 3.2.2 4 Jun 2024
zlib: 1.3.1
Microsoft Windows [Version 10.0.19045.4780]
defaults?
Editor Option: Notepad++
Custom Editor Path:
Default Branch Option: main
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Disabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled
Details
Minimal, Complete, and Verifiable example
this will help us understand the issue.
clicking on the file explorers right mouse context menu : open git bash here
opening minttys terminal window showing a user prompt
opening minttys terminal window (/usr/bin/bash --login -i) showing the message :
Failed to run '/usr/bin/bash': Permission denied
/usr/bin/bash: Exit 126.
(with a red background)
The text was updated successfully, but these errors were encountered: