LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-11-2011, 03:39 AM   #1
briandc
Member
 
Registered: Sep 2011
Location: Italy
Distribution: KXStudio, Bodhi Linux, AntiX, Mint
Posts: 91

Rep: Reputation: Disabled
Do I have a virus??


Hi everyone,
Here's the situation:
I recently installed PCLinuxOS LXDE 06.11.
I use this pc at home, but a Windows XP pc in the office.

I created a database with OpenOffice Calc, and it contains hyperlinks to files that contain jpg pics. These pics are organized into folders with codes: M001, M002, M003, etc.

I use a usb pen drive to save modifications to the calc sheet and relative jpg folders and save them all at home.

But yesterday, after installing LXDE at home and saving the database w/folders, when I opened the database and clicked on the hyperlinks, they wouldn't open. I finally realized why: all of the related folders (and some pics) had been changed to *lower case* , such as m001 and m002 rather than M001 and M002. Obviously, the hyperlink therefore didn't see the folder paths.

Do I have a virus? (I can't think of how that is possible, as the installation is new..)
Or is there a bug somewhere that changed the folders to lower case?


Thanks to everyone for the input..
Brian
 
Old 09-11-2011, 03:59 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
Do I have a virus?
No, you dont. May I expand on this?

For starters, and this is not a newbe observation you did, Linux is CaseSensitive. A hyperlink to the original storage will have been broken, so...yeah. A hyperlink to the Net, well, that'll stil work.

Okay, on to the anatomy of a virus.
A virus is a program. Unless "installed" to start along with the rest, a virus needs to get a pulse to start. Just like any program. In the "abomination", it's simple, any program can access any part of the system's disk. And, hence "install" itself. Linux has a barrier: your system rights. And these forbid you (unless you've broken these down...I hope not) to alter anything outside your home folder.
Assuming a virus, therefore, would have been on the USB stick, the mechanism to start it up is not there. In Linux simply being a program (script or otherwise) and simply requesting execution does not at all guarantee Linux will simply start up the program. The possibility to anchor itself in the system is non-existent due to your rights, it will "borrow" these from you, or whatever account it lands into. As does anything in your folder (programs, scripts,...) the mechanism to wreack havoc is non-existent, as havoc means alterring the system...

Believe me, a virus is the least of your worries in Linux

Happy Linuxin' and welcome to the forum!!

Thor

Edit : demo of "to run or not to run, that's the question"

This is a little PERL script, open gedit and paste this in there, save as rundemo.pl

Quote:
#!/usr/bin/perl

print "this thing can run...\n";
(assuming PERL is installed)

...now, enter the console and enter that name...chances are you'll get a

Quote:
permission denied
or somthing like that, now, still in the console, enter this:

Quote:
chmod +x rundemo.pl
and now try to run it...
See? If a virus does not have the run flags up, Linux will not even take a sniff at it...

Last edited by ButterflyMelissa; 09-11-2011 at 04:28 AM.
 
1 members found this post helpful.
Old 09-11-2011, 04:12 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
As Thor already explained it's not a virus. This is the behavior of VFAT filesystems. Since they don't distinguish between upper and lowercase in file names, it's up to the mount command to decide how to display them. From the mount man page:
Code:
shortname={lower|win95|winnt|mixed}

      Defines the behaviour for creation and display of filenames which fit into 8.3 characters. If a long name for a file
      exists, it will always be preferred display. There are four modes: :

      lower  Force the short name to lower case upon display; store a long name when the short name is not all upper case.
      This mode is the default.

      win95  Force the short name to upper case upon display; store a long name when the short name is not all upper case.

      winnt  Display the shortname as is; store a long name when the short name is not all lower case or all upper case.

      mixed  Display the short name as is; store a long name when the short name is not all upper case.
As you can see the lower mode is the default. You can change that by setting the mount option shortname=winnt. Depending on how the filesystem is mounted (manually or automatically) you have to add this option somewhere.
 
1 members found this post helpful.
Old 09-11-2011, 04:13 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Deleted, colucix explained it way better than me.

Last edited by TobiSGD; 09-11-2011 at 04:14 AM.
 
Old 09-11-2011, 05:11 AM   #5
briandc
Member
 
Registered: Sep 2011
Location: Italy
Distribution: KXStudio, Bodhi Linux, AntiX, Mint
Posts: 91

Original Poster
Rep: Reputation: Disabled
Hi guys ( and thanks for the quick responses!),

It's nice to hear confirmation that it isn't a virus. I understand the problem is with FAT, although I used the same stick and procedure when I had Xubuntu installed, with no problem. It acted like Windows. Apparently, PCLinuxOS makes a distinction by default. What's strange (and the reason for fear of something malicious) is that not all the jpg files in the folders were changed to lower case! In some folders, all were changed. In other folders, only some were changed. In others, none were changed.

So..
as I'm new to Linux, can someone walk me through the process to make my system act like Windows for this issue? I'll check in again here in a few hours..

Thanks guys. Hopefully someday I'll be able to help others as well!

Brian
 
Old 09-11-2011, 09:51 AM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
as I'm new to Linux, can someone walk me through the process to make my system act like Windows for this issue? I'll check in again here in a few hours..
Well...not really LIKE ... the "thing" ... but, we can go further than that.

Xubuntu uses XFCE...and, PCLinux has its own rules. All I can say is : welcome to Linux. These differences are not bugs, but features. I for one welcome the fact that my system cannot by default "slurp" up all that's on a stick.

Linux makes differences between upper and lower case, it's the shell (XFCE, Gnome, E17 and the like) that try to "think with you" in such matters...

Maybe, this is the first (and best) experience in Linux: choose a distro that fits YOUR needs. And consider the desktop as well...

By the way, Linux is not windows...and for some good reasons...

Quote:
Thanks guys. Hopefully someday I'll be able to help others as well!
Ooooh, dont you worry...that day will come!

Thor
 
Old 09-11-2011, 11:42 AM   #7
briandc
Member
 
Registered: Sep 2011
Location: Italy
Distribution: KXStudio, Bodhi Linux, AntiX, Mint
Posts: 91

Original Poster
Rep: Reputation: Disabled
Ok, I'm back.
So, should I use the "shortname=" command somewhere? How do I find out where to put it??

I've used line commands in the past, and I even understand the reasoning behind much of what I've done. But since I'm not a programmer, I think there's still a lot I need to learn about how to use them well..

At any rate, for the moment, I don't have a lot of time to fish around for answers, unfortunately. I could install a different OS, but I really like what I'm seeing in this current one, and if I can learn to change the default for my files, that would be great. (I also would like to change the file association for the jpg files, so that they always open with Ristretto; unfortunately, I can't find any GUI-type apps that can change this for me, either...)

So, can anyone help me resolve this issue? (BTW, I've tried to register at the PCLinuxOS website to use their forum, but my email addresses are considered spam (all 3!) and no one has helped me register there, either!

Brian
 
Old 09-11-2011, 12:00 PM   #8
briandc
Member
 
Registered: Sep 2011
Location: Italy
Distribution: KXStudio, Bodhi Linux, AntiX, Mint
Posts: 91

Original Poster
Rep: Reputation: Disabled
Just a sidenote:

I have a third pc, a bit older, from when XP came out in 2001; I installed SwiftLinux (Minnesota version) on this one, and not only is it fast... it also reads the files as they should be (as M001, M002, etc)!!!

So I can confirm that this must be a PCLinuxOS issue. --I just hope someone here can help me solve it!

Brian
 
Old 09-11-2011, 08:51 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Can't help with PCLOS, but this is a good Linux tutorial http://rute.2038bug.com/index.html.gz
 
1 members found this post helpful.
Old 09-12-2011, 07:05 AM   #10
briandc
Member
 
Registered: Sep 2011
Location: Italy
Distribution: KXStudio, Bodhi Linux, AntiX, Mint
Posts: 91

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
Can't help with PCLOS, but this is a good Linux tutorial http://rute.2038bug.com/index.html.gz
Thanks Chris!
This looks really good for starters. Of the two computers with PCLOS installed, last night I replaced it was Mageia KDE 1.0, which does everything and then some!

Still, the other pc looks so nice with PCLOS, and for my own "educational" benefit, I'm going to see if I can learn to change things at the command line so that it's just right!

Thanks to all here,
brian
 
Old 09-14-2011, 11:22 AM   #11
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Just a side note, even though the thread is solved ... a windows "virus" won't work on Linux, at least not without effort on the part of the user (installing wine .. libs )
 
Old 09-15-2011, 07:13 AM   #12
briandc
Member
 
Registered: Sep 2011
Location: Italy
Distribution: KXStudio, Bodhi Linux, AntiX, Mint
Posts: 91

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DJ Shaji View Post
Just a side note, even though the thread is solved ... a windows "virus" won't work on Linux, at least not without effort on the part of the user (installing wine .. libs )
Hi DJ,

Interesting..
So, is Wine at risk of allowing viruses in? If so, how? because it allows .exe files to be opened?

Just wondering..

Thanks
brian
 
Old 09-15-2011, 08:57 AM   #13
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Wine is essentially a way to run windows programs on other operating systems. A "virus" is pretty much a program; so, depending on what it is supposed to do, it may or may not cause damage to any platform it runs on. In my opinion, more "complex" viruses out there may not be a threat to wine, at least some damage can possibly be done, as far as file system and network access is concerned.

Also, I would imagine somebody would have to acquire and run a "virus" by hand to execute it; it would be pretty difficult - but possible - for a virus to "infect" a wine installation. I don't think it has ever happened, though.

Finally, it would be unlikely for such an "infection" to seriously damage a linux system; all somebody may risk is deletion of stuff in their home directory (or whatever wine sees as "C:").
 
  


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
Microsoft Virus Removal... (Virus Live CD) Nathan1993 Linux - Distributions 7 04-06-2011 06:55 PM
dual boot without anti-virus, virus now in linux gardner Linux - Security 7 03-09-2009 01:01 PM
Boot virus or Anti-Virus? AVG Free Anti-Virus Software problems SparceMatrix Linux - Security 9 08-02-2004 02:35 PM
trend chipway virus detected boot virus rafc Linux - Security 1 05-13-2004 01:44 AM

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

All times are GMT -5. The time now is 06:46 AM.

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