LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-27-2009, 11:32 AM   #1
jamesnjenga
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
wine and suseptibility to viruses


will installing and using wine on my linux distr render machine susceptible to viruses. i have a lot of windows based program that i would like to use
 
Old 03-27-2009, 11:44 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Running closed source programs in wine is not a good thing. Viruses may not pose big problems. Closed source programs are always suspect. Try to get better FLOSS alternatives.

Anyway which programs?
 
Old 03-27-2009, 11:44 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Welcome to LQ!
 
Old 03-27-2009, 11:44 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by jamesnjenga View Post
will installing and using wine on my linux distr render machine susceptible to viruses. i have a lot of windows based program that i would like to use
On a perfect world, all your windows viruses should work on wine. However they often rely on obscure peculiarities of the Windows OS, so, some -most, I guess- will fail to run, but some others that are programmed more cleanly and in a smart way will work.

However, note that due to the nature of Linux, no virus will be able to infect your whole system, since no use can overwrite system files (I assume that you will never be running wine as root user). Viruses are programs, nothing magical on them, so, they will have access to the same set of files than any other windows program running under wine, that also means that as long as you are running wine as a given user (let's call it UserX), the virus will have write privileges on those files that are writable by UserX.

That is also why I advice to run windows stuff in an alternate user account, so your main account doesn't get trashed if a windows virus feels like deleting everything in your home directory or something like that.

amani, running a closed source program when there're alternatives might not be a good idea, but that's the whole point of wine. If we had the source then there'd be no point in developing such a complex product like wine is, even more if we consider that most work must be done via trial and error and reverse engineering, which is a pain in the arse.

PS.: I knew I had it somewhere, you can read this, old but entertaining

http://www.linux.com/feature/42031

Last edited by i92guboj; 03-27-2009 at 11:52 AM.
 
Old 03-27-2009, 11:59 AM   #5
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Quote:
Originally Posted by i92guboj View Post
PS.: I knew I had it somewhere, you can read this, old but entertaining

http://www.linux.com/feature/42031

That is old. How has the permission system used by wine changed since that?
 
Old 03-27-2009, 12:09 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
First thing you should do is eliminate as many of those "lots" of programs you want to run, in fact eliminate all of them if possible. Because there exist alternative for everything but games and a few rare programs.

They did a test a while ago with some viruses and they refused to run through wine, they malfunctioned and never really harmed the system. However, it was not an extensive test, so the possibility does exist.
 
Old 03-27-2009, 12:26 PM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by amani View Post
That is old. How has the permission system used by wine changed since that?
Wine has no permissions system. It all comes down to linux itself. Linux will have the same permissions that the user you run it under, just like all the programs you run in linux. If you run it as root, it has god-like powers. That's why you shall never run wine as root. There's no reason to do so, either.

The only thing that you can configure in wine that could cause any harm is virtual drives. You can do that by running winecfg, and then removing all the drives except those strictly needed to run, so no sensitive information can be accessed even in read only mode. Wine will need at a minimum a virtual drive (c that will point to the wine fake windows dir ($HOME/.wine/drive_c or whatever it was called). You might also want to add drive letters for your cdroms and such, the rest can be removed.

PS.: As H_TeXMeX_H very well said, I'd try to reduce that "lot" of windows programs. The first reason is that there are alternatives for most things, the second reason is that if you are going to run only windows programs, then I wonder why the heck are you running linux at all. It's like buying a pc just to run mac games in an emulator. Buy a mac then.

Last edited by i92guboj; 03-27-2009 at 12:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Will Wine make me susceptible to Windows viruses? cosaides Linux - Software 3 01-16-2008 07:42 PM
Wine & MS Windows viruses Blood Stream Linux - Security 6 08-15-2006 04:29 AM
wine and viruses davoman Linux - General 16 04-19-2004 01:09 AM


All times are GMT -5. The time now is 08:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration