Comments (6)
I think your current user is not admin. I have the same problem when elevating from non-admin user...
from wsl-sudo.
@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.
I think of was the underlying Win User, but i am unsere...
from wsl-sudo.
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.
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.
@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)
- Is it supposed to work with WSL2? HOT 5
- `socket.timeout: timed out` when running under sudo or otherwise as root? HOT 3
- Font change to Raster Fonts if input is piped or redirected
- STDIN doesn't seem to be working in WSL2
- WSL2? Permissions? Can't find Powershell? I'm not sure what the problem is! HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl-sudo.