unable to set executable bit on ntfs partition

Bug #598023 reported by Itxaka Serrano
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
ntfs-3g (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Binary package hint: ntfs-3g

Not sure if this is a ntfs-3g bug or other related security package involved.

It's impossible to set the executable bit on any file on a ntfs partition mounted.

itxaka@itxaka-laptop:/media/Almacen/World of Warcraft$ ls -la Wow.exe
-rw------- 1 itxaka itxaka 7393944 2010-03-27 15:24 Wow.exe
itxaka@itxaka-laptop:/media/Almacen/World of Warcraft$ chmod +x Wow.exe
itxaka@itxaka-laptop:/media/Almacen/World of Warcraft$ ls -la Wow.exe
-rw------- 1 itxaka itxaka 7393944 2010-03-27 15:24 Wow.exe
itxaka@itxaka-laptop:/media/Almacen/World of Warcraft$ sudo chmod +x Wow.exe
[sudo] password for itxaka:
itxaka@itxaka-laptop:/media/Almacen/World of Warcraft$ ls -la Wow.exe
-rw------- 1 itxaka itxaka 7393944 2010-03-27 15:24 Wow.exe
itxaka@itxaka-laptop:/media/Almacen/World of Warcraft$

Copying the file to my home directory and setting it executable works with no problems.

itxaka@itxaka-laptop:~$ ls -la Wow.exe
-rwx--x--x 1 itxaka itxaka 7393944 2010-06-24 11:28 Wow.exe

mtab contents:

/dev/sdb2 / ext4 rw,errors=remount-ro 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
none /dev devtmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
none /dev/shm tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
none /var/lib/ureadahead/debugfs debugfs rw,relatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /home/itxaka/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=itxaka 0 0
/dev/sdc5 /media/Almacen fuseblk rw,nosuid,nodev,allow_other,blksize=4096,default_permissions 0 0

Trying to make it executable via Nautilus doesn't work either.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: ntfs-3g 1:2010.3.6-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-5.6-generic 2.6.35-rc3
Uname: Linux 2.6.35-5-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Thu Jun 24 11:33:54 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha amd64 (20100623)
ProcEnviron:
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
SourcePackage: ntfs-3g

Revision history for this message
Itxaka Serrano (itxaka) wrote :
summary: - ntfs-3g unable to set executable bit on ntfs partition
+ unable to set executable bit on ntfs partition
Revision history for this message
Jean-Pierre (jean-pierre-andre) wrote :

Please remove default_permissions from your mount command. Better still, apply what is described in the user mapping section of the ntfs-3g manual.

Revision history for this message
Phillip Susi (psusi) wrote :

The kernel ntfs driver correctly fails the chmod request because it can not store the file mode on the disk. NTFS-3g just silently ignores the request rather than returning an error. It should return an error like the kernel driver did.

Changed in ntfs-3g (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Jean-Pierre (jean-pierre-andre) wrote :

The ntfs-3g manual explains how to make chmod store the requested permissions on ntfs, it also explains how to get an error when permissions are not configured.

Revision history for this message
Phillip Susi (psusi) wrote :

So the bug is in the default configuration Ubuntu ships with rather than ntfs-3g itself?

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.