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

Reported by Geek87 on 2010-04-12
176
This bug affects 35 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
High
Unassigned
udisks
New
Undecided
Unassigned
Baltix
Undecided
Unassigned
mime-support (Ubuntu)
High
Unassigned
Lucid
High
Unassigned
Maverick
High
Unassigned
udisks (Ubuntu)
High
Unassigned
Lucid
High
Unassigned
Maverick
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) on 2010-04-12
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

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.

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.

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
Jack Leigh (leighman) wrote :

See also #552323

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

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.

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

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.

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)
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.

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...

dE (de-techno) wrote :

What about shell scripts?

David Ayers (ayers) wrote :

Does comment #5 not work for you?

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.

dE (de-techno) wrote :

#14

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

papukaija (papukaija) wrote :

Another workaround:

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

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)
Roy Jamison (xteejx) on 2010-06-25
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

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
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

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 )

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.

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
danizmax (danizmax) wrote :

I'm confirming the bug for Maverick...

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
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.

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) on 2010-11-14
Changed in hundredpapercuts:
status: New → Confirmed

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

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
Charles Plessy (plessy) wrote :
Changed in mime-support (Ubuntu):
status: Confirmed → Fix Released
Changed in hundredpapercuts:
importance: Undecided → High
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers