LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-03-2005, 01:47 PM   #1
EliasAlucard
Member
 
Registered: Apr 2005
Distribution: Xubuntu 12.04 LTS amd64
Posts: 82

Rep: Reputation: 15
Is Linux immune against computer viruses?


http://www.linuxquestions.org/questi...93#post1616293
Quote:
Linux doesn't have or need antivirus software. Those programs are to filescan windows filesystems and in particular, email servers. When you build a boat without holes, you don't need duct tape to keep it afloat.
That's an interesting metaphor. I take it that he means, Linux is such a well written Operating System, that it's basically immune against computer viruses? I don't know if this is true, so I'd like to find out. So I started a thread about this, and it would be cool if you Linux dudes with a lot of knowledge about Linux would like to fill in the facts in this thread. Feel free to discuss.
 
Old 06-03-2005, 01:51 PM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
It's immune to all MS viruses - even when you run Wine, it's not possible to get hammered by them.

There ARE some things Linux has been hit by. But viruses are essentially a non-issue. We simply laugh at the warning emails that panicked Microsofties route around
 
Old 06-03-2005, 02:52 PM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
I think statements like this one are complacent in the extreme. Viruses that affect Linux systems are rare but do exist. There is antivirus software for Linux mainly intended to trap w32 based viruses.
As with any system, your security is only as good as you make it. Never trust anything or anybody.
At base Linux has a very secure structure and hopefully you NEVER run your system as the root user. If you run as a user and acquire a virus the worst that could happen is that it will damage your personal files. If you have not requested an installation of some type of software and you are suddenly requested to give root permission then think very carefully about doing so. i.e. don't give root permission.
 
Old 06-03-2005, 04:45 PM   #4
tomj88
Member
 
Registered: Apr 2005
Location: Wolverhampton, England
Distribution: Ubuntu
Posts: 334

Rep: Reputation: 30
There are far more developers for linux (because the source code is openly available) so whenever a virus is released, people can write a fix (aka a patch) far quicker than microsoft can. This is why most virus developers don't even bother, because they know that a virus is going to be relatively ineffective. Plus most linux users are more wised up than your standard windows user, so virus's are spotted and stopped quickly. Linux is NOT immune to virus's, it just doesn't have aids like windows.
 
Old 06-03-2005, 05:02 PM   #5
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
As TigerOC stated, I think it all boils down to permissions. This is something that Linux has allways been based on the that MS is just comming into realizing.

A virus cannot attatch itself to any file that cannot be written too... If you are logged onto a user account the worst any virus could do is destroy that particular account. The "root" OS will be un-affected.

That is why it is always discouraged to logon to linux as "root" unless doing maint...

KC
 
Old 06-03-2005, 06:33 PM   #6
scankyfrank
LQ Newbie
 
Registered: May 2005
Location: scotland
Distribution: slackware
Posts: 23

Rep: Reputation: 15
I might be wrong here but does linspire not log you in as root automatically? I was originally going to go with linspire but, well, i decided against it for obvious resons.
 
Old 06-03-2005, 07:07 PM   #7
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Stupid is as stupid does.

Stupid = logging in as root on a normal basis
Stupid = not reading the Lindows/Linspire documentation (Read The "Fine" Manual) and realizing you should create user accounts
Stupid = rm -rf * when logged in as root and being located at /
Stupid = download any old application without knowing what it is and running it
Stupid = chmod -R 777 / (Yes, I know of *nix shops who do this. They are *Nix shops who are in denial and want the insecurity of MacOS Classic back. "Permissions are hard")
 
Old 06-04-2005, 04:17 PM   #8
LinuxSeeker
Member
 
Registered: Feb 2004
Location: Linuxland
Distribution: Ubuntu 5.10, KUbuntu 5.10, Mandrake 10.1 - Ubuntu 5.04 (Hoary)
Posts: 346

Rep: Reputation: 30
Linux has very few bugs, at about 0.17bugs per 1000 lines of code. Commercial software usually has about 20-30 bugs per 1000 lines of code.
 
Old 06-07-2005, 03:23 AM   #9
EliasAlucard
Member
 
Registered: Apr 2005
Distribution: Xubuntu 12.04 LTS amd64
Posts: 82

Original Poster
Rep: Reputation: 15
If Linux is immune against all Windows viruses, how can a poorly configured Linux distro be less secure than a good configured Windows XP with firewall/antivirus? I mean, even so, having firewall/antivirus on Windows doesn't mean you're immune. You can still get a lot of viruses that there's no protection against.
 
Old 06-07-2005, 03:25 AM   #10
EliasAlucard
Member
 
Registered: Apr 2005
Distribution: Xubuntu 12.04 LTS amd64
Posts: 82

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by KimVette
Stupid is as stupid does.

Stupid = logging in as root on a normal basis
Stupid = not reading the Lindows/Linspire documentation (Read The "Fine" Manual) and realizing you should create user accounts
Stupid = rm -rf * when logged in as root and being located at /
Stupid = download any old application without knowing what it is and running it
Stupid = chmod -R 777 / (Yes, I know of *nix shops who do this. They are *Nix shops who are in denial and want the insecurity of MacOS Classic back. "Permissions are hard")
You're completely wrong. Stupid is basically a human being with low intelligence. All of your examples require knowledge of Linux. Knowledge and intelligence isn't quite the same thing, but I thought it was obvious
 
Old 06-07-2005, 03:36 AM   #11
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Quote:
If Linux is immune against all Windows viruses, how can a poorly configured Linux distro be less secure than a good configured Windows XP with firewall/antivirus?
Easily. There's more to security than viruses! A well-configured XP with appropriate protection is actually pretty secure. A badly-configured Linux is wide-open.

Examples: Running old versions of software with known exploits (Like the version of SSH Trinity cracked in Matrix 2 thanks to Nmap ). Allowing remote logins using non-secure connections (telnet rather than SSH). Allowing remote root logins. Installing software as root that you don't know for sure is safe. Using easy (or no) passwords.

As the BOFH once put it, "A vanilla linux install is a potential minefield!"
 
Old 06-07-2005, 03:43 AM   #12
EliasAlucard
Member
 
Registered: Apr 2005
Distribution: Xubuntu 12.04 LTS amd64
Posts: 82

Original Poster
Rep: Reputation: 15
I'm running Mandrake 10.2 on standard security settings. Is that safe? I believe there's no firewall in this mode.
 
Old 06-07-2005, 03:59 AM   #13
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Depends how you use it! What services are running, how good are your passwords, how careful are you with installs, how often do you update. . . ?

A study a while ago found that a vanilla linux install with permanent net connection went six months without getting cracked. So unless you're doing anything silly, you're probably fine.
 
Old 06-07-2005, 04:05 AM   #14
EliasAlucard
Member
 
Registered: Apr 2005
Distribution: Xubuntu 12.04 LTS amd64
Posts: 82

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by oneandoneis2
Depends how you use it! What services are running, how good are your passwords, how careful are you with installs, how often do you update. . . ?

A study a while ago found that a vanilla linux install with permanent net connection went six months without getting cracked. So unless you're doing anything silly, you're probably fine.
Well, I use Firefox 1.0.4 and I always save passwords etc. I occasionally order stuff from the internet too. I'd be running the paranoid setting mode, but I couldn't access my Windows partition whilst doing so :/
 
Old 06-07-2005, 04:12 AM   #15
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Services mean are you running any of the following servers?

ssh, ftp, apache, mail, webmin etc. etc.

If you run servers, then you need a firewall to protect you. Even otherwise I choose to have a firewall. Never hurts.

A good personal Linux firewall frontend is firestarter. Excellent for newbies. Very similar to ZoneAlarm for Windows. Simple configuration (if you are satisfied with the defaults). Enough for a desktop system.

For server systems things related to security can start getting complicated very quickly.

Last edited by vharishankar; 06-07-2005 at 04:15 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Billy is not immune richgagnon Linux - News 33 04-18-2005 09:02 PM
viruses in linux? chemdawg Linux - Newbie 7 01-28-2005 01:31 AM
linux and viruses??? spyghost Linux - Software 11 09-21-2003 05:45 PM
Linux Viruses? isolationist Linux - Security 14 03-05-2003 12:59 PM
brief history of computer viruses acid_kewpie General 0 06-02-2002 03:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration