| Post Reply | RetroFed Forums Forum Index » retrocomputing |
| Author | Message | ||
|---|---|---|---|
|
sjmulder lemmy.sdf.org sjmulder@lemmy.sdf.org Joined: 2023-06-12 |
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! |
||
| 26 Original | |||
|
Luci lemmy.ca ![]() Luci@lemmy.ca Joined: 2023-06-09 |
But DOS is a single user mode OS????? |
||
| 9 | |||
|
RedSnt βΎοΈπ¦βοΈππ₯οΈπ§ feddit.dk ![]() RedSnt@feddit.dk Joined: 2023-06-18 |
But DOS is a single user mode OS?????
Sure, but anyone can sit at that computer. Talking from experience as the kid that used my parents computer running DOS, I could freely edit config.sys and autoexec.bat to the annoyance of my parents. |
||
| 3 | |||
|
over_clox lemmy.world ![]() over_clox@lemmy.world Joined: 2023-07-09 |
But DOS is a single user mode OS?????
If I'm understanding this correctly, it works for protected mode DOS, as in the DOS that Windows 95 and 98 run on top of. In this case, this implementation of SUDO drops the CPU out of protected mode and runs whatever command in real mode, which is 16 bit 8086 compatible and limited to 1MB of RAM. Unless I'm missing something here anyways.. |
||
| 5 | |||
|
thenextguy lemmy.world ![]() thenextguy@lemmy.world Joined: 2023-09-28 |
But DOS is a single user mode OS?????
As far as I can see this doesn't do anything. It just calls int21 0x4B which is just exec. Not related to dpmi or anything like that. |
||
| 1 | |||
|
sjmulder lemmy.sdf.org sjmulder@lemmy.sdf.org Joined: 2023-06-12 |
But DOS is a single user mode OS?????
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. |
||
| 2 | |||
|
over_clox lemmy.world ![]() over_clox@lemmy.world Joined: 2023-07-09 |
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 It legit forces the CPU out of protected mode and back into real mode, even and especially under a protected mode 32 bit OS. |
||
| 2 | |||
| Post Reply | Page 1 |