On Tue, May 13, 2014 at 07:51:24PM +0300, John Found wrote:
In my program I want to copy some files in the /usr and other system directories.
Why? Unless you know what you're doing, only your package manager should be touching files in </usr>.
Is it possible from WINE program and how?
Sure. You can change the permissions on the directories or run Wine as root. But you have a good chance of destroying your operating system in the process. For example, you could accidentally delete the wrong file. You also open up your system to exploitation by providing more opportunities for an attacker to exploit.
In the FAQ I read:
/!\ NEVER run Wine as root! Doing so gives Windows programs (and viruses) full access to your computer and every piece of media attached to it. Running with sudo also has these same risks but with the added bonus of breaking the permissions on your ~/.wine folder in the process. If you have run Wine with sudo you need to fix the permission errors as described in the next question, and then run winecfg to set Wine up again. You should always run Wine as the normal user you use to login.
Is it so important?
Somewhat more information here: http://kb.mediatemple.net/questions/792/An+introduction+to+the+root+user
Andrew