FAQ is strongly not recommending to run wine as a root, but why is that? What should I do if I want to use FAR Manager (farmanager.com) for system administration?
Well, one of the reasons for that recommendations is that with root privileges a misbehaving application can damage your system. Also, Wine is at some points has "bug by bug" compatibility with Windows, which also raises security concerns. It is more recommended to use a Unix equivalent of FAR in this scenario. There are quite a few really good orthodox file managers out there, like Midnight Commander or Krusader.
atohom wrote:> What should I do if I want to use FAR Manager for system administration?Many options: Use MC (midnight commander) Use shell Use GUI system tools In all cases you really do not want to use windows program for system administration. They will newer know specifics of the environment (file permissions, ownerships, unix paths, special files like symlinks and char devices) and will constantly break text files with windows line terminations.
After many years of use I grew accustomed to FAR, changing file manager now will break all my habits. And, as I see, wine runs FAR good enough to use, all that I am missing now is unrestricted file system access, is it possible to achieve with wine? I tried to launch it with sudo, but get this error message: wine: /home/atohom/.wine is not owned by you
vitamin wrote:> In all cases you really do not want to use windows program for system administration. They will newer know specifics of the environment (file permissions, ownerships, unix paths, special files like symlinks and char devices) and will constantly break text files with windows line terminations.I think it is possible to make FAR understand unix specifics (it is distributed under BSD license and support plugins), but for now I just need basic operations - copy/edit/delete. As for line terminations - in FAR you can chose which one to use.
As already said by vitamin e.g. Midnight Commander is great. It is very similar to the good old Norton Commander which started it all. No need for FAR on Wine, just good old.
"atohom" <wineforum-user at winehq.org> wrote:> I think it is possible to make FAR understand unix specifics > (it is distributed under BSD license and support plugins) ...^^^^^^^^^^^ That sounds as if it is open source. Maybe a Linux version already exists? If not, you could still try building it natively for Linux -- much better than exposing your system to the dangers of running something as complex (and buggy*) as wine with root permissions. * Not complaining _at all_ -- the developers are doing a terrific job -- but we all know that there is a long way yet to go.
perryh wrote:> > That sounds as if it is open source. Maybe a Linux version already > exists? If not, you could still try building it natively for Linux >Yes, FAR is open source, but developers don't have plans porting it, and you can't simply compile FAR for another system, as it is heavily relying on native Windows API. I still hope there is a way to run wine with sudo, why it is requiring specifics owner for /home/atohom/.wine directory?
atohom wrote:> why it is requiring specifics owner for /home/atohom/.wine directory?To prevent multiple users from sharing a wineprefix, because that will cause registry corruption. wiki.winehq.org/FAQ#head-f54d469b937b82e6d757a851dfcece0167919859