microsoft / microsoft/sudo

SUDO.EXE installed even when Developer Options and SUDO setting is off

Open
#119 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Needs-Triage
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

Microsoft Windows [Version 10.0.26120.3073]

Other Software

No response

Steps to reproduce

Please fix the windows installation so that when SUDO is disabled in developer settings it doesn't create a placeholder sudo.exe which breaks whatever sudo implementation we already have our every time we run major Windows Updates?

The installed sudo.exe is completely useless and merely shows where to enable it (RUDE) and prevents loading of one we already have.

No means No.

Image

Expected Behavior

No sudo.exe to be installed, much less in a directory so early in the PATH

Actual Behavior

A useless sudo.exe file is created in TWO places C:\Windows\SysWOW64 and C:\Windows\System32 which are found before any other installed files merely because those directories are by default the first things in the PATH.

Image

Additionally, running that sudo.exe does nothing but tell you where to enable sudo (we're developers, we can Bing it...)

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the installation on Windows 10.0.26120.3073 with Sudo 1.0.1 while the Developer Options SUDO setting is disabled, then inspect where sudo.exe is placed in System32 and SysWOW64. Done means disabled SUDO does not create either placeholder executable or override another sudo implementation; confirm the behavior after installation and a major Windows update.

Written by the indexing model from the issue text.

Assessment

Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.