can't execute bash scripts on a ntfs partition the way it is mounted by default

Bug #1239329 reported by Teo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I can't believe we still have stupid permission issues with ntfs partitions in 2013.

Steps to reproduce:

1. plug a USB hard disk (formatted as one or more NTFS partitions)
2. watch as it is automatically mounted at /media/<your_user>/something
3 open a terminal
4. cd into any folder within that disk.
5. type the following:

  echo ls > test.sh
  chmod 777 test.sh
  ./test.sh

Expected: the created script should run, hence showing a directory listing

Observed: the following error shows up:
  bash: ./test.sh: Permission denied
and if you check, the file permissions have not been changed and are 600 by default.

The problem is the way NTFS partitioons are mounted by default. I know this can be fixed by mounted them in some other way (which I don't remember now), e.g. by configuring then in fstab. But that should not be necessary. That should be the default way.

There are two things that are unquestionally wrong:
1 - chmod SILENTLY fails. It should output an error message when failing to change file permissions for whatever reason
2 - the default way of mounting a plug-and-play drive should be such that you can save and execute a file on it. It is nonsense that executing a file from a plugged usb drive is complicated as hell. It should be absolutely trivial.

This issue is probably just in some default settings in Ubuntu that should be changed, but I'm reporting it against linux because I have no idea what package is responsible for this

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: linux-image-3.8.0-31-generic 3.8.0-31.46
ProcVersionSignature: Ubuntu 3.8.0-31.46-generic 3.8.13.8
Uname: Linux 3.8.0-31-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.9.2-0ubuntu8.4
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: teo 2735 F.... pulseaudio
Date: Sun Oct 13 13:27:43 2013
HibernationDevice: RESUME=UUID=b1b3e5fe-38e2-44c9-9e48-4564cd9f4d66
InstallationDate: Installed on 2010-06-23 (1208 days ago)
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
MachineType: ASUSTeK Computer Inc. M51Sn
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB:

ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-31-generic root=UUID=173acbf5-26a0-49e3-8d2b-f1c142582cbf ro quiet splash
RelatedPackageVersions:
 linux-restricted-modules-3.8.0-31-generic N/A
 linux-backports-modules-3.8.0-31-generic N/A
 linux-firmware 1.106
SourcePackage: linux
UpgradeStatus: Upgraded to raring on 2013-08-10 (64 days ago)
dmi.bios.date: 12/24/2007
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 303
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: M51Sn
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.asset.tag: ATN12345678901234567
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr303:bd12/24/2007:svnASUSTeKComputerInc.:pnM51Sn:pvr1.0:rvnASUSTeKComputerInc.:rnM51Sn:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
dmi.product.name: M51Sn
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.

Revision history for this message
Teo (teo1978) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
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.