Windows executable on unwritable removable media cannot execute with Wine due to lack of executable bit

Bug #561479 reported by Geek87
176
This bug affects 35 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Triaged
High
Unassigned
udisks
New
Undecided
Unassigned
Baltix
New
Undecided
Unassigned
mime-support (Ubuntu)
Fix Released
High
Unassigned
Lucid
Won't Fix
High
Unassigned
Maverick
Invalid
High
Unassigned
udisks (Ubuntu)
Incomplete
High
Unassigned
Lucid
Won't Fix
High
Unassigned
Maverick
Invalid
High
Unassigned

Bug Description

I would like to install Far Cry from the DVD on Ubuntu Lucid but I wasn't able to do so because the installation executable was lacking the executable bit. I verified in fstab and there was the exec option on the cdrom line. Furthermore I was able to install Counter Strike from the CDROM (is there a difference between how DVD and CDROM are managed?). I had to umount the DVD and mount it again in an other folder, /usr/cd (/mnt/cd didn't work) to get the install executable work.

== Regression details ==
Discovered in version: lucid
Last known good version: karmic, which had no cautious-launcher

== Workaround ==
Install Wine from the Wine Team PPA, which disables the use of cautious-launcher

Geek87 (geek87)
summary: - Windows executable on a DVD don't want to execute withe Wine due to lack
+ Windows executable on a DVD don't want to execute with Wine due to lack
of executable bit
description: updated
Revision history for this message
Rickard Närström (riccetn) wrote : Re: Windows executable on a DVD don't want to execute with Wine due to lack of executable bit

As you only see this with some disk my guess is that this may be due to a faulty Rock Ridge extension on the disk. After inserting the disk check the output of 'sudo dmesg'.

What you are looking for is lines like "ISO 9660 Extensions: RRIP_1991A" or "ISO 9660 Extensions: IEEE_P1282". If you see any of those lines the disk has a Rock Ridge extension that contain access information for the files on the disk. You can try to mount the disk with the "norock" option to disable the extension and use default access rights.

Revision history for this message
Michael Shallcrass (mshallcrass) wrote :

I'm also experiencing this bug with multiple installation disks in Lucid beta 2. This includes disks I have successfully installed from while running older versions of Ubuntu.

Trying to run any executable file from a CD or DVD results in an error such as:

"The file '/media/Orange Box/Setup.exe' is not marked as executable. If this was downloaded or copied form an untrusted source, it may be dangerous to run. For more details, read about the executable bit."

If the .exe is copied to the computer the error persists until the box is ticked in the permission preferences allowing for execution as a program. Then the file runs through wine as expected.

The issue seems really to be that by default files are not given permission to run as applications, and since files on an optical disk are read-only it is impossible to grant them permission to run. I guess in theory it would be the same for an internal file system that was mounted read-only, but trying to run programs off CD is probably a common enough action that this bug is worth further investigation.

I don't expect the majority of end users want to have to learn how to mount their installation disks manually in order to change mount settings, it should just be possible to run programs off a CD, as it has been possible to in the past.

Revision history for this message
Rickard Närström (riccetn) wrote :

Confirmed by Michael in comments.

affects: ubuntu → wine (Ubuntu)
Changed in wine (Ubuntu):
status: New → Confirmed
tags: added: regression-potential
Revision history for this message
Jack Leigh (leighman) wrote :

See also #552323

Revision history for this message
Eduardo Cintas (eduardocintas78) wrote :

Try executing "Wine Setup.exe" from the DVD folder in konsole.

Revision history for this message
Michael Shallcrass (mshallcrass) wrote :

Ah yes, I forgot to mention that running "Wine Setup.exe" from command line works fine, this issue only happens when trying to open the .exe from nautilus or dolphin.

Revision history for this message
Eduardo Cintas (eduardocintas78) wrote :

I think that is inconsistent, "wine foo.exe" should do the same thing than doing a click on foo.exe.

Revision history for this message
Eduardo Cintas (eduardocintas78) wrote :
Revision history for this message
Yfrwlf (yfrwlf) wrote :

1) This message should be a question instead to make things easier, "Do you want to run this program?". What's the point of making the user have to go into the properties and make it executable before running it? It's just more work and annoyance. It's at the point where you may as well just make it like Windows Vista/7, as the whole Linux not setting execute bit after copies accomplishes the exact same thing but Windows deals with it in a more elegant way for users.

2) At the very least, this behavior needs to be prevented for CD-Rs as they are not modifiable.

Revision history for this message
Scott Ritchie (scottritchie) wrote :

The problem is the default mount options - cautious launcher is supposed to automatically allow programs on removable media to run, but for some reason they're not being mounted with +execute.

affects: gvfs (Ubuntu) → udisks (Ubuntu)
Revision history for this message
dE (de-techno) wrote :

I'm another one to confirm this problem.

Is there a workaround other than copying the whole disk? And yeah this problem is Ubuntu specific.

Revision history for this message
David Ayers (ayers) wrote :

Workaround:

Applications->Wine->Browse C:\Drive
windows->explorer.exe

Select CD Drive (D:\)
double click executables

But yeah this should really be fixed properly...

Revision history for this message
dE (de-techno) wrote :

What about shell scripts?

Revision history for this message
David Ayers (ayers) wrote :

Does comment #5 not work for you?

Revision history for this message
Jack Leigh (leighman) wrote :

I think also if you update wine from https://edge.launchpad.net/~ubuntu-wine/+archive/ppa it disables cautious-launcher. Though I may just have imagined that.

Revision history for this message
dE (de-techno) wrote :

#14

ls -l shows it's not an exe. So that won't execute, at least shell scripts wont.

Revision history for this message
papukaija (papukaija) wrote :

Another workaround:

Just open the program through from wine's application installer.

Revision history for this message
Scott Ritchie (scottritchie) wrote :

leighman is correct, the Wine PPA disables cautious launcher and thus works around the problem.

I'm going to mark this as high priority in udisks because it's a serious regression in Lucid and it's surely SRU worthy. I'll note the regression isn't in udisks proper, but that's where the fix needs to be.

Changed in udisks (Ubuntu):
importance: Undecided → High
status: New → Triaged
affects: wine (Ubuntu) → wine1.2 (Ubuntu)
summary: - Windows executable on a DVD don't want to execute with Wine due to lack
- of executable bit
+ Windows executable on unwritable removable media cannot execute with
+ Wine due to lack of executable bit
Revision history for this message
rusivi2 (rusivi2-deactivatedaccount) wrote :

Thank you for reporting this bug.

As per Scott Ritchie's most recent comments this issue is fixed. Marking as such.

Changed in wine1.2 (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Mikko Saarinen (mikk0) wrote :

Wouldn't mark this as fixed yet, since wine is not updated to 1.2 in Ubuntu 10.04 yet. Or is it...?

mikko@xpc:~$ sudo aptitude search wine
i A wine1.2 - Microsoft Windows Compatibility Layer (Binary Emulator and Library)

shows wine 1.2 as installed, but

mikko@xpc:~$ wine --version
wine-1.1.42

shows the version to be 1.1.42. I don't know what to think of that, but anyhow, this bug still affects me and I canno't use my exe-files from cd-rom.

Mikko

Revision history for this message
Jack Leigh (leighman) wrote :

wine 1.2 is available in Maverick (the current development release) so I believe a Fix Released is valid.
wine 1.2 should be backported to Lucid soonish -- to get it now enable the proposed updates repository or add the Ubuntu Wine PPA ( https://launchpad.net/~ubuntu-wine/+archive/ppa )

Revision history for this message
Jack Leigh (leighman) wrote :

although wine 1.2 isn't where the fix is/needs to be, so who knows
Your best bet for the moment is to use the version from the ppa which works around the problem.

Revision history for this message
Scott Ritchie (scottritchie) wrote :

This is not fixed, it's only worked around in the Wine PPA packages by disabling the use of cautious launcher.

The root problem is with cautious-launcher, located in the mime-support package

affects: wine1.2 (Ubuntu) → mime-support (Ubuntu)
Changed in mime-support (Ubuntu):
importance: Undecided → High
status: Fix Released → Confirmed
Revision history for this message
danizmax (danizmax) wrote :

I'm confirming the bug for Maverick...

Revision history for this message
ricardisimo (ricardisimo) wrote :

I'm definitely having the problem in Maverick with a Windows game disc that worked perfectly just a few weeks ago on all of my Lucid machines. And also (I need to double-check and confirm this) I don't think that wine had full access to my drives... I couldn't find the disc via wine itself.

Changed in mime-support (Ubuntu Lucid):
status: New → Confirmed
Changed in mime-support (Ubuntu Maverick):
status: New → Confirmed
Changed in udisks (Ubuntu Lucid):
status: New → Triaged
Changed in udisks (Ubuntu Maverick):
status: New → Triaged
Changed in udisks (Ubuntu Lucid):
importance: Undecided → High
Changed in udisks (Ubuntu Maverick):
importance: Undecided → High
Changed in mime-support (Ubuntu Lucid):
importance: Undecided → High
Changed in mime-support (Ubuntu Maverick):
importance: Undecided → High
tags: added: lucid regression-release
removed: regression-potential
description: updated
description: updated
description: updated
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Here's the current status on this:

udisks sanely mounts vfat filesystems by using the "showexec" parameter which only makes .exe, .com and .bat files gain the execute bit. Unfortunately, this mount option isn't available for iso9660 filesystems. Adding the execute bit by default for all files in the iso9660 filesystems will result in nautilus querying the user what to do with files, which is something we want to avoid.

Someone needs to implement an equivalent "showexec" mount option for iso9660 filesystems, at which point udisks can be changed to use it by default.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

As a workaround until this gets fixed, a line similar to the following may be added to /etc/fstab:

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

Akshat Jain (akshatj)
Changed in hundredpapercuts:
status: New → Confirmed
Revision history for this message
John Doe (jodo-deactivatedaccount) wrote :

Bug is still existing in Natty. Any chance that there will be a fix?

Revision history for this message
JC Hulce (soaringsky) wrote :

This bug affects Ubuntu 10.10, Maverick Meerkat. Maverick has reached end-of-life and is no longer supported, so I am closing the bugtask for Maverick. Please upgrade to a newer version of Ubuntu.
More information here: https://lists.ubuntu.com/archives/ubuntu-announce/2012-April/000158.html

Changed in mime-support (Ubuntu Maverick):
status: Confirmed → Invalid
Changed in udisks (Ubuntu Maverick):
status: Triaged → Invalid
Revision history for this message
Charles Plessy (plessy) wrote :
Changed in mime-support (Ubuntu):
status: Confirmed → Fix Released
Changed in hundredpapercuts:
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in mime-support (Ubuntu Lucid):
status: Confirmed → Won't Fix
Changed in udisks (Ubuntu Lucid):
status: Triaged → Won't Fix
Revision history for this message
Luke Faraone (lfaraone) wrote :

Now this is fixed in mime-support, do we still need to make a change to udisks? If so, what is it?

Changed in udisks (Ubuntu):
status: Triaged → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.