GNOME Bugzilla – Bug 322868
nautilus wants to execute all text files on a vfat flash drive
Last modified: 2007-01-17 05:58:21 UTC
This bug has been opened here: http://bugzilla.ubuntu.com/show_bug.cgi?id=7999 "I just got a new USB drive. It's pretty spiffy. Whenever I plug it in it automounts and appears on my desktop. That's also pretty spiffy. The problem comes in two parts: 1: The filesystem is mounted with a set of options that cause all files on the vfat drive to be marked executable (ie: the kernel default). 2: When you double-click an executable but otherwise recognised file in nautilus, you get 'Do you want to run "file.abw", or display its contents?'. I don't ever want to execute an Abiword document. So either the defaults (in pmount?) need to be modified to change the file mode mask for vfat filesystems or nautilus needs to be patched to not ask this question all the time." it's specific to text files though
This appears to be fixed in 2.14.0: havoc:cjb~ % ls -la /media/TOSHIBA256M/DCIM/113CANON/foo.abw -rw------- 1 cjb cjb 0 2006-03-23 16:28 /media/TOSHIBA256M/DCIM/113CANON/foo.abw havoc:cjb~ % chmod a+x /media/TOSHIBA256M/DCIM/113CANON/foo.abw havoc:cjb~ % ls -la /media/TOSHIBA256M/DCIM/113CANON/foo.abw -rwx------ 1 cjb cjb 0 2006-03-23 16:28 /media/TOSHIBA256M/DCIM/113CANON/foo.abw (Double click in nautilus, file opens in Abiword.)
Not fixed but duplicate of bug #313023
*** This bug has been marked as a duplicate of 313023 ***
I'm guessing this is because all files show up as marked as executable on a vfat drive so that executables work (since vfat doesn't have a +x attrib) and so that directories are browseable. It seems to me that the solution would be to find out what file system a file is on before popping up the executable text file window, though I could be completely wrong with this :)