Slashdot Mirror


Why We Should Stop Hiding File-Name Extensions

An anonymous reader writes 14 years after the Anna Kournikova virus took advantage of users' ignorance about file-name extensions in order to wreak worldwide havoc, virus writers and hackers are still taking advantage of the tendency of popular consumer operating systems to hide file-name extensions: Windows users still need to activate extension visibility manually – even though email-transmitted viruses depend most on less savvy users who will never do this. Additionally applications on even the latest versions of Apple's OSX operating system still require the user to 'opt in' to including a file-name extension during an initial save. In looking at some of the eccentricities of the modern user experience, this article argues that it might be time to admit that users need to understand, embrace and responsibly use the only plain-text, obvious indicator of what a file actually is.

66 of 564 comments (clear)

  1. Good operating systems Dont. by Anonymous Coward · · Score: 5, Insightful

    The crap ones like Windows and OSX, they hide it because they assume the user is a drooling moron.

    And most of the time they are right.

    1. Re:Good operating systems Dont. by Gerald · · Score: 5, Funny

      I can't get OS X to hide extensions on my machine. Is there a special flag you have to pass to ls?

    2. Re:Good operating systems Dont. by swimboy · · Score: 5, Informative

      Yes, it's | sed s/\.[^\.]*$//

      --
      Ask me how the Heisenberg Principle may or may not have saved my life.
    3. Re:Good operating systems Dont. by ShanghaiBill · · Score: 5, Insightful

      The crap ones like Windows and OSX, they hide it

      I am using OSX right now. File extensions are not hidden. There are some dialogs that optionally hide them, usually when only one extension is possible, such as .pdf in Adobe Reader, but in general, they are not hidden. But even where extensions are hidden, it is not at the same level of stupidity as hiding them on Windows. On Windows, the extension actually changes how the operating system interacts with the file, such as whether it is executable. So Microsoft uses the extension to convey very important information, and then hides that information from users.

    4. Re:Good operating systems Dont. by nukenerd · · Score: 3, Informative

      I am using OSX right now. File extensions are not hidden.... But even where extensions are hidden, it is not at the same level of stupidity as hiding them on Windows. On Windows, the extension actually changes how the operating system interacts with the file

      Just asking, never having used OSX, which I understand to be a Unix system, aren't filename extensions non-functional? ie they are merely part of a filename that happens to include a period near the end. In which case hiding the extension is hiding part of the filename - why TF would anyone do that? And why stop at hiding after the dot? They might as well hide everything after the first occurence of the letter "p" say, or after the first four characters, or the first eight (Oh wait! like FAT16).

    5. Re:Good operating systems Dont. by azav · · Score: 3, Informative

      It's a Finder preference. Press command comma. The first checkbox is "Show all filename extensions".

      --
      - Zav - Imagine a Beowulf cluster of insensitive clods...
    6. Re:Good operating systems Dont. by swimboy · · Score: 2, Informative

      Actually, the classic Mac OS just considered extensions as part of the file name, and used Type and Creator codes to associate a file with an application. When OS X came out, the Type and Creator codes were phased out, and now the extensions are used the same way as on Windows.

      --
      Ask me how the Heisenberg Principle may or may not have saved my life.
    7. Re:Good operating systems Dont. by gnasher719 · · Score: 5, Informative

      Except that MacOS X doesn't hide extensions when an attacker uses the double extension trick. So if you downloaded a file prettyimage.png.exe, even with "hide extensions turned on", MacOS X will display both extensions, while Windows (as far as I know) displays "prettyimage.png".

    8. Re:Good operating systems Dont. by Gr8Apes · · Score: 2

      That's pretty hugely untrue. You can run any file under OSX by enabling the execute perm, or make then not executable by removing it. Well, that's from the command line anyways, from finder... you use that for anything other than scanning data files in a folder? I will admit that Finder has default apps assigned to various extensions, but that information can be overridden IIRC, on a per file basis. I guess I wouldn't be a typical user, since I almost never use the Dock, LaunchPad, Mission Control, or even spotlight and Finder is only for some minor file manipulation, such as copying things from A to B or deleting things.

      --
      The cesspool just got a check and balance.
    9. Re:Good operating systems Dont. by ShanghaiBill · · Score: 4, Informative

      Just asking, never having used OSX, which I understand to be a Unix system, aren't filename extensions non-functional?

      In Mac OS X you can associate an extension with an app. For instance, I have .pdf associate with Adobe Reader, so I can click on a PDF file, and it will pop open in Adobe Reader. These associations are under user control, so you can add, change or delete. But extensions don't change whether a file is executable like .exe, .com, or .bat do on Windows. You use chmod to do that, just like on any other Unix.

    10. Re:Good operating systems Dont. by KingMotley · · Score: 2

      To be fair on Windows, you can also change the security on files/directories and remove the executable permission just like what chmod does too. It's just that noone ever does that.

    11. Re:Good operating systems Dont. by BronsCon · · Score: 3, Interesting

      You also never actually know whether that image (or at least, the file you *think* is an image) is actually an image. Using the file extension hints to you that it is an image and tells the system to treat it as one, so you don't end up with a file that looks like an image, but actually formats your hard drive. If your file has the wrong extension, you change it in Finder or on the command line, just as you would change it in Explorer or on the command line in Windows. As an added bonus, there is no executable file extension; it's a permission that gets set, and the file extension still takes precedence. That is, if you set notanimage.jpg to be executable, then try an open it in Finder, it'll open it in your image viewer, ignoring the execute bit entirely; only when you remove the extension does it actually attempt to execute.

      The way OSX does it is correct, IMO. And 4 years ago I never thought I'd be saying that.

      --
      APK quotes people (including myself) without context and should not be trusted. Just thought you should know.
    12. Re:Good operating systems Dont. by BronsCon · · Score: 2

      Didn't know about CMD-Delete or Shit-CMD-Delete, actually. Never needed to know, I've been deleting things from the CLI for much longer than I've been using a Mac. I also haven't tried deleting 10k+ files in Finder in the couple of months I've had a Retina MBP; my previous MBP had a SATA SSD that could max out the bus, though, and started bogging down around 10k and would crap out around 50k. That was a quad core with 16GB of RAM (where Apple would only support configurations up to 8GB, so I imagine the problem would be worse for users who limit themselves to what Apple sells).

      In fact... hell, let me put your claims to the test.

      --
      APK quotes people (including myself) without context and should not be trusted. Just thought you should know.
    13. Re:Good operating systems Dont. by St.Creed · · Score: 2

      True. I really long for the day we have that, and AnnaKournikova.jpg is actually an executable file because of some meta-information that's probably hidden by default.

      I wonder what could possibly go wrong there.

      --
      Therefore, by the (faulty) logic you're using, you're just a cow with a keyboard - osu-neko (2604)
    14. Re:Good operating systems Dont. by schnell · · Score: 4, Informative

      Honestly, I think the original Mac OS did it better with four character file type and creators; meta-properties that the file can have.

      This was a much superior solution in many ways. (If you're interested in a detailed exploration of why, read any of John Siracusa's in-depth OS X reviews on Ars Technica for his fierce and well developed defenses of the old method.)

      Unfortunately, the downfall of this method came in sharing files across platforms. For much of the 1990s, Mac users would send files via FTP or e-mail which - lacking file extensions - were difficult for PC users to deal with when they received them. For example, my Word doc titled "Briefing" worked fine on my Mac but when I e-mailed it to a colleague using Windows, he would get a file that his PC didn't know what to do with. He would have to ask me what type of file it was (.doc? .pdf? .ppt?), and manually append the correct extension, yadda yadda.

      Macs, as the minority in a nearly all-PC world (especially the business world) needed to create as few waves as possible and "get along" with the Windows standard. So, when designing OS X, Apple decided to deprecate file/creator types and go along with the inferior system that the rest of the desktop computing world was using.

      --
      "95% of all Slashdot .sig quotes are incorrect or completely fabricated." -Benjamin Franklin
  2. Yes, I agree by GargamelSpaceman · · Score: 5, Insightful

    The first thing I do on windows is change the settings to show tilename extensions. Much of the confusion I see in others can be directly traced to the fact that they don't know what their files are.

    Stop being afraid to make someone learn something useful to use a computer.

    That being said, don't make people learn useless things. Design a powerful set of useful things to learn each of which is valuable and worth learning and remembering and then reward people for learning them by maintaining their usefulness

    Making things overly simple robs users of the power to make things simple for themselves, and ends upt complicating their interaction with the computer.

    --
    ...
    1. Re:Yes, I agree by Anonymous Coward · · Score: 5, Insightful

      "The first thing I do on windows is change the settings to show filename extension"

      Hear hear! Hide the extensions is one of the stupidest things Microsoft has ever done and it is a huge disservice to the end user.

      The condescending My Docs, My Music, et al should also go.

    2. Re:Yes, I agree by QilessQi · · Score: 3, Insightful

      This. I've seeing users create directories where they save the same file in different formats for different purposes, and the only thing different is the extension. If you can't see the extension, it looks like you've got multiple files named "foo" where only the icons differ.

    3. Re:Yes, I agree by michrech · · Score: 2

      The condescending My Docs, My Music, et al should also go.

      WHY?! This actually teaches / encourages people to store their documents / pictures / music in *one spot*, which makes things much more simple to back up. Granted, not every user actually uses these folders for their intended purposes (I recall backing up a ~120GB "My Documents" folder becuase the user threw *all* files, picutres / music / videos / documents into it, with *no* sub-folders to sort everything, for example)...

      --
      bork bork bork!
    4. Re:Yes, I agree by gstoddart · · Score: 5, Insightful

      I just went through setting up a new Windows 8.1 machine.

      And the sheer quantity of places where Microsoft has more or less gone out of their way to hide basic stuff about your computer, and make it as difficult to find as possible -- well, that is kind of mind boggling (and very frustrating).

      And when they do make it available to you, they couch it in a "well, everything hereafter is your fault".

      Essentially, in my opinion, Microsoft has tried to dumb down the system so far that when you try to do anything it is almost useless, and if you need to see more information it just throws up its hands and says "fuck it, not my problem".

      So, maybe instead of trying to write a crappy, useless system for the users who will be scared to know they're looking at a text file or an exe ... Microsoft should try to write something which isn't crap, isn't still predicated on using that crap autorun to ensure every possible source of malware is ran without being prompted, and from the get go tells users "this is a computer, we're not hiding this from you".

      It boggles my mind even at work on a Windows server, when my account is an admin and I'm doing admin tasks how Microsoft goes out of their way to hide the actual functionality. And when they don't their "helpful" error messages are garbage ... like "something bad happened, contact your administrator". Tell you what, I'm the fucking administrator, why don't you tell me an actual error message instead of assuming I'm a child?

      It seems like the more Microsoft tries to dumb things down for their users, the worse they actually make their software. Because it actively tries to be sure you can't see what you know, and simply can't (or won't) tell you what happened when it should.

      Microsoft is way too focused on pointless eye candy (like the Metro interface on my desktop I had to remove), and dumbing down the user experience ... and seems to utterly fail to make it possible for someone who actually has some idea of what they're doing to find what they need.

      The more "helpful" they try to be, the less helpful and usable they actually are.

      --
      Lost at C:>. Found at C.
    5. Re:Yes, I agree by oodaloop · · Score: 3, Insightful

      It's a terrible name though. Typical conversation at work:

      Me: Hey, did you save that in My Places?
      Them: No, I logged you out. I saved it on my profile.
      Me: I know. Did you save it to your My Places, or somewhere else?
      Them: Oh yeah, I saved it on my desktop.

      --
      Tic-Tac-Toe, Global Thermonuclear War, and relationships all have the same winning move.
    6. Re:Yes, I agree by jdharm · · Score: 2

      My "goddam job" is to make sure the tools the users have been given to do their jobs are working correctly, not to do their jobs or their thinking for them.

    7. Re: Yes, I agree by gstoddart · · Score: 4, Insightful

      Hell hath no fury like a nerd set in his ways.

      There's set in my ways, and then there's confronted with a modern piece of shit that some marketing wanker thinks is helpful.

      And, I'm sorry to say it, but almost all of the crap I had to figure out how to remove was garbage, intended to give a tablet like interface, using a UI which is mostly about eye candy.

      It serves no purpose, and provides no value to me.

      It's crap. But it's pretty.

      My problem with Microsoft is they seem to have forgotten that many of us still actually use computers to do our fucking work.

      Metro was a steaming pile of crap which wasn't useful for that.

      The OS itself seems good. The user interface has been designed by morons.

      --
      Lost at C:>. Found at C.
    8. Re: Yes, I agree by jedidiah · · Score: 2

      Hell hath no fury like a nerd that has to clean up after boneheaded design decisions made by incompetent engineers with billions of dollars in resources who should really know better.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    9. Re:Yes, I agree by Anonymous Coward · · Score: 3, Insightful

      The condescending My Docs, My Music, et al should also go.

      WHY?! This actually teaches / encourages people to store their documents / pictures / music in *one spot*, which makes things much more simple to back up. Granted, not every user actually uses these folders for their intended purposes (I recall backing up a ~120GB "My Documents" folder becuase the user threw *all* files, picutres / music / videos / documents into it, with *no* sub-folders to sort everything, for example)...

      The reason to not use that structure is because it is a bad structure.
      First of all the "My" prefix is terrible. Yes, I know that they just want the user to feel at home, but in a work related environment "My" doesn't make sense. (And the categories are aimed at a home user anyway.)

      When it comes to the categories they are not laid out in a way home users or company users want to work with them.
      I have never encountered someone that wants to split up their vacation data into photographs and videos. Typically they want them grouped together.

      It's not clear if the music folder is for own composed music or purchased music. Typically you do not want to mix them and purchased music you generally want to share within the family anyway.

      The documents folder is badly named or another folder for projects is needed. If you write a report you want to keep supplementary data together with the document you are writing. This includes pictures.

      Sure, you can just make your own structure in the My Documents folder. Unfortunately a lot of programs thinks that that folder is their playground and stores user specific settings or data there.

      Microsoft has yet to come up with a good solution. The ones they have provided so far is extremely inadequate.

    10. Re:Yes, I agree by gstoddart · · Score: 2

      Why in Sam Hill would a user give a shit about hidden stuff?

      Because it has been demonstrated for a long time that it can be dangerous to hide stuff.

      So if I set something to be "malware.jpg.exe", Microsoft will present that as "malware.exe".

      The act of hiding this stuff to try to make it "user friendly" leads the users to make stupid decisions.

      Just like autorun, which says "I'm going to run any executable on any media which is connected to this machine".

      You don't know bullshit from wild honey about how to do their job.

      I don't give a flying fuck about how they do their job. But I don't want to spend hours undoing moronic marketing decisions so that I can do my job on my computer.

      --
      Lost at C:>. Found at C.
    11. Re:Yes, I agree by ledow · · Score: 2

      There speaks somebody who's not managed other systems, presumably.

      "My Documents" is stupid when it's not even a document-storing account. Local Administrators having My Documents is stupid. Plus, then, they aren't My Anything. They are Company Documents.

      That aside, I rename My Computer (or, nowadays, create a shortcut to the same) to This PC. It just makes more sense, whether you are at home or at work.

      On top of that, the My Document folder is full to the brim of "CompanyName" folders for every concievable software manufacturer on any PC you've used for more than a day. Most of "My Documents" isn't close to "My" at all - I'd rather they weren't in there whatsoever, because everything thinks it has the right to throw junk into My Documents under a folder all its own (because, at one point, My Saved Games, etc. didn't exist).

      On top of that, My Documents INCLUDES My Pictures. They're both types of documents. But, oh no, one defaults to one location and one to another. Stupid. Microsoft's fix is indexing and collation of all these places into one huge globular - but temporal - mess where you can have multiple copies of the same document/photo appear.

      On top of THAT, if you ever browse a newly-setup server and go to the User areas (I separate Profiles and Documents, but some people don't), you'll see a thousand "My Documents". Because it's a fake name applied by desktop.ini and the like to any document folder. Want to get into a particular user? You have to turn off buckets of options, type their username in manually, or show another column - the REAL name of the folder.

      So now we're breaking stuff out of Documents and putting it in Pictures - is that part of the user profile (and thus needs to be downloaded to every client they log onto), or is that a storage area that can be pushed off with Folder Redirection to a network share? Okay, what about My Data Sources? What about My Videos? What about My Saved Games? What about My Third-party Things That Some Program Created In The Profile Folder?

      Can you redirect them all? Not easily. And why is Downloads outside of My Documents? Surely that's a bulk-storage area that you don't need to download to every client every time you logon?

      It's a damn mess. Yet, in base AD, we have two options - Profile Path and Home Path (not even called My Documents!). Everything else is GPO and Folder Redirection.

      So now when you backup your home laptop, you have to get not only My Documents but My Pictures, My Videos, My DVD-Rips created by some freeware, etc. too. Or you have to backup the entire User folder, which is a massive waste and includes - amongst other things - your registry which isn't necessarily portable.

      To you it's "just a name". To a sysadmin it's a bunch of junk that's slowly getting out of hand and there's few sensible ways to organise it.

      And yet all the user cares about is "magical, mystical special settings I should never play with" (Profile!), and "all my stuff" (which they can arrange how they want into subfolders of their own choosing) (Home!).

      This PC, This Network, Profile and Home. Universal, not personal/business specific, not unbelievably twee and unnecessarily humanising, and been the basis of user accounts for decades.

      But no, "My CDBP Projects" or whatever the ones that keep reappearing in my profile/document folders (at random it seems!) whenever I run some bit of freeware are the way to go...

    12. Re: Yes, I agree by i.r.id10t · · Score: 3, Insightful

      No angst here about it - I make beer money every so often just by backing up a users actual data files they care about, browser profiles, mail client storage, wipe windows and reinstall, all updates, etc. and then put their data back. If you wanted to dedicate yourself to running a business with yourself and maybe a couple of part time PFY employees, you could make a very good living fixing these issues that are the result of what you consider poor design, and the stupid decisions users have made.

      --
      Don't blame me, I voted for Kodos
    13. Re:Yes, I agree by QilessQi · · Score: 2

      I have to disagree. The extensions are part of the unique filename; that much is well established across different operating systems. The only hack is using extensions to indicate the content type to the OS.

      Apple got this right ages ago, by using the resource fork as a place to keep file metadata. They had their own version of MIME types ages ago, whereby they encoded both the file type and the program that created the file in the resource fork. A user could rename a .jpg to a .doc and the OS would still know that it was really a JPEG. Well behaved Linux/UNIX systems do this with magic cookies, but those are really an awful hack.

      My opinion FWIW: every file format should start with a MIME header in UTF8, in which the content-type of the "rest" of the file after the header should be kept. The header could always begin with the sequence "Content-type:" to act as a magic cookie indicating the presence of a MIME-header.

      So here's a possible JPG file, where [CR][LF] is a carriage-return linefeed sequence:

              Content-type: image/jpeg [CR][LF]
              [CR][LF]
              {old-school binary JPEG data...}

      Existing programs should be able to be retrofitted pretty easily: if the input file starts with "Content-type:", skip to the end of the MIME header and do traditional processing from there. Otherwise, assume that it's an old-school file. This allows us to put all sorts of metadata in the file header:

              Content-type: image/jpeg
              Creator: Adobe Photoshop
              Created-on: 2015-03-02T11:23:34Z
              Content-disposition: inline; filename="IMG-1234.jpg"

              {old-school binary JPEG data...}

      One content envelope to rule them all. :-)

       

  3. Are you nuts? by Anne+Thwacks · · Score: 4, Funny

    The malware writers will never agree to i!

    --
    Sent from my ASR33 using ASCII
  4. Also, too many executables. by Anonymous Coward · · Score: 2, Insightful

    There's a whole slew of weird extensions now, that when clicked, do things.

  5. Better idea by BCGlorfindel · · Score: 3, Insightful

    Instead of insisting that modern OS design carry forward an old and archaic standard set of digits describing the type of file, show users visual information about the file type/associations in way that is meaningful to them. If it is an executable file, don't make users parse that .exe is short for that, and in many cases .com and .bat can kinda work the same way. Give users a visual identifier that lets them know clicking this file will lead to this action. A web icon for anything that'll attempt to open itself from a browser, a document icon for something that will open in a document viewer, and so on.

    Insisting on showing people a 3 character code that 99% of them are entirely ignorant of solves nothing.

  6. Dumbing Down of The OS by g0bshiTe · · Score: 2

    You really think this will happen with the current level of OS dumbing down?

    --
    I am Bennett Haselton! I am Bennett Haselton!
  7. Re:Missing the problem by a mile by Luthair · · Score: 3, Insightful

    This seems irrelevant. If you have a jpeg with a TXT extension, Windows at least will treat the file as a text file not an image.

  8. And why is hiding shit the default in Win server? by swb · · Score: 3, Interesting

    That always baffles me.

    I'm kind-of-sort-of willing to concede to the demands by that fuckstick hipster who works in marketing who thinks that aesthetically filename extensions make the product too technical for other fuckstick hipsters who are also wound up about appearances. I don't agree, but I'm tired of arguing about it, at least when it comes to the consumer desktop OS.

    But WHY IN THE FUCKING FUCK does the server operating system have the same goddamn "hide everything that might be confusing to marketing types and the mentally retarded" settings out of the box? What shithead, or group of shitheads, made that decision and WHY? As far as I'm concerned this is a deeper, more profound and transcendental stupidity than making Win Server use the Win8 start menu.

    I find it particularly ironic given the Microsoft push to capture mindshare from CLI propellerheads with PowerShell Everything.

  9. Re:File extensions? by Qzukk · · Score: 5, Insightful

    The filetype is now contained in the icon

    The icon of an executable is set by the executable. Enjoy your porn.jpg.exe with a thumbnail icon.

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
  10. Irrelevant Complaint by Luthair · · Score: 2

    Modern operating systems flag downloads and show warnings before executing. This seems more useful than a file extension which will commonly be truncated from view, even if the OS is set to display them.

  11. Good luck with that. by pla · · Score: 3, Informative

    it might be time to admit that users need to understand, embrace and responsibly use the only plain-text, obvious indicator of what a file actually is.

    Oh man, good one! You had me going until that line. Beautiful!

    I just responded in another thread where actual programmers argued about whether or not it counts as "confusing" to split a delimited string without actually using the name "split" for the method that does the work.

    And you want to try to get the average end user to understand the difference between ".XLS", ".XLSX", and ".XLSX.EXE"?

    May as well swing for the fences, I suppose.

  12. Stop talking down to the user by Karmashock · · Score: 3, Insightful

    The tendency to treat the user like a moron is common on all the widely adopted consumer operating systems and it really does need to stop.

    It just leaves otherwise intelligent people utterly baffled when simple things happen because they're kept in a fantasy land by their GUI.

    --
    I've decided to stop wasting my time responding to AC trolls/sockpuppets... so if you want a response from me... login.
  13. That's the problem by Anonymous Coward · · Score: 2, Funny

    This seems irrelevant. If you have a jpeg with a TXT extension, Windows at least will treat the file as a text file not an image.

    Exactly. That's idiotic. If I walked up to you and stuck a sticker with ".cat" onto your back, would you meow?

    What a file is, and the portion of the filename after the final dot, if any, should not have anything to do with one another. The assumption that any random file is what it says on the tin may have worked fine when computers were slow and security consisted of a big lock on the door to your office, but it has no place in 2015.

    1. Re:That's the problem by jedidiah · · Score: 2, Insightful

      No. A user should be able to trust the name of the file.

      If the file isn't really what it says it is, then that should be a BIG RED FLAG for the user shell. At that point the OS should know to treat the file as a threat.

      A deceptively named file should immediately go into quarantine.

      Instead, the user (assumed to be an idiot) is just left to fend for themselves.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    2. Re:That's the problem by BasilBrush · · Score: 2

      No. A user should be able to trust the name of the file.

      They can. The user is guaranteed that the name of the file is what the filename is. They can have 100% trust in that.

      You seem to be confusing that with file types. Your name is jedidiah (or at least your alias). But that's not your file type. I assume you're human. Yet we don't call you jedidiah.human.

  14. Re:Missing the problem by a mile by Anonymous Coward · · Score: 2, Insightful

    My favorite is the config files for .Net programs.

    When you create an "app.config" file, Visual Studio handily renames it to be [compiled output file name].config. So if you have program named "foo", and you compile it to make "foo.exe", your app.config file is going to be named "foo.exe.config". Now, hide the file extension and see the confusion erupt on all sides. "foo.exe" becomes "foo", and "foo.exe.config" becomes "foo.exe". So instructing someone to run that executable becomes an exercise in frustration as they repeatedly open the config file with Notepad.

    Hiding file extensions needs to die, at the minimum. I'd like to see VS adopt a better naming convention for app.config files, too. Like just calling them "app.config" or at least [project name].config.

  15. Re:Missing the problem by a mile by arth1 · · Score: 4, Informative

    On Windows, extensions are meaningful to the operating system. It doesn't identify all files by magic numbers. Files are typed by their extensions. If the file is "fishhead.jpeg" then it is not a Win32 executable binary (barring flaws in the JPEG rendering system that lead to arbitrary execution).

    You miss that it isn't like that in Windows either. A file named fishhead.jpeg can indeed be a a Win32 executable binary that gets executed by the OS as a binary if called without a named program to open it. That depends on what the end user and the programs he (spit) trusts have set the .jpeg extension to signify. It is only a recommendation. Windows provides defaults, but it is silly to presume that no program would ever be mean enough to change any of that on you.
    You cannot trust the extensions any more than you can trust the "From:" address in an e-mail. Not in Windows either.

  16. Re:Missing the problem by a mile by Chris+Mattern · · Score: 5, Informative

    Looking at the name extension will tell you absolutely nothing.

    Looking at the name extension will tell you what the system will attempt to do with it by default. This can be very important to know.

  17. Re:Missing the problem by a mile by wisnoskij · · Score: 2

    OK, and how is opening the jpg in notepad going to harm your computer?

    --
    Troll is not a replacement for I disagree.
  18. Missing the point by aepervius · · Score: 2

    This is not about how your own application react to a file. this is how the operating system *does*. There is a convention in the operating system, particularly windows, that a .gif will be tried to be displayed as a picture and a .html as a web page. Your application may *chose* to interpret it as music for all we care, but the operating system will react by default as described.

    This is why displaying and showing this is an executable is important. Although nowadays the windows operating system should warn you you are about to run an executable.

    --
    C. Sagan : A demon haunted world:
    http://www.amazon.com/gp/product/0345409469/
    visit randi.org
  19. Re:Yes, I agree, but no shortage of stupid GUI by gewalker · · Score: 4, Insightful

    No shortage of stupid user interface choices. Some of the ones I've hated the most.

    * Hiding menu options, aka personalized menus
    * Wholesale rearranging and renaming of user interfaces between versions, esp. for infrequently used options
    * Super secret hidden files.
    * Windows 8

  20. Extensions by The+MAZZTer · · Score: 2

    I think the idea, at least for Windows, is that extensions are a legacy thing, and are still supported because they are the basis for determining file type. BUT, the reasoning is likely that they can be hidden from the user and only show the user the actual file type. Which is fine in theory, except that now you are training the user to recognize file type solely by icon, making it trivial to give a dynamic-icon type (like EXE, or the old SCR which users are unlikely to recognize) the same icon as a text file and subvert the user's expectations and make them think the file is safe. If you are not in Details mode or not grouping by File Type it is IMPOSSIBLE to reliably determine the type of a file without the extension!

    Of course MS has added the whole Zone Identifier scheme and displays a nasty warning when trying to run dangerous files from the internet. I think this is a good measure to prevent this type of trickery, unfortunately people tend to click past such dialogs.

  21. Re:Missing the problem by a mile by david_thornley · · Score: 2

    Actually, it doesn't tell you what the system will attempt to do with it by default. It tells you what would happen on a normal system, without anybody playing with the file extension meanings. There's a difference there, and when we're talking about malware it's a very important distinction.

    --
    "When you have eliminated the unacceptable, whatever is left, however improbable, must be the truthiness" - Holmes
  22. Re:file magic - use the content to determine type by angryargus · · Score: 2

    It's hard to make extensible for newly installed products, and nowadays lots of file formats are a renamed zip file that contains other files.

  23. If I create the image... by spywhere · · Score: 3, Interesting

    When I did Windows XP images for clients, I always set the Default User profile to display extensions.
    I did this without asking, without any discussion beforehand, and only had to defend the decision once near the end of the design project... my defense was, "This is the right way to do it, so that's what we're doing." End of discussion.

  24. Re:And why is hiding shit the default in Win serve by QuietLagoon · · Score: 2

    ...I'm kind-of-sort-of willing to concede to the demands by that fuckstick hipster who works in marketing who thinks that aesthetically filename extensions make the product too technical for other fuckstick hipsters who are also wound up about appearances....

    Hiding filename extensions predates the hipsters by decades. Don't blame the hipsters for everything you don't like...

  25. When people aren't used to seeing extensions by Spacelem · · Score: 4, Interesting

    Whenever I see a Windows desktop with file extensions disabled, I always try to explain to the person that they should be switched back on, and most people are quite happy to do so (they only had them off because that was the default).

    However I was quite dismayed when I looked at my mother's laptop (which I had installed Linux Mint on for her), and she had no file extensions either. It turned out that she thought they looked untidy, and had gone through and manually removed the extensions from every single file in her home directory!

    Fortunately the file and mmv commands made short work of fixing this, but I was surprised to say the least.

  26. OS X? by pahles · · Score: 2

    What does this have to do with OS X? On Windows the extension determines how the file is treated/opened when double clicked. In OS X this is done differently.

    --
    Sig?
  27. Re:And why is hiding shit the default in Win serve by PPH · · Score: 4, Funny

    doing UUCP support with someone who has to have Unix characters (like bang and pipe)

    Odd. I found most receptionists understood what I meant by bang and pipe perfectly well.

    --
    Have gnu, will travel.
  28. Re:File extensions? by TheRaven64 · · Score: 2

    There are two problems. The first is that the OS allows you to run porn.jpg.exe having downloaded it from some random place on the 'net. I don't think that either OS X or Windows do: they'll both pop up a thing saying 'You are trying to run a program downloaded from the Internet, do you really want to?', which isn't normally something that happens when people try to open a file so ought to trigger them to avoid it (if it doesn't, then seeing the .exe extension probably won't either).

    The second is that the OS allows programs and other file types to set icons at all before their first run. This also leads to confused deputy-like attacks where you think you're opening a file with one program but are actually opening it with something that will interpret it as code. The solution to this is probably to have programs keep their generic program icon until after their first run. If you double click on something that has a generic program icon, then you probably intend to run it...

    --
    I am TheRaven on Soylent News
  29. Re:Duh? by mlts · · Score: 2

    Not sure how Macs have training wheels, but my antediluvian MacBook running Yosemite shows all file extensions in the Finder, and when I'm using a shell window, ls -l and ls -la work just as well as in AIX, Linux, BSD, Solaris, or any other UNIX or UNIX variant.

    I'm OS agnostic, and OS X has some annoying qualities [1], but being able to see file extensions isn't one.

    [1]: My biggest complaint about not OS X specifically, but Mac hardware is that Apple killed off the XServe, You -can- rackmount a Mac Pro with a RackMac kit, but it would be nice if Apple still kept a toehold in the enterprise.

    I don't mean to digress, but if Apple could make Macs that could connect to each other via Infiniband and read/write to each other's storage, it would be a platform that could run applications at SAN speed and reliability, but without the SAN, just local drive arrays. Doing this would ensure a niche in the enterprise. Apple even has a clustered filesystem, XSan, so in theory, if Apple did a bit of design, one could have a bunch of Macs with fault tolerance of failed drives and systems, similar to how the EMC Isilon arrays work.

  30. Even worse - extensions == "chmod +x" ?!? by ron_ivi · · Score: 2

    What seems even more stupid is that some OS's seem to think the last 4 characters of a filename convey some magical meanings -- like if it should be executable; or what application is should magically launch when clicked.

    1. Re:Even worse - extensions == "chmod +x" ?!? by jellomizer · · Score: 4, Insightful

      The extension vs file system property is a trade off case. If I see a .EXE file I expect it to be a binary file. if I see a file which a 755 mod to it. How would I know if it is a binary file vs. a script without looking into it. Renaming a .bat file to a .exe will prevent it from running. A file that is chmod 755 will try to run. So the file extension is actually a good way to know what type of file it is.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    2. Re:Even worse - extensions == "chmod +x" ?!? by AntiSol · · Score: 4, Informative

      How would I know if it is a binary file vs. a script without looking into it.

      type 'file /path/to/file'.

      e.g:

      user@host:~ $ file /bin/bash
      /bin/bash: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=bla, stripped

      or:

      user@host:~ $ file a_script.rb
      a_script.rb: a ruby1.9.1 script, ASCII text executable

    3. Re:Even worse - extensions == "chmod +x" ?!? by BasilBrush · · Score: 4, Insightful

      So the file extension is actually a good way to know what type of file it is.

      No, it's brain dead. The filename is a name. The filetype should be another piece of metadata. (and not just an executable flag either - a complete file type.)

      If the file type needs to be seen by the user, then that's a UI design issue, not a reason to have brain dead mixed purpose metadata fields.

  31. "Hiding Things" by Sir_Eptishous · · Score: 4, Insightful

    I hear the faint and cryptic laughter of Steve Jobs echoing in the distance...

    Hiding Things?
    Well of course, because modern UI design is all about obfuscating control over your device and interface.
    Microsoft and the rest(this includes Linux desktops) don't want a "cluttered" user experience. UI designers seem to forget that people to need to modify and control their device and interface.

    UI designers are too quick to "googlify" interfaces to such a degree that vast uncounted eons of time are wasted simply trying to modify simple things because UI designers have mandated a "spartan" and oh so Sprockets-like look and feel.
    Users are tricked into thinking they shouldn't see the nuts and bolts.
    Users are treated like idiots, and then become idiots.

    --
    We play the game with the bravery of being out of range
  32. Re:file magic - use the content to determine type by JohnFen · · Score: 2

    Because something system-level with access to run the file (presumably) has to apply regexp's to almost it's entire contents to correctly determine the type of it (e.g. is it a ZIP or is it a JAR with the same compression?).

    No, it would only have to examine the first few bytes.

  33. Why trust users to do it? by hawguy · · Score: 3, Insightful

    Why trust users to know what file extensions are "safe" and which are not? Surely the same computer that shows "ImportantFile.doc" to the user when it's really "ImportantFile.doc.exe" can be smart enough to pop up a message when someone clicks on it: "Hey, this filename *looks* like a document, but it's really an executable so instead of opening a document, I'm going to run it. It's probably a terrible idea to run it, so I'm not going to do it, you'll have to rename it to something less ambiguous if you really want to run it. But you should't do that. Really. I'm not kidding."

  34. Re: File extensions? by BronsCon · · Score: 2

    Huh, they run just fine on mine. Must be all the Wine.

    --
    APK quotes people (including myself) without context and should not be trusted. Just thought you should know.