[Bug 1153781] Re: Can not run .exe .com and .bat from NTFS formated USB flash drive

Martin Pitt martin.pitt at ubuntu.com
Tue Mar 12 10:44:58 UTC 2013


vfat has the nice "showexec" option which automatically sets the
executable bit for *.exe, *.com, and *.bat. But ntfs-3g does not have an
equivalent option. One can add the "exec" mount option, but that will
make _all_ files executable, and thus make it very confusing to open
documents from NTFS devices (it would try to execute e. g. a Word
document, which will obviously fail). As handling documents, media files
etc. is far more common than trying to run DOS batch or Windows .exe
files under Linux, udisks does not, and will not use "exec" by default.

You can locally work around this by adding the affected device to
/etc/fstab (mount by label or UUID), and adding the exec option (and
"noauto,user").

A better fix would be to teach ntfs-3g about a "showexec"-like mount
option, which we could then use in udisks.

** Also affects: ntfs-3g
   Importance: Undecided
       Status: New

** Package changed: udisks (Ubuntu) => udisks2 (Ubuntu)

** Changed in: udisks2 (Ubuntu)
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udisks in Ubuntu.
https://bugs.launchpad.net/bugs/1153781

Title:
  Can not run .exe .com and .bat from NTFS formated USB flash drive

Status in NTFS-3G:
  New
Status in “udisks2” package in Ubuntu:
  Triaged

Bug description:
  1. Description of the problem: 
  Currently NTFS formated USB flash drives do not have the exec bit for .exe, .com, and .bat.
  Using vfat we do have this feature thanks to 'showexec' although it's not an option since usb sticks are getting bigger and bigger therefor the use of NTFS makes more sense for some users.

  The use case is necessary when we have applications that are multi
  platform.

  PS: There is already an on-going discussion for having the 'showexec' also added to NTFS. 
  https://bugs.freedesktop.org/show_bug.cgi?id=28075

  2. Ubuntu release, software version, Release Number and Architecture of the selected components. 
  Ubuntu 12.04.2 LTS

  3. How reproducible is the problem? 
  Always. Format a usb key with NTFS and copy some .exe files. Insert it to the usb port and let Nautilus open it.
  Files won't have the +x bit enabled.

  drwxr-x---+ 4 root   root   4096 Mar 11 16:11 ..
  -rw-------  1 user1 user1   29 Mar  8 14:20 aaa.exe

  4. Workaround
  You can umout and mount manually with the following command. But it defeats the purpose of having proper permissions from the start. 

  sudo mount -t auto /dev/sda1 /media/lborda/

  
  Leo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ntfs-3g/+bug/1153781/+subscriptions




More information about the foundations-bugs mailing list