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 - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-28-2005, 05:29 PM   #1
jacatone
Member
 
Registered: Mar 2004
Posts: 292

Rep: Reputation: 30
Question about Linux Security?


I guess Linux is inherently more secure than Windows because the Administrator or root can only make changes to the system. Since everybody is root in Windows, viruses and spyware can make system changes without any problem. What's to prevent the administrator from unknowingly downloading and installing malicious software that's included with a program or file?
 
Old 07-28-2005, 05:34 PM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Re: Question about Linux Security?

Quote:
Originally posted by jacatone
What's to prevent the administrator from unknowingly downloading and installing malicious software that's included with a program or file?
You're not supposed to (nor do distributions ever encourage you to--except Linspire) ever run as root. Sometimes distributions (like Ubuntu) will disable root altogether. Usually people log in as root only to make system changes. Then, they log right back in as user (or should). And most of the installation you do is actually through your user account, only temporarily assuming root privileges to install the software.

Could you download and install malicious software? Well, it wouldn't be unknowingly, because you're prompted for a password when it tries to install. And most software created for Linux is not malicious (however, a ton of stuff for Windows on Download.com is malicious). Usually if you stick the repositories, you're pretty safe.
 
Old 07-28-2005, 06:27 PM   #3
jacatone
Member
 
Registered: Mar 2004
Posts: 292

Original Poster
Rep: Reputation: 30
I'm just learning Linux and I guess I don't quite understand the whole administrator/user system. Obviously no one installs malicious code knowingly. What protects a user from doing so if they're able to gain temporary administrator privileges?
 
Old 07-29-2005, 10:05 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
You are correct that, if an administrator (or someone who gains that privilege) installs a program that contains malware, the system is in deep doo-doo. In fact that's always how it happens.

One way that package authors prevent this is by generating MD5 checksums of the package and by signing them using public-key cryptography. This prevents the package from being unknowingly modified. But in any case, packages do need to come only from trusted sources.

It is wise to install packages as a non-root user, designated for the sole purpose of system maintenance, unless the package modifies core files such as those in /bin or /lib. Some packages are lazy on this score. But the effort is worth it.

And it's all a big step forward from the usual status quo on Windows, in which everyone's an Administrator (too often...) and malware gets loaded, deep into the heart of the system, without anyone knowing it was done!
 
Old 07-31-2005, 06:09 PM   #5
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
The real reasons that Linux is more resistent to viruses/spyware is that there are no automatic execution vectors for this stuff to infect you through. For example Linux has no equivalent of the ridiculously insecure ActiveX (which is probably responsible for most spyware infections) nor have any of the Linux email clients had anywhere near the security problems surrounding Outlook Express (and Outlook as well), which for a time was probably responsible for most virus infections in Windows.

So to get an infection you would have to manually download, change the permissions on and then run something. Combine this with the fact that most Linux software is distributed by repositories of packages built by trusted people (ie. the company that makes your distribution isn't going to insert malware - it'd kill their business) and the fact that most Linux users are pretty computer-literate and you have an environment where viruses and spyware get nowhere, they simply don't spread.

This may change somewhat if more computer-illeterate people start using it, but it'll never be as bad as its been on Windows the last few years.
 
Old 07-31-2005, 11:30 PM   #6
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
The root account in Unix/Linux systems is more powerful than the Administrator used by Windows, and it is because of the flexibility that lets you control almost any aspect of hardware/software interaction.

So, "Unix/Linux security" means comprehension of the model used to make programs run and things work.

To protect yourself against accidentally deleting data, you must know what you're doing everytime, and to apply the correct measures when bad things happen...

To protect yourself against unknown malware, you must know what they do (and what they can possibly do, and what they can't definitely do).

Security is an ever dynamic process. There are no "tricks". No final state.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake Linux security question wardialer Linux - Security 3 09-24-2004 02:38 PM
Linux security question yjshah Linux - Security 3 03-18-2004 04:26 PM
Question about security in Linux phinaliumz Linux - Newbie 4 10-22-2003 03:16 AM
Question about security, linux and IIS deadseasquirrel Linux - Security 4 04-21-2003 10:28 PM
Mandrake linux security question... salsaholik Linux - Security 1 04-06-2003 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:29 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