Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

theprizerevealed

macrumors regular
Original poster
Feb 26, 2016
183
12
I obtained some music files in the FLAC format from a questionable source. When I use the Finder to view these files the file ending says .flac but the icons displayed shows the icon for the old style screen for older computers prior to the 1990's with the little words 'exec' for executable in the picture.

Know which one I mean? Anyway, I wonder if this is a hint from OS X that these files have some executable malware inside the innocuous music file? I know such things are possible from prior experience with limewire and frostwire. Can someone illuminate me? I am new to OS X and it's quite awhile since I used a unix operating system.

thanks for your input
 
I obtained some music files in the FLAC format from a questionable source. When I use the Finder to view these files the file ending says .flac but the icons displayed shows the icon for the old style screen for older computers prior to the 1990's with the little words 'exec' for executable in the picture.

Know which one I mean? Anyway, I wonder if this is a hint from OS X that these files have some executable malware inside the innocuous music file? I know such things are possible from prior experience with limewire and frostwire. Can someone illuminate me? I am new to OS X and it's quite awhile since I used a unix operating system.

thanks for your input
.exe files are windows specific OS X will not launch them.
 
  • Like
Reactions: NoBoMac
The exec icon is usually used for terminal scripts or binaries. Sometimes this icon is shown when the finder doesn't know about the file format. Try to open it with an audio editor or vlc, not by double clicking, of course.
 
They probably are executable files. Is your Finder preference set to hide extensions. If it is, files with names like foo.flac.exe will just show up as foo.flac
 
  • Like
Reactions: NoBoMac
Additionally to turning on showing of extensions, can do this simple Terminal thing:

Code:
cd path-to-folder-with-the-files
ls -l

Will give a long listing of the files, will see full name of the files.
 
I've seen the "exec" icon on plain text files too. In this case it was some C source code (which won't run without a compiler) and OS X still gave it the "exec" icon. Even worse, dragging and dropping onto TextEdit caused Gatekeeper to tell me that the file can't be opened because it's not signed. Sigh.
 
I obtained some music files in the FLAC format from a questionable source. When I use the Finder to view these files the file ending says .flac but the icons displayed shows the icon for the old style screen for older computers prior to the 1990's with the little words 'exec' for executable in the picture.

Know which one I mean? Anyway, I wonder if this is a hint from OS X that these files have some executable malware inside the innocuous music file? I know such things are possible from prior experience with limewire and frostwire. Can someone illuminate me? I am new to OS X and it's quite awhile since I used a unix operating system.

thanks for your input
Well I'm so used to using PathFinder instead of Finder, I thought that showing the octal permission set under "File Info" was standard, but apparently Finder does not give you that information. You can get the octal display in Terminal by doing a directory listing (ls -al) in the folder where the files live. Look at the left column to see if the "x" bit is present for any of the three sets (user, group, world). If there are any "x"s there, then it is executable by someone. They will look something like this: -rw-r--r-- (octal 644) where the file's owner has read and write, the owner's group and everyone else has read only. An executable file might look like this: -rwxr-xr-- (octal 754) where the owner has read, write, and execute, the owner's group has read and execute, and everyone else read only. A "d" in the first position means that file is really a directory.
 
There is a terminal command, "file" which seems to do a better job of reporting a file type. For example, if you create a shell script called foo, make the first line of that shell script read #!/bin/bash, turn the execute permissions off, file will interpret as a shell script, but finder will report it as a text file. Add in executable attributes with "chmod +x foo", file is still consistent, but now finder thinks it is unix executable. Now rename foo with "mv foo foo.flac", finder now thinks it is an audio file, but the "file" command is still not fooled - it still reports it as a shell script.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.