removable partitions are mounted noexec by default

Bug #87627 reported by Jérémie LAVAL
24
Affects Status Importance Assigned to Milestone
gnome-mount (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Binary package hint: bash

With the latest upgrade from Feisty any sh scripts (i.e. scripts that start with the #!/bin/sh or equivalent statement) returns a permission error. Configure scripts most notably return these kind of errors :

$ ./configure
bash: ./configure : /bin/sh : mauvais interpréteur: Permission non accordée

(can be translated to : "bash: ./configure : /bin/sh : bad interpreter: Permission not accorded"

Replacing the /bin/sh symlink with eitheir /bin/dash or /bin/bash throws the same error, same if you replace the #!/bin/sh statement in scripts with something like #!/bin/bash

PS: all the scripts have execution permission

Related branches

Revision history for this message
Chris Rose (chris-vault5) wrote :

Does /bin/sh and /bin/dash have execute permissions?

I have the latest bash release and I can't replicate this.

Changed in bash:
assignee: nobody → chris-vault5
status: Unconfirmed → Needs Info
Changed in bash:
assignee: chris-vault5 → nobody
Revision history for this message
Jérémie LAVAL (je-laval) wrote :

Sorry. In fact it's not a bash problem but more a regression (I suppose) of gnome-volume-manager. The problem of permission comes from the fact that the partition stored on removable device (such as my ext3 partition on my usb disk where the concerned programs are) are mounted with the noexec flag and thus doesn't allow any program execution. I managed to get ride of this by modifying my fstab file and mounting manually with 'mount /media/disk_usb'

I suppose that this behaviour came at the same time as my update of bash but I'm sure that precedent version of gnome-volume-manager (or its dependencies) allowed me to execute programs on my external partitions, the main problem is that there is (apparently) no way to configure the flags used by gnome-volume-manager (or gnome-mount in this case ?).

Again sorry for the wrong report :}

Revision history for this message
Martin Pitt (pitti) wrote :

Feisty now allows you to specify the mount options in the Properties dialog of a volume. However, in the interest of backwards compatibility we should flip the default to be 'exec'.

Changed in gnome-volume-manager:
assignee: nobody → pitti
importance: Undecided → Medium
status: Needs Info → In Progress
Martin Pitt (pitti)
Changed in gnome-mount:
status: In Progress → Fix Committed
Martin Pitt (pitti)
Changed in gnome-mount:
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

 gnome-mount (0.5-2ubuntu5) feisty; urgency=low
 .
   * debian/control: Set Ubuntu maintainer (to me).
   * debian/patches/ubuntu-default-mount-options.patch: Use shortname=mixed
     mount option for VFAT to stay compatible with earlier Ubuntu releases.
     (LP: #76200)
   * debian/patches/ubuntu-default-mount-options.patch: Mount with 'exec' by
     default to stay compatible with earlier Ubuntu releases.
     (LP: #87627)
   * debian/patches/ubuntu-default-mount-options.patch: Use 'uid' option by
     default for HFS. (LP: #84044)
   * Add debian/patches/05_ignore_slash_label.patch: If the label is a single
     '/', ignore it, so that it does not end up as /media/_. (LP: #83323)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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