LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why does wine sometimes want to be root? (https://www.linuxquestions.org/questions/linux-newbie-8/why-does-wine-sometimes-want-to-be-root-787819/)

Quads 02-08-2010 12:40 PM

Why does wine sometimes want to be root?
 
I have found sometimes that programs won't install in wine, but when i run setup as root, they will install just fine. I do not use them this way because I do not trust wine running as root on my system. Anyone know why this may be happening?

irmin 02-08-2010 12:47 PM

Maybe it is a misconfiguration of wine or your system permissions? What does this program exactly is supposed to do? (access some hardware or similar)

Quads 02-08-2010 12:50 PM

Quote:

Originally Posted by irmin (Post 3856930)
Maybe it is a misconfiguration of wine or your system permissions? What does this program exactly is supposed to do? (access some hardware or similar)

Many programs in wine work just fine. I have tried to run Call of Duty 2 and Wolfenstein, both which work fine according to what I have found on the wine page, and the install fine as root. Its just bizarre.

irmin 02-08-2010 01:05 PM

Are you trying to install "Call of Duty 2" or "Wolfenstein" from a CD or DVD? It is possible that these discs are copyprotected and the installation program tries to verify it by directly accessing the disc, from which your permission settings may prevent you doing so.

Another possiblity is that there is too few free space in your home directory (~/.wine/drive_c) and the installation as root works, because the installation target directory is somewhere else?

Does the installation program produce any output in the terminal? To trace permission problems you can "strace": e.g. "strace -e open -f wine <your-exe-file> 2>&1 | grep EACCESS" or "strace -e open -f wine <your-exe-file> 2&1 | grep EPERM" (it will show you all open systemcalls that produce permission errors).

Quads 02-08-2010 01:09 PM

Quote:

Originally Posted by irmin (Post 3856959)
Are you trying to install "Call of Duty 2" or "Wolfenstein" from a CD or DVD? It is possible that these discs are copyprotected and the installation program tries to verify it by directly accessing the disc, from which your permission settings may prevent you doing so.

Yes, from the discs...this is what it says normally in a terminal...

wine: Call from 0x7ef8b300 to unimplemented function KERNEL32.dll.BaseIsAppcompatInfrastructureDisabled, aborting


I will try running things the way you said and see what I can find out.


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