Make Wine run its applications as user profile, not Administrator












2















For a very specific case, I need to install PostgreSQL under Wine to run a Windows application that packs it's own installation of PostgreSQL even if PostgreSQL is already installed, for security reasons.



The installation goes smoothly until it needs to install PostgreSQL. During its installation, PostgreSQL throws an error saying that it does not allow to be installed as Administrator (again, for security reasons).



So my only problem is that Wine reports to the applications it runs as if they were being run by Administrator.



Two possible solutions are:




  1. Make Wine report it's running its applications by another user than Administrator, but still with admin privileges,
    or;


  2. Force PostgreSQL to be installed and run by Administrator, but as I'm not sure if I really can change any option or argument in this PostgreSQL installation specifically, the solution above is the best choice.



I can't figure out a way to make it. Is it possible?



I would go as far as patching Wine's source code, if necessary.










share|improve this question

























  • Under Windows an installation always runs as TrustedInstaller which has admin privileges. Do you mean to say that you have found a way of installing PostgreSQL under Windows not as admin?

    – harrymc
    Mar 11 '15 at 15:15











  • I guess the case is different. Under Windows, it installs as a privileged user, yes. In fact it needs those privileges to make changes in folders other than the user's home folder. But I think PostgreSQL checks whether it is being run by the user Administrator itself or not. And that's the problem under Wine, it reports being user Administrator, not only a privileged user, probably as an easy way to bypass TrustedInstaller's needs for admin privileges, as you mentioned.

    – Bruno Finger
    Mar 11 '15 at 15:23











  • is the app able connect to postgresql using tcp protocol?

    – Costin Gușă
    Mar 11 '15 at 23:43











  • I'm not sure, but I tried installing PostgreSQL on Linux and try to connect to it from Wine using ODBC, with no luck. But I might have configured it wrong.

    – Bruno Finger
    Mar 12 '15 at 10:32
















2















For a very specific case, I need to install PostgreSQL under Wine to run a Windows application that packs it's own installation of PostgreSQL even if PostgreSQL is already installed, for security reasons.



The installation goes smoothly until it needs to install PostgreSQL. During its installation, PostgreSQL throws an error saying that it does not allow to be installed as Administrator (again, for security reasons).



So my only problem is that Wine reports to the applications it runs as if they were being run by Administrator.



Two possible solutions are:




  1. Make Wine report it's running its applications by another user than Administrator, but still with admin privileges,
    or;


  2. Force PostgreSQL to be installed and run by Administrator, but as I'm not sure if I really can change any option or argument in this PostgreSQL installation specifically, the solution above is the best choice.



I can't figure out a way to make it. Is it possible?



I would go as far as patching Wine's source code, if necessary.










share|improve this question

























  • Under Windows an installation always runs as TrustedInstaller which has admin privileges. Do you mean to say that you have found a way of installing PostgreSQL under Windows not as admin?

    – harrymc
    Mar 11 '15 at 15:15











  • I guess the case is different. Under Windows, it installs as a privileged user, yes. In fact it needs those privileges to make changes in folders other than the user's home folder. But I think PostgreSQL checks whether it is being run by the user Administrator itself or not. And that's the problem under Wine, it reports being user Administrator, not only a privileged user, probably as an easy way to bypass TrustedInstaller's needs for admin privileges, as you mentioned.

    – Bruno Finger
    Mar 11 '15 at 15:23











  • is the app able connect to postgresql using tcp protocol?

    – Costin Gușă
    Mar 11 '15 at 23:43











  • I'm not sure, but I tried installing PostgreSQL on Linux and try to connect to it from Wine using ODBC, with no luck. But I might have configured it wrong.

    – Bruno Finger
    Mar 12 '15 at 10:32














2












2








2


0






For a very specific case, I need to install PostgreSQL under Wine to run a Windows application that packs it's own installation of PostgreSQL even if PostgreSQL is already installed, for security reasons.



The installation goes smoothly until it needs to install PostgreSQL. During its installation, PostgreSQL throws an error saying that it does not allow to be installed as Administrator (again, for security reasons).



So my only problem is that Wine reports to the applications it runs as if they were being run by Administrator.



Two possible solutions are:




  1. Make Wine report it's running its applications by another user than Administrator, but still with admin privileges,
    or;


  2. Force PostgreSQL to be installed and run by Administrator, but as I'm not sure if I really can change any option or argument in this PostgreSQL installation specifically, the solution above is the best choice.



I can't figure out a way to make it. Is it possible?



I would go as far as patching Wine's source code, if necessary.










share|improve this question
















For a very specific case, I need to install PostgreSQL under Wine to run a Windows application that packs it's own installation of PostgreSQL even if PostgreSQL is already installed, for security reasons.



The installation goes smoothly until it needs to install PostgreSQL. During its installation, PostgreSQL throws an error saying that it does not allow to be installed as Administrator (again, for security reasons).



So my only problem is that Wine reports to the applications it runs as if they were being run by Administrator.



Two possible solutions are:




  1. Make Wine report it's running its applications by another user than Administrator, but still with admin privileges,
    or;


  2. Force PostgreSQL to be installed and run by Administrator, but as I'm not sure if I really can change any option or argument in this PostgreSQL installation specifically, the solution above is the best choice.



I can't figure out a way to make it. Is it possible?



I would go as far as patching Wine's source code, if necessary.







linux postgresql wine






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 11 '15 at 15:24







Bruno Finger

















asked Mar 6 '15 at 14:02









Bruno FingerBruno Finger

1581417




1581417













  • Under Windows an installation always runs as TrustedInstaller which has admin privileges. Do you mean to say that you have found a way of installing PostgreSQL under Windows not as admin?

    – harrymc
    Mar 11 '15 at 15:15











  • I guess the case is different. Under Windows, it installs as a privileged user, yes. In fact it needs those privileges to make changes in folders other than the user's home folder. But I think PostgreSQL checks whether it is being run by the user Administrator itself or not. And that's the problem under Wine, it reports being user Administrator, not only a privileged user, probably as an easy way to bypass TrustedInstaller's needs for admin privileges, as you mentioned.

    – Bruno Finger
    Mar 11 '15 at 15:23











  • is the app able connect to postgresql using tcp protocol?

    – Costin Gușă
    Mar 11 '15 at 23:43











  • I'm not sure, but I tried installing PostgreSQL on Linux and try to connect to it from Wine using ODBC, with no luck. But I might have configured it wrong.

    – Bruno Finger
    Mar 12 '15 at 10:32



















  • Under Windows an installation always runs as TrustedInstaller which has admin privileges. Do you mean to say that you have found a way of installing PostgreSQL under Windows not as admin?

    – harrymc
    Mar 11 '15 at 15:15











  • I guess the case is different. Under Windows, it installs as a privileged user, yes. In fact it needs those privileges to make changes in folders other than the user's home folder. But I think PostgreSQL checks whether it is being run by the user Administrator itself or not. And that's the problem under Wine, it reports being user Administrator, not only a privileged user, probably as an easy way to bypass TrustedInstaller's needs for admin privileges, as you mentioned.

    – Bruno Finger
    Mar 11 '15 at 15:23











  • is the app able connect to postgresql using tcp protocol?

    – Costin Gușă
    Mar 11 '15 at 23:43











  • I'm not sure, but I tried installing PostgreSQL on Linux and try to connect to it from Wine using ODBC, with no luck. But I might have configured it wrong.

    – Bruno Finger
    Mar 12 '15 at 10:32

















Under Windows an installation always runs as TrustedInstaller which has admin privileges. Do you mean to say that you have found a way of installing PostgreSQL under Windows not as admin?

– harrymc
Mar 11 '15 at 15:15





Under Windows an installation always runs as TrustedInstaller which has admin privileges. Do you mean to say that you have found a way of installing PostgreSQL under Windows not as admin?

– harrymc
Mar 11 '15 at 15:15













I guess the case is different. Under Windows, it installs as a privileged user, yes. In fact it needs those privileges to make changes in folders other than the user's home folder. But I think PostgreSQL checks whether it is being run by the user Administrator itself or not. And that's the problem under Wine, it reports being user Administrator, not only a privileged user, probably as an easy way to bypass TrustedInstaller's needs for admin privileges, as you mentioned.

– Bruno Finger
Mar 11 '15 at 15:23





I guess the case is different. Under Windows, it installs as a privileged user, yes. In fact it needs those privileges to make changes in folders other than the user's home folder. But I think PostgreSQL checks whether it is being run by the user Administrator itself or not. And that's the problem under Wine, it reports being user Administrator, not only a privileged user, probably as an easy way to bypass TrustedInstaller's needs for admin privileges, as you mentioned.

– Bruno Finger
Mar 11 '15 at 15:23













is the app able connect to postgresql using tcp protocol?

– Costin Gușă
Mar 11 '15 at 23:43





is the app able connect to postgresql using tcp protocol?

– Costin Gușă
Mar 11 '15 at 23:43













I'm not sure, but I tried installing PostgreSQL on Linux and try to connect to it from Wine using ODBC, with no luck. But I might have configured it wrong.

– Bruno Finger
Mar 12 '15 at 10:32





I'm not sure, but I tried installing PostgreSQL on Linux and try to connect to it from Wine using ODBC, with no luck. But I might have configured it wrong.

– Bruno Finger
Mar 12 '15 at 10:32










1 Answer
1






active

oldest

votes


















0














you can try to perform the installation on windows then copy the postgresql database, files and registry to wine.



http://wine-wiki.org/index.php/Advanced_Wine_User_Information#Copying_Software_across_from_a_native_Windows_Installation






share|improve this answer
























  • or try to change wine windows version with winecfg to win98 and see if it still sees the user name as Administrator

    – Costin Gușă
    Mar 12 '15 at 17:18











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f886363%2fmake-wine-run-its-applications-as-user-profile-not-administrator%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














you can try to perform the installation on windows then copy the postgresql database, files and registry to wine.



http://wine-wiki.org/index.php/Advanced_Wine_User_Information#Copying_Software_across_from_a_native_Windows_Installation






share|improve this answer
























  • or try to change wine windows version with winecfg to win98 and see if it still sees the user name as Administrator

    – Costin Gușă
    Mar 12 '15 at 17:18
















0














you can try to perform the installation on windows then copy the postgresql database, files and registry to wine.



http://wine-wiki.org/index.php/Advanced_Wine_User_Information#Copying_Software_across_from_a_native_Windows_Installation






share|improve this answer
























  • or try to change wine windows version with winecfg to win98 and see if it still sees the user name as Administrator

    – Costin Gușă
    Mar 12 '15 at 17:18














0












0








0







you can try to perform the installation on windows then copy the postgresql database, files and registry to wine.



http://wine-wiki.org/index.php/Advanced_Wine_User_Information#Copying_Software_across_from_a_native_Windows_Installation






share|improve this answer













you can try to perform the installation on windows then copy the postgresql database, files and registry to wine.



http://wine-wiki.org/index.php/Advanced_Wine_User_Information#Copying_Software_across_from_a_native_Windows_Installation







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 12 '15 at 0:20









Costin GușăCostin Gușă

586519




586519













  • or try to change wine windows version with winecfg to win98 and see if it still sees the user name as Administrator

    – Costin Gușă
    Mar 12 '15 at 17:18



















  • or try to change wine windows version with winecfg to win98 and see if it still sees the user name as Administrator

    – Costin Gușă
    Mar 12 '15 at 17:18

















or try to change wine windows version with winecfg to win98 and see if it still sees the user name as Administrator

– Costin Gușă
Mar 12 '15 at 17:18





or try to change wine windows version with winecfg to win98 and see if it still sees the user name as Administrator

– Costin Gușă
Mar 12 '15 at 17:18


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f886363%2fmake-wine-run-its-applications-as-user-profile-not-administrator%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕