←back to thread

466 points CoolCold | 1 comments | | HN request time: 0.472s | source
Show context
ccorcos ◴[] No.40220178[source]
Can someone explain what this is / how it works to someone who has done a considerable amount of programming but lacks this kind of operating system level knowledge?

I was under the impression that ‘sudo’ was baked into the entire system. Like ‘cd’ or ‘ps’. How exactly can you just swap out sudo? Does that involve swapping out chmod as well?

replies(8): >>40220205 #>>40220206 #>>40220219 #>>40220224 #>>40220238 #>>40220277 #>>40220342 #>>40222121 #
1. keeperofdakeys ◴[] No.40220342[source]
Any linux process can run with elevated privileges (ie: as root) by setting a specific permission bit - https://en.wikipedia.org/wiki/Setuid. This is used for many things like ping and sudo.

Instead Run0 is using systemd to elevate privileges.

There is a lot that could be said, but suffice to say you can have both sudo and Run0 installed. So even if a Distro ships Run0 by default, you can always manually install sudo.