WSABuilds icon indicating copy to clipboard operation
WSABuilds copied to clipboard

Cannot install with an unprivileged user on Windows 10

Open DarkElve opened this issue 2 years ago • 16 comments

Even when running installer as an administrator. 2023-03-09 03_17_17

Installs and works fine if interactively log in into admin, but still isn't visible from any other account.

DarkElve avatar Mar 09 '23 01:03 DarkElve

@DarkElve Seems like this is a problem with WSA and WSL itself. If you use an unpriviliedge/other (non admin) account and try to install (even with elevation), it will not work. Hence, you will have to log into your admin account to install it. Although I might be wrong and it could be something to do with MagiskOnWSALocal and how it installs WSA. Frankly, I have no clue since officially, WSA can be install on a non admin account.

MustardChef avatar Mar 09 '23 06:03 MustardChef

Well, can't say about WSA, but WSL works just fine, upgraded it to version 2 a couple of days ago. But probably clean install wouldn't work, seems like Microsoft broke something. Thanks anyway, subscribed to the WSL issue too, maybe someone'll work something out.

DarkElve avatar Mar 09 '23 07:03 DarkElve

Hello, I got a question from someone about this and was able to reproduce it myself. He claimed that there was no help given on the discord so I thought I would come here and petition for this to be open again. The issue you have linked to only mentions WSL but WSL does not exhibit this behavior on either system. If there is no evidence that this is a WSA issue, then could this be looked at? If however this is a WSA issue, then could we get a link to a thread that actually follows the issue in a WSA context so that people have a place to go to for questions.

As of current this issue has no solution and no tracking which means it is likely to become forgotten.

Thank You

rom4ster avatar Mar 31 '23 04:03 rom4ster

@rom4ster I appreciate the concern. However, I believe that the correct place to report this issue here, to the repo of the development team of the MagiskOnWSA installer script. This is why I closed this issue and I appologise for not making this clearer before closing it. If this issue also exists with official versions of WSA, then it would be advised to also open the issue in the Microsoft Github repo for WSA

MustardChef avatar Mar 31 '23 05:03 MustardChef

If you would like, I can open this issue to use as a thread to discuss and investigate the issue at hand.

MustardChef avatar Mar 31 '23 05:03 MustardChef

I appreciate it, this way people will know where to go, if I find any updates, I will mirror here

rom4ster avatar Mar 31 '23 05:03 rom4ster

I appreciate it, this way people will know where to go, if I find any updates, I will mirror here

Could you try the fixes shown in this guide, excluding the first one: https://windowsreport.com/specified-logon-session-not-exist/

MustardChef avatar Mar 31 '23 06:03 MustardChef

This is not applicable to my machine, I do not have microsoft account at all. I have tried with my admin account, and it works, my current solution is simultaneous remoting

rom4ster avatar Mar 31 '23 08:03 rom4ster

https://github.com/LSPosed/MagiskOnWSALocal/issues/276

Found this post on MagiskOnWSA, I have asked them to reopen it because their resolution was garbage

rom4ster avatar Mar 31 '23 14:03 rom4ster

@rom4ster As mentioned in the issue thread above, https://github.com/LSPosed/MagiskOnWSALocal/issues/276, the best method is to package up the unpacked msix and self sign using a your own certificate (with tools such as MSIX Hero). Then, install the certificate on the admin account and then proceed to install the .msix file (that you packaged) as normal.

I could pre-package it and include a certificate in releases. However, this would be a security risk.

MustardChef avatar Apr 09 '23 16:04 MustardChef

This is not applicable to my machine, I do not have microsoft account at all. I have tried with my admin account, and it works, my current solution is simultaneous remoting

hello! can you elaborate this "current solution is simulteneous remoting" ? I have some issue as many other users, thank you

traversone avatar Apr 23 '23 15:04 traversone

This is not applicable to my machine, I do not have microsoft account at all. I have tried with my admin account, and it works, my current solution is simultaneous remoting

hello! can you elaborate this "current solution is simulteneous remoting" ? I have some issue as many other users, thank you

Are you referring to the issue being unable to install WSA on a non-admin account?

MustardChef avatar Apr 23 '23 15:04 MustardChef

yes, I am just referring to the issue being unable to installa WSA on a non-admin account...

traversone avatar Apr 23 '23 15:04 traversone

yes, I am just referring to the issue being unable to installa WSA on a non-admin account...

Well, the only solution is to package and self sign using your own certificate. Then, install the certificate on the admin account and then proceed to install the .msix file (that you packaged) as normal.

MustardChef avatar Apr 23 '23 15:04 MustardChef

thank you MustardChef ! I was also under the impression that rom4ster adopted a simpler (at least for me as very basic user) solution "simultaneous remoting": maybe on the same machine we could access admin account from within non admin one

@rom4ster: could you tell us if you do not mind?

traversone avatar Apr 23 '23 15:04 traversone

thank you MustardChef ! I was also under the impression that rom4ster adopted a simpler (at least for me as very basic user) solution "simultaneous remoting": maybe on the same machine we could access admin account from within non admin one

@rom4ster: could you tell us if you do not mind?

Sure, simultaneous remoting is just that. You remote desktop to 127.0.0.2 (you may be familiar with 127.0.0.1 as a localhost but RDP will fail on that ip). I can then just use my android app on my admin account WHILE my normal account is logged in through remote desktop.

UNFORTUNEATELY, this is not the super simple solution you are looking for as if you try this, you will get access denied (unless you have windows server for some reason). You need to look into the rdpwrapper project and then make sure you get a good update script so windows update does not bork the functionality.

PS: THere is a stack overflow question on this 127.0.0.2 thing and I HATE THE COMMENTS WITH A RAGE OF FIRE. This is because people who dont understand termserv limitations coming in and talking smack about a perfectly reasonable method of accessing RDP on localhost

rom4ster avatar Apr 24 '23 03:04 rom4ster