- cross-posted to:
- programmer_humor@programming.dev
- cross-posted to:
- programmer_humor@programming.dev
An implementation of sudo for DOS, to run the given command with full privileges. It can be used to edit important system files, run disk partitioning tools, and so on!



That’s true! Since there is no privilege separation in DOS, it needs to do no elevation so it can just execute the command directly. But should a future version of DOS implement unprivileged users or age verification, SUDO can be extended to support it.
Guess you never heard of 32 bit DOS that ticks underneath Windows 95 and 98.
Read the ASM file, the literal first line is
bits 16It legit forces the CPU out of protected mode and back into real mode, even and especially under a protected mode 32 bit OS.