Skip to content

🐞 MSYS MINGW64 doesn't respect chmod and reports different file permissions than Cygwin #311

Description

@eabase

Using:

# MSYS
Bash Version :  5.2.37(2)-release
MSYS Version :  MINGW64_NT-10.0-26100 version 3.6.4-23a25d49.x86_64 (runneradmin@runnervm51nrn) (gcc version 15.1.0 (GCC) ) 2025-07-16 16:15 UTC

# Cygwin
Bash Version :  5.2.21(1)-release
CygW Version :  CYGWIN_NT-10.0-26100 version 3.6.4-1.x86_64 (runneradmin@runnervm51nrn) (gcc version 12.5.0 (GCC) ) 2025-07-15 07:55 UTC

My editor refused to recognize some files, even though they had the same extension.
It turned out that it was picking up on the file permissions.

# MSYS / MINGW64
# ls -al
-rw-r--r-- 1 xxxx Nobody  2316 Aug 20 21:54 G3_CMakeLists.txt
-rwxr-xr-x 1 xxxx Nobody  6032 Aug 20 23:40 G4_CMakeLists.txt

So I tried to change permission using: chmod 755 G3_CMakeLists.txt but nothing happened.

Then I checked the same in Cygwin:

# Cygwin
# ls -al
-rwxrwx---+ 1 xxxx Nobody  2316 Aug 20 21:54 G3_CMakeLists.txt
-rwxrwx---+ 1 xxxx Nobody  6032 Aug 20 23:40 G4_CMakeLists.txt

WTF is going on?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions