[go: up one dir, main page]

Menu

#139 msi files don't acquire x permissions

1.0
closed
nobody
None
2017-02-05
2015-03-14
No

Just for completeness...

I have noticed that .msi files do not acquire x permissions. For example:

$ wget http://libreoffice.mirror.garr.it/mirrors/tdf/libreoffice/stable/4.4.1/win/x86/LibreOffice_4.4.1_Win_x86.msi

$ ls -lrt LibreOffice_4.4.1_Win_x86.msi
-rw-r--r-- 1 angelo None 224264192 22 feb 22.57 LibreOffice_4.4.1_Win_x86.msi

and this is expected.. But

$ chmod +x LibreOffice_4.4.1_Win_x86.msi

$ ls -lrt LibreOffice_4.4.1_Win_x86.msi
-rw-r--r-- 1 angelo None 224264192 22 feb 22.57 LibreOffice_4.4.1_Win_x86.msi

The same steps on Cygwin give:

$ ls -lrt LibreOffice_4.4.1_Win_x86.msi
-rwxr-xr-x 1 angelo None 224264192 22 feb 22.57 LibreOffice_4.4.1_Win_x86.msi

Discussion

  • David Macek

    David Macek - 2017-02-05
    • status: open --> closed
     
  • David Macek

    David Macek - 2017-02-05

    Filesystem permissions on MSYS2 are deliberately read-only (mount points have the noacl option set).

    Furthermore, .msi files are not even considered executable by Windows (see PATHEXT), they just have a default application associated with them. A good command to open a file using its default application would be start .