• WhyJiffie@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    17 hours ago

    It’s not that Wine runs things as an administrator

    yes, it is that

    Wine emulates the Windows virtual filesystem by creating and using a directory in your home (by default), which means you own the entire thing;

    I was always installing fitgirl games to my other drive, where I owned the entire thing. I know because I remember I set the ownership.

    However, the existing Program Files folder in your OS drive (C: by default, idk if you can change its volume letter) is owned by… I have no idea, actually, but it’s a system account, not yours.

    The last paragraph may be inaccurate, I was much less

    I have never installed fitgirl games there.

      • jdr@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 hours ago

        Wine acts as if it has admin on the Windows side, but that’s unrelated to admin on the Linux host, very likely wine is just running with user privileges there.

      • katze@lemmy.4d2.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 hours ago

        You are misunderstanding him. Wine has not implemented any UAC dialogue like windows; when the application requests it, it just gets “elevated” as if the user had pressed that UAC button under windows; but Wine does this automatically, as there is no need for something like that.

        As stated in comment 50, applications requiring unelevated privileges can be run directly, without the need for “runas” or any similar manual intervention.

        https://bugs.winehq.org/show_bug.cgi?id=40613#c50