← Back to team overview

desktop-packages team mailing list archive

[Bug 1153781]

 

Not knowing this bug, I created another patch:
http://lists.freedesktop.org/archives/devkit-devel/2015-April/001668.html

I like the idea here: configure mount options in the udev files.

But I would like to be able to do more: being able to configure selected
mount options (e. g. exec/noexec, shortname, codepage, fmask, dmask,
tz=UTC, time_offset,...) by a non-privileged user. It is now impossible.

Merging features of both together (udev support, non-privileged support,
per-device, per-fs and per volume configuration) would create a very
nice, flexible and comfortable solution.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to udisks2 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 udisks:
  Confirmed
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,bat}.  Use of NTFS makes more sense for some users , as pen
  drives tend to have larger capacities than earlier .

  "vfat" support 'showexec' mount option, which is currently not
  implemented on ntfs-3g.

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

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

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

  
  4. Additional info:

  * ntfs-3g allows for exec mount option, which enables execute bit for all files. 
  * We would also need to enable "showexec" bit in udisk for ntfs, or allow for https://bugs.freedesktop.org/show_bug.cgi?id=33461

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