Linux Explorer: The Truth About Linux and Viruses
Extracted from: Scot’s Newsletter (free) (http://www.scotsnewsletter.com/subcenter/subscribe.htm)
Conventional wisdom says that a virus scanner is one of three protections necessary these days for computers connected to the Internet. (The other two being a spyware scanner or two, and a trainable spam filter.) The same wisdom also says that the only reason Linux and Macintosh computers don’t see the same level of virus attacks as Windows PCs is because Windows PCs are so much more prevalent.
While this may be partly true, it’s not the whole reason. According to various virus lists, there are less than 100 known viruses for Linux, none of which spread the way a Windows virus does. Meanwhile, there are thousands and thousands of Windows viruses. With the so-called discovery of a Linux/Windows virus, more light is being shined on the subject of Linux security.
But it’s easy to protect yourself in Linux, once you know a few things about viruses under the operating system. And if you still think you need it, we’re including instructions on how to use Frisk Software International’s F-Prot Antivirus.
- If you run Linux and only Linux, you do not need antivirus software. In its efforts to make Windows easier to use, Microsoft simplified the process of running executables under its operating system many years ago. Not only can a user launch a program by clicking an e-mail attachment, but it’s possible for an executable to launch automatically just by hitting the preview pane of some email packages, including older versions of Outlook and Outlook Express. Scot’s Newsletter Forums member Nathan Williams has provided an excellent FAQ for the All Things Linux forum explaining why Linux when used alone does not need antivirus protection.
Under Linux the steps for launching an executable from an e-mail are separate, discrete steps. A user would have to read the email, save the attachment, give the attachment executable permissions, and then run the executable. And to be truly damaging, the latter two would have to be done as root — not something informed users would allow. (For more information see Ch- Ch- Changing File Permissions.)
-
If you dual boot Linux and Windows and get a virus-infected mail in Linux, it can NOT jump to your Windows partition. Nor can it spread over the local network to other systems. You can even store the attachment in your /home directory and open the zip or click the file, and it will be dead in the water. Windows executables won’t run under Linux. Linux files need to be granted permission to become executable. And even then, it can’t spread beyond the home folder. (This is also why Linux AV programs do not have a “live guard” module in them — the virus does not execute or move.) You could even leave a virus executable there as long as you wanted to without risk. Windows will not get infected, unless you deliberately copy the virus to your Windows partition.
-
If you dual boot, however, you better get a good antivirus program for Windows. Microsoft’s operating system and its bundled applications, Outlook and Internet Explorer, offer users powerful functionality in their attempts to be easy to use and easy to update. As a result, it’s all too easy for virus writers to exploit the same functionality in a malicious way. Don’t leave them an opening. Install an antivirus program and keep it updated.
-
The only time you’ll need a Linux antivirus program is if you’re running a mail server. And that’s just good social behavior. It’s not to protect your Linux server or client computer so much as to make sure you don’t pass a virus on to a Windows system.
Think about it this way: If you have two warehouses, and you use the first one to store cheese, are you going to place mouse-traps in the second one where you only store stainless steel? I mean, be reasonable, mice do not eat stainless steel! So don’t let antivirus vendors make you unnecessarily paranoid.