Code: Select all
$ mount
. . .
/dev/sdc1 on /media/Transcend type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)
It seems a bit funky:man page for mount wrote:showexec
If set, the execute permission bits of the file will be allowed only if the extension part of the name is .EXE, .COM, or .BAT. Not set by default.
Code: Select all
$ touch foo.exe
$ ls -l foo.exe
-rwxr-xr-x 1 jeffrey jeffrey 0 2011-12-09 14:58 foo.exe
Code: Select all
$ touch bar
$ ls -l bar
-rw-r--r-- 1 jeffrey jeffrey 0 2011-12-09 14:59 bar
$ mv bar bar.exe
$ ls -l bar.exe
-rw-r--r-- 1 jeffrey jeffrey 0 2011-12-09 14:59 bar.exe
$ chmod a+x bar.exe
$ ls -l bar.exe
-rw-r--r-- 1 jeffrey jeffrey 0 2011-12-09 14:59 bar.exe
Code: Select all
$ ls -l /dos
total 348
-rwxrwx--- 1 root plugdev 711 2009-05-27 22:27 autoexec.bat
-rwxrwx--- 1 root plugdev 66945 2006-08-28 22:40 COMMAND.COM
-rwxrwx--- 1 root plugdev 826 2009-07-17 19:42 fdconfig.sys
drwxrwx--- 10 root plugdev 4096 2009-07-17 19:25 fdos
-r-xr-x--- 1 root plugdev 125960 2003-07-01 13:30 IO.SYS
-rwxrwx--- 1 root plugdev 45341 2006-08-18 05:58 KERNEL.SYS
-r-xr-x--- 1 root plugdev 6 2009-07-21 08:40 MSDOS.SYS
-rwxrwx--- 1 root plugdev 11459 2006-08-11 13:55 SYS.COM