Giter VIP home page Giter VIP logo

Comments (6)

highTowerSU avatar highTowerSU commented on September 17, 2024

I think your current user is not admin. I have the same problem when elevating from non-admin user...

from wsl-sudo.

asos-douglaswaugh avatar asos-douglaswaugh commented on September 17, 2024

@highTowerSU, when you say current user, do you mean the Linux user or the Windows user? I seem to be having a similar problem.

from wsl-sudo.

highTowerSU avatar highTowerSU commented on September 17, 2024

I think of was the underlying Win User, but i am unsere...

from wsl-sudo.

fenjen avatar fenjen commented on September 17, 2024

The error occurs when you run wsl-sudo.py from a non-default WSL instance. Does it work with this version? Here's an example that works for me:

python wsl-sudo.py "/mnt/c/Program Files (x86)/Vim/vim82/gvim.exe"

(I know vim 9 is out.)

from wsl-sudo.

spector32 avatar spector32 commented on September 17, 2024

I have the same issue on WSL2 Ubuntu (22.04). I tried applying the changes from this PR that @fenjen mentioned in their comment, but it did not help. Another thing to mention is that my Windows OS has multiple users and the default one is not an Administrator, so when I try to run the python3 ... command, the login window pops up. Maybe that ahs something to do with this issue.

from wsl-sudo.

fenjen avatar fenjen commented on September 17, 2024

@spector32 Is the user running the WSL instance an administrator? If not, the login window that pops up (with a pre-filled administrator account asking for a password) is what I would expect.

from wsl-sudo.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.