[Wine] Re: How to masquerade as Administrator?

Pavel Troller patrol at sinus.cz
Sat Nov 12 05:31:28 CST 2005


> In my imagination, nobody really runs as a non-privileged user
> account, even though the docs says to do so.  I've run a
> non-privileged user account for perhaps a month, and that was a couple
> of years ago.  Hated it so much I've not run as anything but root ever
> since.  
Really ? And in my imagination it's just vice versa. I'm running as root just
when I'm installing, maintaining, upgrading etc. my system. Otherwise I'm just
a regular user. Of course I'm speaking about Linux. Maybe, on windows, there
is another common behaviour :-).
> If that's what everybody does, maybe just returning 1 is sane :-).
I think it is NOT what everybody does, but I think it should be harmless for
the windows programs run by wine. Because although you run wine as a regular
user, not Linux admin, you ARE admin of your .wine directory, and it is,
together with your home directory, almost the whole world which any windows
app can see. So You are de facto telling true by that.
> 
> It might be useful in various scenarios to fake Windows Administrator
> rights, even though one is not logged in as root.
Exactly, see above.
> So the best solution of all might be to just have IsNTAdmin read
> the value from the registry.  The wineprefixcreate application could set
> the initial value in the ~/.wine registry depending on above 'is-user-root'
> calculation.
I don't think so. I think that the initial setting could be "Yes" and there
should be a checkbox in winecfg allowing to change it, maybe on a per-app
basis.
                    With regards, Pavel Troller



More information about the wine-users mailing list