Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-04-2009, 03:20 PM
|
#1
|
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,052
Rep:
|
I got a question about viruses and the linux filesystem ext4...
1. If there was a file that had a virus/trojan embedded within it that was made to attack ntfs windows operating systems and you downloaded that file onto a linux ext4 filesystem, there would be no effect?
2. Does downloading the file onto an ext4 hard drive clear up the virus? What would happen if you downloaded the virus file onto a linux ext4 hard drive and then onto a windows ntfs partition. Would it then attack the windows ntfs partition?
|
|
|
12-04-2009, 03:27 PM
|
#2
|
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833
Rep:
|
Viruses do nothing by simple existence in any operating system.
You can download 100,000 viruses into a folder on your hard drive and so long as they're never executed or loaded by whatever means they use to begin execution they are 'safe'.
In the example you give of "If there was a file that had a virus/trojan embedded within it that was made to attack ntfs windows operating systems and you downloaded that file onto a Linux ext4 file system, there would be no effect?" the same virus would have no effect if downloaded onto a ntfs file system until the file it was embedded in was loaded in the correct manner. Simple existence isn't execution. It would likely have no effect in linux for a combination of reasons but none of them have anything to do with the underlying file system and have everything to do with lack of binary compatibility and means of execution.
To the second part of your question, no. Although different file systems store information in a different formats (blocks, extents, etc.) it is still the same data.
(In retrospect there are a few exceptions to that, but they would result in complete corruption of the file and would be rare.)
Last edited by rweaver; 12-04-2009 at 03:46 PM.
|
|
|
12-04-2009, 03:30 PM
|
#3
|
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,052
Original Poster
Rep:
|
So what would happen in my question 2 where u then execute it on a windows box?
|
|
|
12-04-2009, 04:00 PM
|
#4
|
LQ Newbie
Registered: Dec 2009
Location: New York Mills, NY
Distribution: Slackware, Gentoo, Ubuntu
Posts: 2
Rep:
|
Quote:
Originally Posted by trist007
So what would happen in my question 2 where u then execute it on a windows box?
|
The virus would affect ntfs file systems on the windows box if it was run in the architecture it was created for.
In other words if you are in windows and run the virus off of an ext4 file system then yes you would get the virus and it would do its dirty work. If you are in linux and the virus was written for windows then you probably can't execute it without using wine, in which case if you have your ntfs file systems mounted so wine can see them then there is a chance it will affect them.
Bottom line is scan the file and don't run it if you are suspicious of it having a virus.
|
|
|
12-06-2009, 09:46 AM
|
#5
|
Senior Member
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,351
Rep:
|
A virus is a *program*. A program that's made EITHER for Windoze OR for Linux. If you took Windoze code, you couldn't run it on Linux as obviously, the system calls are different, they're 2 different OSes. The main thing I don't know is whether it's possible to access ext4 partitions from Windoze, if so, then if you're running 'doze and it can read the virus code off of the ext4 partition, you could be at risk. Otherwise you're OK (barring Wine).
|
|
|
All times are GMT -5. The time now is 02:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|