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
 

Gav2k

macrumors G3
Jul 24, 2009
9,216
1,608
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

Sko

macrumors 6502
Oct 17, 2009
285
59
Germany
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.
 

chabig

macrumors G4
Sep 6, 2002
11,449
9,321
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

NoBoMac

Moderator
Staff member
Jul 1, 2014
6,285
4,974
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.
 

Nermal

Moderator
Staff member
Dec 7, 2002
21,007
4,588
New Zealand
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.
 

HenryAZ

macrumors 6502a
Jan 9, 2010
690
143
South Congress AZ
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.
 

ScoobyMcDoo

macrumors 65816
Nov 26, 2007
1,188
37
Austin, TX
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.