sudo for windows doesn't work with the new administrator protection feature
Open
Nobody has claimed this yet.
Issue-Bug
Resolution-By-Design
- Dominant language
- Rust
- Stars
- 5.9k
- Forks
- 180
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 2
Description
Sudo for Windows version
1.0.1
Windows build number
10.0.27754.0
Other Software
No response
Steps to reproduce
- Enable administrator protection on a canary build of windows per doc
- Ensure sudo is enabled
- Try to run a command like
sudo cmd
Expected Behavior
cmd to launch as administrator
Actual Behavior
sudo prints Unknown error: Access is denied. (0x80070005)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing sudo cmd on Windows build 10.0.27754.0 with administrator protection enabled, then trace the elevation behavior that returns 0x80070005. Done means cmd launches as administrator instead of reporting “Access is denied.”
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100