Skip to content
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

Closed
complexconfusion opened this issue Sep 11, 2024 · 6 comments

Comments

@complexconfusion
Copy link

complexconfusion commented Sep 11, 2024

  • not able to use git bash on windows anymore

Setup

  • Git for Windows 2.46.0 64-bit

$ 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

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

Microsoft Windows [Version 10.0.19045.4780]

  • What options did you set as part of the installation? Or did you choose the
    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

clicking on the file explorers right mouse context menu : open git bash here

  • What did you expect to occur after running these commands?

opening minttys terminal window showing a user prompt

  • What actually happened instead?

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)

@complexconfusion
Copy link
Author

complexconfusion commented Sep 11, 2024

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

@NicolasReyrolle
Copy link

Same issue here on Windows 10.0.22631, appears that bin/bash.exe is not executable
Was working well on 2.46 until yesterday, and suddenly not possible anymore. I don't know why, but found out this comes from Windows Security, which has blocked the action:
image

@NicolasReyrolle
Copy link

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

@dscho
Copy link
Member

dscho commented Sep 17, 2024

Hmm. So it looks like an anti-malware issue? I'll add that label, then.

@NicolasReyrolle
Copy link

NicolasReyrolle commented Sep 17, 2024

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

@dscho
Copy link
Member

dscho commented Sep 17, 2024

Strange, indeed. Let's focus on ScoopInstaller/Main#6190 by closing this here ticket.

@dscho dscho closed this as not planned Won't fix, can't repro, duplicate, stale Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants