microsoft/sudo

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

IDisposable opened this issue · 1 comments

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

p.s. to restore Geardog's vastly superior gsudo after a Windows Update breaks your machine run:

gsudo config PathPrecedence True

This will put the directory where gsudo's sudo.exe symlink is to the front of the PATH (typically PATH=C:\Program Files\gsudo\Current;C:\WINDOWS\system32;C:\WINDOWS;...

Image