ntdll: add a warning about running wine as root (resend)
madewokherd+8cd9 at gmail.com
Tue Feb 10 22:15:24 CST 2009
How about this:
If uid = 0, SUDO_USER is set to a valid username, HOME is owned by
that user, and WINEPREFIX is not set, then refuse to start, printing a
message explaining the situation.
Perhaps the message can be something like
You're running Wine for the first time as root, but your home
directory belongs to a normal user. Continuing would break Wine for
You probably want to run Wine as a normal user. Wine does not need to
be root to install or run programs.
This will stop naive ubuntu users who think they need installers from
running Wine as root. Someone who has a legitimate need for root can
get around this by using a configuration that isn't broken.
More information about the wine-devel