Quote:
Originally Posted by Tagiga
"NAME OF FILE" is an executable text file.
|
Your copy seems to have switched-on the x (executable) bits on your text files so now the file manager thinks it might be scripts, to be run, instead of text files, to be shown.
Do an "chmod a-x" on all files which are NOT scripts or (compiled) executables (and do NOT do this on directories, they need the x).
This often happens when you copy files from/to a FAT-type file-system, like most memory sticks use, as that fs doesn't have the concept of "executable permission" so unless you got your mount options exactly right everything comes OFF the fs with all x-bits set (so that directories and "real executables" do not loose them).
I mostly mount vfat sticks with the fmask=0133 option so that NO files at all will be executable (but then - of course - would have to restore the x-bits on file I copied that do need them).
But on FAT and (I believe) NTFS executable bits is a all or nothing thing, either all files are executable or none at all.