can't execute bash scripts on a ntfs partition the way it is mounted by default
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/
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-
ProcVersionSign
Uname: Linux 3.8.0-31-generic i686
NonfreeKernelMo
ApportVersion: 2.9.2-0ubuntu8.4
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
Date: Sun Oct 13 13:27:43 2013
HibernationDevice: RESUME=
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_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
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.
dmi.board.name: M51Sn
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: M51Sn
dmi.product.
dmi.sys.vendor: ASUSTeK Computer Inc.
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
This change was made by a bot.