Slashdot Mirror


Windows 7 Users Warned Over Filename Security Risk

nandemoari writes "Would-be Windows 7 users have been warned to change a default setting which could leave them vulnerable to attack via bogus files. As a result, Microsoft is taking flak for failing to correct a problem found in previous editions of Windows. The issue involves the way Windows Explorer displays filenames. In all editions of Windows after Windows 98, the default setting hides the filename extension (which identifies what type of file it is). This means that a Word file titled 'partyinvite.doc' will show up in Windows Explorer as simply 'partyinvite'. The only exception to this rule is if Windows does not recognize the file type. The reason for this setting is that it makes for a less cluttered look and avoids filling the screen with redundant detail. However, a flaw in the way it works leaves it liable to exploitation by hackers. They can take an executable file (which can do much more damage to a computer when opened) and disguise it by calling it 'partyinvite.doc.exe.'"

74 of 613 comments (clear)

  1. How can this be? by Burkin · · Score: 5, Funny

    How can this possibly be? I thought this was the most secure OS on the planet.

    1. Re:How can this be? by Kadagan+AU · · Score: 5, Insightful

      I see your sarcasm, but honestly this isn't as much of a security flaw in the OS as it is a "feature" in the OS that makes stupid users even stupider. A maliciously named file does nothing on its own, only when a user double-clicks it does it turn bad. Stupid users will break things on any OS.

      --
      This space for rent, inquire within.
    2. Re:How can this be? by Foofoobar · · Score: 2, Insightful

      but honestly this isn't as much of a security flaw in the OS as it is a "feature" in the OS that makes stupid users even stupider.

      Wow. What an amazing feature. Looks like the development team at Microsoft has been hard at work on the new OS as per usual.

      --
      This is my sig. There are many like it but this one is mine.
    3. Re:How can this be? by pugugly · · Score: 4, Informative

      This is something I have instantly turned off in every version of Windows so far. Thank god for nLite - you can create your install disk with all this bs turned off to start with!

      --
      An Invisible Entity of Vast Power whose existence must be taken on faith alone: Liberal Media
    4. Re:How can this be? by David+Gerard · · Score: 5, Funny

      Bah. Vista is far superior. Windows 7 is for Mac-wannabes who want to "do" things with their computer, not just admire its AWESOME MIGHT as your CPU fan starts lifting your house into the air.

      --
      http://rocknerd.co.uk
    5. Re:How can this be? by cayenne8 · · Score: 4, Interesting
      I do the same thing.

      For the life of me, I've never understood why they turn off the extensions by default, and not only that,why do they keep burying the windows explorer further and further away? Don't people use that to find files? Start applications?

      Does no one still get into the tree structure to create their own folders to organize things?

      Or...do most people just put everything in My Documents?

      --
      Light travels faster than sound. This is why some people appear bright until you hear them speak.........
    6. Re:How can this be? by snowraver1 · · Score: 4, Insightful

      Does no one still get into the tree structure to create their own folders to organize things?

      Or...do most people just put everything in My Documents?


      You forgot option 3: Whereever the default save path is.or option 4: I save my important files in (recycle bin|temp folder|ram drive)

      --
      Copyright 2010. All rights reserved. This comment may not be copied in any way including, but not limited to caching.
    7. Re:How can this be? by Qzukk · · Score: 3, Funny

      How can this be?

      It is the Kwisatz Haderach?

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
    8. Re:How can this be? by dave562 · · Score: 4, Interesting

      Windows Explorer is always in the same place no matter what version of Windows you are using. WindowsKey+E.

      Standard best practice is to put everything in My Documents. My Documents can be redirected to a network file share. The network file share can be backed up. As long as data is stored in My Documents, it is safe. That approach presents a problem when users want to store gigs of music or photos in there, but for a typical work place environment, it works great. It sure beats the old method of having to manually adjust file storage locations for each individual program.

    9. Re:How can this be? by RabidOverYou · · Score: 2, Insightful

      > For the life of me, I've never understood why they turn off the extensions by default

      The 'feature' was born, oh so many years ago, because some Windows Program Manager had Macintosh Envy. The Mac allowed you to have "Letter to Grandma", not "Letter to Grandma.doc". What this dork PM failed to recognize is that extensions, a very simple concept, is really quite useful, and easy to use. C'mon MS, turn them back on (by default) in Win7.

    10. Re:How can this be? by commodore64_love · · Score: 5, Funny

      VISTA is a monument to everything that makes us the country we are!

      Fat, slow, and obsessed with superficialities like pretty shiny colors?

      --
      "I disapprove of what you say, but I will defend to the death your right to say it." - historian Evelyn Beatrice Hall
    11. Re:How can this be? by supernova_hq · · Score: 2, Insightful

      WHAT command prompt?

    12. Re:How can this be? by rgo · · Score: 2, Informative

      bash.exe

    13. Re:How can this be? by hellwig · · Score: 2, Insightful

      Where do you work? I have worked at a few major companies (former/current DJIA companies) and IT won't do anything they don't want to, and manager buy in doesn't mean squat cause they don't work for your manager. However, at those same companies, most of them provide a private users area to store files, and then the groups themselves have public shared folders, both on the network.

      --
      Eggs
      Milk
      Bread
      Cat Litter
      Soda
      ...
    14. Re:How can this be? by Vexorian · · Score: 4, Insightful

      It isn't exactly a 'feature' it is a design flaw. Specially because of the whole "double clicking something runs strange program" deal.

      By the way, the security problem is not that much with hiding the extensions (though it is certainly VERY annoying) The real issue comes with the fact that executable files can be anywhere and all that is needed to [a) display an icon determined by the executable and b) being executable by double click] is to just change the extension to .exe , that's rather bad for security.

      A similar misguidance was present in Linux, at least gnome and KDE desktops' support of the .desktop extension, if Linux had more users you can be sure that thing was going to have social engineered the heck of all people into installing rootkits in their systems. That's right, just like windows' .exe non-sense, just the .desktop file extension allowed you to have an icon that [ a)Had a bogus extension/name. b) Had a custom icon, in fact it was easier to use the system's icon for folder or doc file. and c) launched a script with double click. ] I personally was happily surprised to see that after my Jaunty Jackalope update, these .desktop monstrousities finally need an executable permission to work.

      For people noticing how lame these things are in both windows and Linux, I am tagging the story as "suddenoutbreakofcommonsense".

      --

      Copyright infringement is "piracy" in the same way DRM is "consumer rape"
    15. Re:How can this be? by dave562 · · Score: 2, Insightful

      My understanding of how Time Machine works is akin to the Volume Shadow Copy service in Windows. Basically certain volumes will retain a pre-determined number of snap-shot backups of any particular file. If the user then accidentally erases a file or saves over it, they can revert to one of the previous copies. It isn't exactly the same functionality of being able to save anywhere in user space, but it is close. There are also third party backup utilities that will backup the entire workstation, or any subset of directories and/or files. To me those seem like a band-aid for bad administration, rather than a solution that you want to rely on. Why take a remote copy of a workstation if you can just put the files on the server, or SAN in the first place?

    16. Re:How can this be? by DavidD_CA · · Score: 2, Informative

      I'll assume that you're being sarcastic, but just in case you're not...

      No, normal users do not use Windows Explorer to open documents they're normally working on. They tend to go to the application that created the file (like Word or Access) and quickly get to it from that app's Recently Used Documents. And if it's not there, they use that app's File | Open, which only shows filetyes registered to that program.

      It's more effecient than the way you're suggesting.

      The only time Windows Explorer is commonly used (by normal users) is when they need to manage a bunch of files of different types, or move/copy/delete stuff around. And most users don't even touch that stuff.

      As for folder structure, most users are doing that from within the application too, not Windows Explorer.

      As for starting applications, no one does that but your most hard-core geeks. That's what the Start Menu is for.

      I used to turn on the file extensions when I got a new install, but after a while I stopped doing it. After all, there is a whole column called "Type" which proudly shows you the filetype should you be curious. And, you can sort by that column (and in Vista, you can filter, too).

      Let's face it, most people don't need to see the extension. They don't even need to know what kind of file it is. They double-click and Windows opens the right app.

      --
      -David
    17. Re:How can this be? by shutdown+-p+now · · Score: 2, Insightful

      Or...do most people just put everything in My Documents?

      No. Most people just put everything on the desktop. And some actually put everything into Recycle Bin (yes, I've seen this IRL).

  2. umask 224 by ArsonSmith · · Score: 5, Funny

    it shouldn't be made executable by the default umask though, so when you go to click on it it'll just try to associate an application with the .exe extension.

    --
    Paying taxes to buy civilization is like paying a hooker to buy love.
    1. Re:umask 224 by tilandal · · Score: 2, Insightful

      Less clutter? How about showing file information in a list by default instead of as 1000 little icons without any useful information? Really, who in the world though that was a good way to display file information?

    2. Re:umask 224 by Christophotron · · Score: 2, Interesting

      detail view is the easiest for me to navigate. I have never understood why people with 20/20 vision would use Icon view for anything other than images, or even consider using list view. when i am looking for the file I want, I either know its Name, its Size, its Type, or its Date Modified. I click one of those buttons at the top to sort by that criterion and the file I want emerges before my eyes. There is one way to scan the files -- vertically.

      With icon view, you have the useless icons taking up space and obscuring the file name, and you have to scan the files both horizontally and vertically to find a file. Unless I am looking at image thumbnails, I can't ever stand using icon view for longer than 5 seconds. I can only assume that icon view is useful to people with crappy vision and as the common denominator for people who didn't know you could change the view in to begin with.

      The first thing I do on every Windows system I use is to enable file extensions, view all hidden and system files, and force detail view for all folders.

      [vista rant]
      Since Vista came out, MS has added an incomprehensible folder categorization feature, so anytime you open a folder it is completely random what view you will get and what properties will be displayed. I think the intent was to "guess" that you want thumbnail view and look at metadata like "tags" or "artist" because a folder contained some images, for example. It never works and is f***ing retarded. You can set a default view for all folders "of this type", whatever that means, but not for truly "all folders". For that you need to edit the registry. So long story short, my standard Windows UI modifications now include a registry edit to get my plain detail view back. I wonder if this is still necessary in Win7.
      [/vista rant]

  3. Bah by MyLongNickName · · Score: 5, Funny

    This is a non-issue. With all of the vulnerabilities in applications that think they are a programming interface (like Acrobat), EXE's might actually be safer to open.

    --
    See my journal for slashdot ID's by year. Mine created in 2005. http://slashdot.org/journal/289875/slashdot-ids-by-year
  4. I never did like that feature by EvilBudMan · · Score: 3, Insightful

    or any of the others that make you jump through hoops to get at something.

    1. Partial menus (Office)
    2. The Search Dog (Windows XP)
    3. I don't what else but the way they have features turned off and on makes no sense at all.

    The I'm done sig.

    1. Re:I never did like that feature by TheBig1 · · Score: 4, Funny

      I don't what else ... makes no sense at all.

      Ahh.... Irony at its best... ;-)

    2. Re:I never did like that feature by colourmyeyes · · Score: 2, Insightful

      The Search Dog was one thing that whenever I installed XP and had to sit through it before being able to turn it off had me asking myself "and this is 'enterprise' software?" Why have a cartoon built into your operating system?

      --
      My grandmother used anecdotal evidence all the time, and she lived to be 120 years old.
  5. Not really news, and a non-issue by lukas84 · · Score: 4, Insightful

    Most people wouldn't change their behaviour even if the did see the file extension.

    Email programs such as Outlook block .exe attachments, and Executables downloaded using IE display a stern warning before execution.

    Changing this wouldn't have helped anyone.

    And associating this with Windows 7 is mostly FUD, jumping on the bandwagon just because you don't like it.

    1. Re:Not really news, and a non-issue by lukas84 · · Score: 2, Insightful

      The metadata-thing is what Apple did and it has the same security issues - there's no way to tell from the icon or filename if something is an application or a document.

      Think of the file-extension as filename embedded meta-data, and it starts to make more sense.

    2. Re:Not really news, and a non-issue by clone53421 · · Score: 2, Insightful

      Because an extension is far easier to change when I actually want to change it than the meta-data would be.

      There are already the "Open with" and "Send to" options if you want a choice of applications to open the file with.

      --
      Alexander Peter Kristopeit bought his basement from his mommy for one dollar.
    3. Re:Not really news, and a non-issue by lukas84 · · Score: 3, Informative

      You mean it's just like in Windows?

  6. Um by Man+On+Pink+Corner · · Score: 4, Insightful

    Welcome to Windows 95?!

    Filename extensions have been hidden by default for many years now, in all shipping versions of Windows. And they've been making it easy for malware authors to fool users for just as long.

    It was an insanely stupid policy on MS's part, and it borders on negligence that they're still doing it.

  7. Re:Extensions by lukas84 · · Score: 5, Insightful

    You can easily add the Word icon to your malware, and this will fool users easily.

  8. Not new, not unique to Windows by nine-times · · Score: 4, Informative

    OSX hides extensions, too, and what's arguably worse, OSX allows you to arbitrarily replace the icon of any file, thereby allowing you to disguise files more easily. Don't some Linux DEs do the same thing?

    It's sort of unfortunate that we rely on filename extensions to identify file type at all. Users have a tendency to accidentally remove extensions when they're renaming if you don't hide them. But then if you hide them, then users are missing the single most important cue as to what file-type a file is.

    1. Re:Not new, not unique to Windows by clone53421 · · Score: 2, Interesting

      True. Ideally, the extension would be visible, but would not be changed unless the user deliberately intended to.

      For instance: When renaming, the extension would not be highlighted by default. Deliberate selection with the mouse would permit the extension to be highlighted. Ctrl-A would initially highlight only the filename; to select both filename and extension, you would need to press Ctrl-A twice.

      --
      Alexander Peter Kristopeit bought his basement from his mommy for one dollar.
    2. Re:Not new, not unique to Windows by StikyPad · · Score: 3, Informative

      Vista (and 7) decrease the likelihood of accidental file extension deletion by highlighting only the filename (sans extension) when renaming files through explorer. Personally, I'm usually renaming the extension, or adding ".old".

  9. Re:Extensions by Anonymous Coward · · Score: 2, Insightful

    Only if the creator is stupid. All it takes is to get an icon from a doc and use that icon as the default icon resource within the exe file, and voilà - not only it seems to be named .doc, it looks like a word file, too.

    The only correct solution is stop trying to hide information from users: showing extensions should be the only acceptable alternative. Hiding them could make sense before, but since Vista even the UI is correct: you click on a filename to edit it and only the non-extension part is selected by default.

  10. i seen js javascript the same way by FudRucker · · Score: 2, Interesting

    many years ago when i was using win98 i would always set folder options to NOT hide file extensions and it still hides that second extension, i had what looked like an ordinary bitmap file file_name.bmp but i clicked on it to open it and bam! its true colors show up and it disappears completely even with show all files enabled (file_name.bmp.js) shows for a second and its gone, so i fdisk windows off and reinstall since anti-virus did not find anything and that looked too fishy to be innocent, that taught me no not click on a file to open it, always open a graphics editor/viewer and use file > open to open them then if something is wrong the graphics app will complain if something is wrong with the file.

    --
    Politics is Treachery, Religion is Brainwashing
  11. Re:Isn't this a dupe? by tepples · · Score: 3, Interesting

    Now, I'll go make a quick patch and submit the .diff

    I wonder if ReactOS, the project to make a free Windows XP clone, might take it.

  12. Re:This has been around for a long time. by lukas84 · · Score: 2, Informative

    UAC doesn't really come that much into play here. It's still possible to capture all your credit card data without elevating to admin.

    That said, Explorer blocks execution of files downloaded from the Internet, and Outlook blocks executable attachments completely.

  13. Extensions? No extensions? by clone53421 · · Score: 2, Insightful

    Do we really think that it's going to make a difference to Joe Schmoe? If it has a Word document icon, our hapless friend is going to be duped regardless of whether it ends in ".doc" or ".doc.exe".

    May I remind you that, with file extensions hidden by default, ONE SHOULD NEVER SEE A FILE ENTITLED "partyinvite.doc", because that extension should be hidden. The fact that it isn't hidden is already a glaring red flag — which Joe Schmoe is obviously oblivious to.

    I turn extensions on by default, but I really don't think that would help Mr. Clueless. Somebody needs to sit him down and explain to him what's going on, and nothing is going to save him from the trouble of paying the proper attention to the files he opens.

    --
    Alexander Peter Kristopeit bought his basement from his mommy for one dollar.
    1. Re:Extensions? No extensions? by taustin · · Score: 3, Insightful

      ONE SHOULD NEVER SEE A FILE ENTITLED "partyinvite.doc",

      That is true. However, an .exe can have it's own icon embedded in the file, so one could name it partyinvite.exe and give it the icon from a Word doc, and Joe Schmoe would have no clue. In fact, a lot of people would miss that.

  14. Re:This has been around for a long time. by Darkness404 · · Score: 2, Informative

    Here's the thing: UAC is one layer of defense against this (even though UAC is never called a protective layer, it seems). If there is no verified publisher, UAC will say that the publisher is unknown and thus, in theory, it should trigger a red flag with people. That's how all of my computer illiterate friends approach it, and they've never had problems.

    Heck, just about all legitimate programs I download from a non-major publisher says that the publisher is unknown. About the only programs that I have installed with a "known" publisher are Firefox, and iTunes. The rest still say unknown publisher.

    --
    Taxation is legalized theft, no more, no less.
  15. kill the filename.extension paradigm by line-bundle · · Score: 5, Insightful

    The filename should not contain any metadata. The date is not included in the filename, so why is the filetype in there?

    1. Re:kill the filename.extension paradigm by thomasdn · · Score: 4, Informative

      The filename should not contain any metadata. The date is not included in the filename, so why is the filetype in there?

      No metadata in the filename? But isn't the filename metadata in itself? By giving the file a name -- a description of the content -- I provide some metadata that lets me know what the file contains. I don't think it is all that stupid to have a convention for file naming.

    2. Re:kill the filename.extension paradigm by BikeHelmet · · Score: 2, Insightful

      Perhaps for speed?

      I'd like to see files without an extension auto-resolved to whatever they were - but I do find extensions handy.

      On Windows I can open a folder with say... 200 ~350MB files, and they show up instantly - but on Linux (with its wonderful libmagic), it takes dozens of seconds.

      I feel it should go like this:

      1) No extension -> Resolve extension
      2) Extension -> Check if file compatible with programs registered to handle that file type

      Extensions are handy for searching, too. The more specific you can get, the easier it is to find something - and .jpg is very specific, as opposed to just searching all images or heck, all files.

    3. Re:kill the filename.extension paradigm by m50d · · Score: 2, Informative

      Oh fuck off. There have been filesystems which tried that, you know, and there's a reason that they failed; to someone who tries to actually use the damn things rather than sitting around theorising, the filename is the *only* appropriate place for metadata.

      --
      I am trolling
  16. if less clutter was the design goal by yanyan · · Score: 2, Interesting

    If less clutter was the design goal, MS could have started somewhere else. Like the explorer toolbar (just leave the up, back, and forward buttons thank you), the "Go" button beside the address bar, the big explorer sidebar with the many superfluous items, the cluttered search side bar, the pointless icon view, i could go on. They could probably even drop the whole Start menu paradigm and move to right-click on desktop to display the start menu contents, leaving the whole taskbar for application tabs.

  17. How to rename files by tepples · · Score: 3, Interesting

    Users have a tendency to accidentally remove extensions when they're renaming if you don't hide them.

    That's why a good file manager, like the version of Nautilus that comes with Ubuntu Hardy, selects everything before the extension when the user chooses "Rename".

    1. Re:How to rename files by jonbryce · · Score: 4, Informative

      The Vista file manager does that too.

  18. Similar with OS X by Charles+Dodgeson · · Score: 3, Informative

    As an Apple fan-boy, I am chagrined to have to point out that there is an analogue of this problem on OS X. Meta information about a file will contain information about its "Creator" (which is often used to determine what application it should be opened with) and also the file Icon.

    This allows for a file to have, say a plain text icon but open as something else altogether. Apple has taken some mitigating steps (warnings before executing downloaded files for the first time), but has not changed the underlying problem which stems from concealing information from the user.

    --
    Prime numbers are exactly what Alan Greenspan says they are -S. Minsky
  19. Re:This again? by twidarkling · · Score: 3, Insightful

    Plus both have lower total cost of ownership.

    [citation needed]
    Seriously. It's not like I paid for my A/V software. It's not like I run scans when I'm using the system, so my work isn't being slowed.

    Then, vs. just OSX, the hardware's cheaper, you can upgrade it and futureproof it, so you don't need to buy an entirely new $1.5k machine, and software's same price or cheaper, with more options. And as for security, may I point you to the Mac-only botnet that was recently discovered due to pirated copies of iLife, or iWork, or whatever it was? Stupid people will fuck up any system you give them, regardless of OS. Windows is not inherently superior or inferior, it's just the one that does what I need.

    --
    Canada: The US's more awesome sibling.
  20. Re:Isn't this a dupe? by Hatta · · Score: 5, Insightful

    You want a solution? How about this: Windows should only hide file extensions for files that don't use custom icons

    How about we never hide the extension for any reason? If you're worried about clutter, and redundant information on screen, ditch the icons. The extension is all of 3 bytes, and it's far, far easier to read 3 letters than it is to squint at the icon and guess what it's supposed to be.

    --
    Give me Classic Slashdot or give me death!
  21. Re:Um, Win7 is not yet a release by David+Gerard · · Score: 3, Insightful

    Then this is the time to make a big fuss about it: so that it will be fixed for Win7.

    --
    http://rocknerd.co.uk
  22. How can this be? sufixication by goombah99 · · Score: 4, Interesting

    How can this possibly be?

    Your question actually has a face value in excess of it's sarcasm content. How did we get here?

    I'm stating common knowledge but it's worth reflection since it paints a large picture. In the begining there was the file and the file was just a marked off stretch of physically contiguous bytes on a tape or drum. it had no internal structure. Have a directory that associated names with files regions was something you had to implement yourself. The filesystems formalized this to having names, hierarchies, and even non-contiguous allocation tables for blocks.

    Since that time every new file system has tried to codify the notion of metadata. And in this land of babble, the only common durable hiding place for meta data has turned out to be the filename itself.

    Look at HFS for example as a valiant effort in defining meta data like "kind" and "creator", and defining different kinds of forks some of which had uniform storage protocols for resource, so that programs other than the creator could inspect and edit them. And boy what a snarl that has perpertually been. While these still exist, apple has punted and gone to just using file structures and a specially named file (plists) to hold meta data in a quasi XML format.

    And so here we are 30 years later and were still putting suffixes on our files just like back in the days of DEC and Prime and even before.

    And think about perhaps the biggest failure of the Longhorn Debacle. The promise of a revolutionary new filesystem that put meta data and it's inspection first. An entirely relational storage system underneath that only mimmiced the hierachical system for legacy purposes.

    Deleted from Longhorn, promised again for vista, and then gone. Promised for windows 7 then gone.

    It's bizzare. Everyone knows what the problem is. HFS was much maligned precisely because it was more complex than suffixes but it's what we really needed back in 1984. and all the others all made so much sense too.

    Why are suffixes so enduring? How can this be?

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:How can this be? sufixication by colourmyeyes · · Score: 3, Insightful

      Why are suffixes so enduring?

      Because the human using the computer wants a quick way to determine what the file most likely contains.

      --
      My grandmother used anecdotal evidence all the time, and she lived to be 120 years old.
    2. Re:How can this be? sufixication by mrbene · · Score: 2, Funny

      Why are suffixes so enduring? How can this be?

      Because they always end up being the default. Because they have the final say / last word. Because they are enduring.

      OK, prolly could come up with more, but I don't think it's really worth it.

    3. Re:How can this be? sufixication by goombah99 · · Score: 2, Interesting

      Well yes. But how hard would it be to have a colum in the either the gui or the command line file list that provided that info right beside the file name. indeed that's what OS9 and all it's predecessors did. Even posix will show you the privledge masks in the listings. And if you wanted a more compact "ls" format then have one called "lse" that faked the file extensions back on to the names from the creator meta data.

      it's not hard or even incompatible with how the user views the files right now. It's just not done because there's no standard implementation of how to store that metadata that is common to file systems, api's or programs.

      --
      Some drink at the fountain of knowledge. Others just gargle.
    4. Re:How can this be? sufixication by D+Ninja · · Score: 2, Insightful

      And, I don't remember it ever being promised for Windows 7. In fact, Microsoft didn't really promise a whole lot for 7 (presumably) after learning their lesson from Vista.

    5. Re:How can this be? sufixication by clone53421 · · Score: 2, Insightful

      And changing it. You have any idea how many files are plain text, if you actually want to look at them?

      Let's see... txt bat cmd htm(l) hta js vbs url scf php asp ...well, you get the picture.

      --
      Alexander Peter Kristopeit bought his basement from his mommy for one dollar.
    6. Re:How can this be? sufixication by coolsnowmen · · Score: 3, Interesting

      my "file" command seems to do a pretty good job. So there are some standards even if they are just because of common practices of using a so-called "magic number" in the file data itself.

    7. Re:How can this be? sufixication by colourmyeyes · · Score: 2, Insightful

      You're right about implementation with respect to my "human-readable" comment - in practice it wouldn't be much different if there were a standard and ls could tell me the file type as well (kind of an integration of file and ls... which wouldn't be hard to hack together just to see what it would look like, but I digress).

      But I still think there are situations in which there is no way to get that info - e.g. a list of links on a page, each to a file of a different type. If it says http://example.com/file.doc, you know what to expect. Metadata sufficient to render file extensions obsolete would leave us with http://example.com/file, with no way to tell what it contains.

      There may be a quick fix to this situation that I'm overlooking, but my point remains - there are some times when it's just good to know from the filename what you'll be dealing with.

      --
      My grandmother used anecdotal evidence all the time, and she lived to be 120 years old.
    8. Re:How can this be? sufixication by andi75 · · Score: 5, Informative

      > Metadata sufficient to render file extensions obsolete would leave us with http://example.com/file, with no way to tell what it contains.

      That's where MIME types come in to save you. While it is true that from the URL you can't tell the contents, the moment you do a "GET /file" the server will tell you the mime type (e.g. application/msword), and you can save that information in the file's meta data on your local filesystem (e.g. save it as file.doc).

    9. Re:How can this be? sufixication by vux984 · · Score: 2, Insightful

      Well yes. But how hard would it be to have a colum in the either the gui or the command line file list that provided that info right beside the file name. indeed that's what OS9 and all it's predecessors did.

      That's great if you only look at files in detail view. In the file explorer.

      Sorry, but in the real world, files are all over the place. I've got a bunch of them sitting as icons on my desktop. There's another one as an attachment to an email I've got up on the screen. And links to download a few more on the website I was just at. Then I open up photoshop and decide to open a recent file via the "Open Recent" menu item... something.pdf, somethingelse.psd, anotherfile.eps...

      By embedding the type into the name, its ALWAYS there.

    10. Re:How can this be? sufixication by TrixX · · Score: 2, Insightful

      To solve this security issue (malicious execution), you don't need separate forks, complex metadata, or anything like that. You just need a single bit of metadata, telling you if the file is executable or not. In other words (Henry Spencer's, not mine): Those who do not understand UNIX, are comdemned to reinvent it, poorly. With that metadata, the worst that somebody can do is name a file foo.txt.jpg to trick you into opening an image making you think it's a text file, but nothing that makes a security risk.

    11. Re:How can this be? sufixication by Phroggy · · Score: 4, Informative

      By reading the MIME type stored in filesystem metadata! In this example, when you save a document in Microsoft Word and name it "file", instead of appending a ".doc" extension to the filename, Word would leave the filename alone and add a MIME type. The OS's file browser would use this MIME type to determine which application to open the file in when double-clicked (instead of using extensions the way it does now), and a web server would read the MIME type and send that to the browser, instead of looking up a file extension in a table the way it does now.

      For backwards compatibility, users could choose to append an extension to the filename, but this would be completely ignored by newer operating systems. If you chose to name your Word document "file.jpg", you could, and your OS wouldn't care, but since this would cause significant confusion when sending it to users of legacy systems, you wouldn't do that.

      The Macintosh filesystem (MFS/HFS/HFS+) used 32-bit "type" and "creator" codes, normally rendered as a 4-character string. This was a good idea in 1984, but not nearly as specific as MIME types (on classic Mac OS, HTML and XHTML and CSS and JavaScript files would all have their "type" field set to "TEXT"). MIME types are definitely the way to go, if you want to construct something like this today.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  23. BULLSHIT FUD by sexconker · · Score: 3, Informative

    Run virus.exe in XP (SP2), Vista, or (I presume) 7.

    What's that box? A security warning about unsigned code?

    Rename the file to virus.txt.exe and try again.
    What's that box? A security warning about unsigned code?

    Fuck off insecurity experts.

    1. Re:BULLSHIT FUD by merreborn · · Score: 3, Insightful

      Run virus.exe in XP (SP2), Vista, or (I presume) 7.

      What's that box? A security warning about unsigned code?

      Rename the file to virus.txt.exe and try again.
      What's that box? A security warning about unsigned code?

      Fuck off insecurity experts.

      Too bad users don't read dialog boxes

  24. Re:Ah, he(.conf) started(.d) (in)it... by nine-times · · Score: 3, Insightful

    It doesn't seem to me that line-bundle was particularly blaming Bill Gates, Windows, or Microsoft. Using extensions in filename as the identifier of file-type is a common and long-standing practice, but it's also problematic.

  25. The MacOS X approach by Midnight+Thunder · · Score: 4, Informative

    Upon reading this, I wondered whether MacOS X suffered the same issue, so I decided to test. I disabled the showing of all extensions (Finder preferences), duplicated Text Edit, so it appeared as "TextEdit 2" and then edited the visible name to "TextEdit 2.doc". The result was displaying itself as "TextEdit 2.doc.app". For other file types, such as a PDF doing the same thing results in being asked if you are sure you want to change the filename extension, though renaming from the Terminal a PDF from "toto.pdf" to "toto.doc.pdf" resulted in the same visual behaviour as the one observed for the application. Its an interesting solution to the problem, since basically if the file has multiple extensions they are all shown.

    The issue described in the post has already caused me issues in the past on Windows XP, on a developer's machine, where extensions were not shown by default. Imagine an Apache conf folder that contains:
        http.conf
        http.conf.bak
    The first one appears as 'http' and the second one as 'httpd.conf'. I didn't hit me straight away that the wrong file was being edited.

    Does anyone know how Linux handles this in the various GUI file managers?

    --
    Jumpstart the tartan drive.
  26. semi ot: handy shortcut by NotQuiteReal · · Score: 2, Funny

    why do they keep burying the windows explorer

    You can always hit "Windows Key + E" to get Windows Explorer. Ironically, for reasons that are simply a quirk in my brain, I mentally say "Apple+E" every time I hit those keys...

    --
    This issue is a bit more complicated than you think.
  27. Re:The reason for this setting is... by VGPowerlord · · Score: 2, Interesting

    ..to allow the typical Windows users to easily rename a file without having him or her remember the particular extension of the file.

    Think of a noob trying to change the name of a file: "Image1.jpg" would become "Picture of my Dog Fluffy".

    Of course after changing the name and eliminating the file extension, the file would no longer work with the user's favorite program, and chaos would ensue. MS merely nipped that problem before it started (and created another problem in the process!)

    Vista fixed this. Now, when you rename a file, it highlights everything except the extension, so when you start typing, the extension isn't overwritten.

    So, this is no longer a valid excuse for extensions being hidden by default.

    --
    GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
  28. LOL Redundant info by Datamonstar · · Score: 2, Funny

    How is knowing what kind of file is going into your computer redundant?

    What kind of gas is that you're putting in your car? 92? 87? LEADED? It's redundant!

    What kind of batteries are you putting into that device? 9 volt? AA? It's redundant!

    There's no way a user would actually want to know want they're clicking on, right Microsoft?

    --
    The eternal struggle of good vs. evil begins within one's self.
  29. Reminds me of... by Temujin_12 · · Score: 2, Informative

    ...another Windows bug I ran into the other day with how the IE engine deals with URLs.

    Given the following URL (with the server properly responding with mime-type of octet-stream and an otherwise proper response):
    http://www.somedomain.com/url/path/to/file.exe?query=string
     
    ... IE decides that since it doesn't know what a ".exe?query=string" extension is, so it strips the "extension off" and tries to connect to:
    http://www.somedomain.com/url/path/to/file
     
    ... which (in my case) doesn't exist.

    This is another example of why injecting proprietary meaning, which often contradicts with more fundamental established protocols, into processes/protocols is problematic.

    --
    Faith is a willingness to accept something w/o complete proof and to act on it. Reason allows you to correct that faith.
  30. PIF files by Repton · · Score: 4, Informative

    F-Secure points out that .PIF files will have their extension hidden even if you change the display option.

    Q: Will that make all file extensions visible?
    A: Well, no. There are executable extensions that will STILL be hidden even if you turn the option off.

    Q: What?
    A: For example PIF. This file type was meant to be a shortcut to old MS-DOS programs. Problem is, you can rename any modern Windows Executable to .PIF and it will happily run when double-clicked.

    Q: How do you I make PIF files visible then?
    A: Via a registry key called "NeverShowExt". We'd link you to an article in the Microsoft Knowledgebase... except we couldn't find any. But here's a Web page on the topic, from GeoCities, made by some hobbyist a couple of years ago. Maybe it's the best source of information on the topic.

    --
    Repton.
    They say that only an experienced wizard can do the tengu shuffle.
  31. Sigh... by InsertCleverUsername · · Score: 3, Insightful

    This has got to be one of the dumber anti-Windows trolls presented as news I've seen in a while. An evil hacker could also put a post-it note on an idiot's computer telling them to type "FORMAT C:" at a command prompt. People too dumb to recognize icons or use AV software just shouldn't be using computers.

    That all said, I've always thought that extension hiding default was one of the more annoying things I have to kill every time I install Windoze. Seems like Redmond just keeps dumbing down the interface, forcing me to work harder at getting the details I need.

    --
    Ask me about my sig!