Security Considerations
Running sudo in the Input closed (inputClosed) or Inline (normal) configurations comes with certain risks. Malicious processes might attempt to manipulate the elevated process using the connection established by the unelevated sudo.exe and the elevated sudo.exe process.
To address this risk, the inputClosed configuration option closes the input handle. This means that unelevated processes cannot send input to the elevated process since the input handle is disconnected from the current console window.
On the other hand, the inline configuration option runs the elevated process in the current window and allows it to receive input from the current console session. This configuration also enables unelevated processes to send input to the elevated process within the same console window or access information from the output in the current window.
Microsoft is bringing Linux’s Sudo command to Windows 11
Microsoft persists in its embrace of Linux, solidifying Windows as a welcoming environment for developers.
Microsoft continues to succeed with Linux by bringing the popular ‘sudo’ command to Windows 11. The introduction of ‘Sudo for Windows’ is specifically for developers, giving a solution for running elevated tools directly from an unelevated console session. This move follows Microsoft’s previous actions, including shipping a full Linux kernel in Windows 10 and incorporating Linux features.