Sudo for Windows (2024)

https://github.com/microsoft/sudo

Article

  • Microsoft shipped a native sudo command for Windows, available in Windows 11.
  • Supports running elevated commands inline from a normal terminal session.
  • Three modes: new window, inline (same console), input disabled.
  • Not a full Linux sudo port — no /etc/sudoers, no per-command policies.

Discussion

  • gsudo (community alternative) noted as predating Microsoft’s version significantly.
  • Name collision concern: mirrors curl alias problem — confuses users expecting Unix sudo behavior.
  • Skepticism about usefulness: many tasks still require a full elevated shell, not just one command.
  • Jokes: ‘sudon’t’; Linux simultaneously moving beyond sudo to more granular privilege models.

Discuss on HN


Type Link
Added Apr 20, 2026
Modified Apr 20, 2026